A Portuguese IBAN is the standardised account number used for SEPA payments, payroll, and direct debits in Portugal. Before sending money or saving a supplier’s bank details, you can confirm the IBAN is free of typos using the ISO 13616 MOD-97 check. This validator runs that check entirely in your browser.
How it works
A PT IBAN is 25 characters: PT + 2 check digits + a 21-digit BBAN. Validation follows the international MOD-97 rule:
- Remove spaces and uppercase the input.
- Confirm it starts with
PTand is exactly 25 characters. - Move the first four characters (the
PTand the two check digits) to the end. - Replace each letter with two digits:
A = 10,B = 11, …Z = 35. - Interpret the whole string as one large integer and take it modulo 97.
- The IBAN is valid only if the remainder is exactly
1.
Because the integer is huge, the tool computes the remainder digit-by-digit so it never overflows.
Example
For PT50 0002 0123 1234 5678 9015 4, the tool strips spaces to a 25-character string, rotates PT50 to the end, maps P = 25 and T = 29, and reduces the result modulo 97. A remainder of 1 means the IBAN passes; anything else means a digit is wrong.
Notes
A passing MOD-97 check confirms structure only — it does not confirm the account is open or owned by anyone in particular. Everything runs locally, so the IBAN never leaves your device.