IBAN Toolkit logoIBAN Toolkit

Portugal IBAN Generator

Free test PT IBANs: 25 characters, official registry format, valid check digits.

Portugal IBAN generator

25-character format, official registry structure.

Same country + seed + row order gives the same test values. Leave blank for random samples. Seed algorithm: v1. Do not enter personal data.

Portugal IBAN format

A Portugal IBAN is 25 characters long: the PT country code, 2 check digits, and a 21-character BBAN (4 digits + 4 digits + 11 digits + 2 digits). Here is how a generated test IBAN breaks down:

PartExampleFormat
Country codePT2 letters (ISO 3166)
Check digits082 digits: mod-97 checksum
Bank code22964 digits
Branch code24124 digits
Account number352405364780311 digits + 2 digits

Full test IBAN: PT08 2296 2412 3524 0536 4780 3 (random test value)

About Portugal IBANs

  • Portugal's 25-character IBAN: 4-digit bank + 4-digit branch + 11-digit account + 2 national check digits.
  • The Portuguese national check uses a weighted mod-97 variant over the first 19 digits.
  • The 21-digit BBAN mirrors the legacy Portuguese NIB exactly.

Use test Portugal IBANs for

  • Testing payment forms that accept Portugal bank details.
  • QA fixtures and demo data with the correct 25-character structure.
  • Validating your own mod-97 implementation against known-correct outputs.

Banking in Portugal: how the IBAN is used

Portugal's IBAN is built directly on the NIB (Número de Identificação Bancária), the 21-digit domestic identifier Portuguese customers used before SEPA: add the PT50 prefix and the NIB becomes the IBAN. The Banco de Portugal maintains the bank code directory, and the market is led by the state-owned Caixa Geral de Depósitos alongside Millennium BCP and the Portuguese arms of Santander and BBVA-era banks. Portugal is also the home of Multibanco, one of Europe's oldest shared ATM and payments networks, and the MB WAY mobile scheme — both of which sit on top of the same account identifiers the IBAN encodes.

How to read a Portugal IBAN

A Portuguese IBAN has 25 characters: PT, two check digits (always computed so that new IBANs famously begin PT50), then the 21-digit NIB. The NIB splits into a four-digit bank code, a four-digit branch code, an eleven-digit account number and two final digits that are a national check over the preceding nineteen, calculated with a mod-97 algorithm using a fixed weight table. Portuguese customers quoting a NIB are therefore giving you the entire IBAN body — only the prefix is missing.

The worked example in the format table above — PT08 2296 2412 3524 0536 4780 3 — follows exactly this pattern.

Major banks in Portugal

  • Caixa Geral de Depósitos — the state-owned bank and the country's largest
  • Millennium BCP — the biggest private listed bank
  • Santander Totta — the Portuguese arm of Santander
  • Novo Banco — created in 2014 from the resolution of Banco Espírito Santo
  • Banco BPI — part of the CaixaBank group
  • ActivoBank — Millennium's digital brand, popular with younger customers

Common Portugal IBAN mistakes

  • Asking Portuguese users to 'convert' their NIB: there is nothing to convert — prefix PT50 and the number is complete.
  • Breaking the national check digits: retyping a NIB and changing its last two digits produces an IBAN that fails Portuguese validation even before mod-97.
  • Padding the eleven-digit account field incorrectly when migrating branch-era data.
  • Assuming every PT IBAN starts with the same bank digits — the first four NIB digits are the bank code and vary widely.

Country-specific testing notes

Portuguese fixtures should include a NIB-only input (21 digits) to test whether your UX can offer the prefix automatically, a value whose national check digits are wrong while the international ones are right, and accounts from both the state bank and smaller institutions. Portugal also makes a good round-trip test: export a generated IBAN to a spreadsheet and re-import it, then confirm the two national check digits at the end of the NIB survived the journey intact.

What format checks can and cannot tell you

Our tools verify the Portuguese IBAN's international layer and structure. They do not recompute the NIB's own two check digits with the Portuguese weight table, and they do not confirm a bank or branch code is active. Domestic systems check both layers, so use our result as structural validation only.

More countries

Frequently asked questions

25 characters: PT + 2 check digits + 21-character NIB (bank + branch + account + 2 national check digits).
They are synthetic test values with valid structure and check digits. This site does not query live bank directories, so generated values are not guaranteed to be unassigned.
Yes: paste any Portugal IBAN into our IBAN validator to check its length, structure and mod-97 checksum.
Because the international check digits are calculated over the fixed 21-digit NIB structure, and for genuine Portuguese numbers the computation consistently yields 50. It is a handy authenticity clue, though format rules still require full validation.
The NIB is the 21-digit domestic number: bank, branch, account and two check digits. The IBAN is the same number with PT and the international check digits in front.
Testing and educational use. Generated identifiers are synthetic and are not checked against live bank directories. A randomly generated value can coincidentally resemble or match a real identifier. Never use generated data for real payments, account applications, identity verification, or to represent a real person or institution.