IBAN Toolkit logoIBAN Toolkit

United Kingdom IBAN Generator

Free test GB IBANs: 22 characters, official registry format, valid check digits.

United Kingdom IBAN generator

22-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.

United Kingdom IBAN format

A United Kingdom IBAN is 22 characters long: the GB country code, 2 check digits, and a 18-character BBAN (4 letters + 6 digits + 8 digits). Here is how a generated test IBAN breaks down:

PartExampleFormat
Country codeGB2 letters (ISO 3166)
Check digits472 digits: mod-97 checksum
Bank codeZZOZ4 letters
Branch code3046146 digits
Account number711753328 digits

Full test IBAN: GB47 ZZOZ 3046 1471 1753 32 (random test value)

About United Kingdom IBANs

  • The UK BBAN uses a 4-letter bank code, a 6-digit sort code (the branch identifier, written XX-XX-XX), and an 8-digit account number.
  • UK IBANs are 22 characters: the same length as Germany's, but with a completely different internal layout.
  • Sort codes have no public checksum; the authoritative list is maintained by the UK banking industry.

Use test United Kingdom IBANs for

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

Banking in the United Kingdom: how the IBAN is used

The United Kingdom is the unusual case in this list: British customers rarely use their IBAN at home. Domestic payments run on the six-digit sort code and eight-digit account number through Faster Payments and Bacs, and the 22-character IBAN exists mainly for receiving international transfers. The UK stayed in the SEPA geographic area after Brexit, so GB IBANs remain valid for euro payments, but the format is owned domestically by Pay.UK's standards. A British IBAN is essentially the sort code and account number wrapped with a four-character bank identifier and check digits.

How to read a United Kingdom IBAN

A GB IBAN breaks into: GB, two check digits, a four-letter bank identifier (for example NWBK for NatWest or BARC for Barclays — many are derived from the bank's BIC), then the six-digit sort code and the eight-digit account number. If you already know a UK sort code and account number, you know the last fourteen characters of the IBAN; only the bank identifier and mod-97 digits need to be added. Some building societies use a roll number instead of a plain account number, which does not map cleanly into the IBAN's account field.

The worked example in the format table above — GB47 ZZOZ 3046 1471 1753 32 — follows exactly this pattern.

Major banks in the United Kingdom

  • HSBC UK — part of one of the world's largest banking groups
  • Barclays — a major high-street bank with BIC-derived identifier BARC
  • Lloyds Bank — part of Lloyds Banking Group, the largest retail lender
  • NatWest — identifier NWBK, part of the NatWest Group
  • Santander UK — the Spanish group's British arm
  • Nationwide — the largest building society, using roll numbers for some accounts

Common United Kingdom IBAN mistakes

  • Asking UK users for an IBAN in domestic flows: most expect sort code and account number fields, and many do not know their IBAN.
  • Typing the sort code with dashes into the IBAN — inside the IBAN it is six continuous digits.
  • Assuming every UK account fits: building-society roll numbers need the society's reference handling, not a raw IBAN conversion.
  • Dropping the four-letter identifier when reconstructing an IBAN from sort code and account details — without it the check digits cannot match.

Country-specific testing notes

For UK fixtures, test the conversion path your users actually take: the same account entered as sort code + account number and as a full IBAN should resolve identically. Include a building-society style reference case, sort codes from more than one bank, and an IBAN with a plausible but wrong bank identifier — format-valid, but inconsistent with the sort code's owning bank.

What format checks can and cannot tell you

UK sort codes and account numbers carry their own modulus checks, defined per bank in the industry modulus-checking table, and Confirmation of Payee verifies the account name at payment time. Our tools check the IBAN layer only: length, the GB pattern and mod-97. They do not run UK modulus checks or confirm the sort code is in service.

More countries

Frequently asked questions

22 characters: GB + 2 check digits + 4-letter bank code + 6-digit sort code + 8-digit account number.
A 6-digit number identifying the specific UK bank branch holding the account. Generate test ones on our sort code generator page.
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 United Kingdom IBAN into our IBAN validator to check its length, structure and mod-97 checksum.
Rarely for domestic payments — sort code and account number are the everyday identifiers. The IBAN is mainly used when receiving money from abroad or making SEPA payments.
Yes, those form the last fourteen characters. You also need the bank's four-letter identifier, after which the two check digits can be calculated with the standard mod-97 method.
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.