Skip to content

Identifiers

Check an IBAN

Verify the check digits, length and structure of an IBAN for its country, and read the bank code, branch code and SEPA membership.

Try an example
ValidExample
Print format
GB29 NWBK 6016 1331 9268 19
Country
United Kingdom (GB)
Check digits
29
BBAN
NWBK60161331926819
Bank code
NWBK
Branch code
601613
SEPA
Yes
Expected length
22
API access
Unlock with a free account

Unlock with a free account

These fields need an API key. The free plan includes 100 credits every month, no card required.

Unlock these fields

How to read the result

The status is valid only when four things hold: the country uses IBANs, the length is the one it registered, the account part follows its structure and the check digits match. Otherwise the first rule that failed is shown as the reason, so you know what to fix.

Field What it tells you
Print format The IBAN in groups of four, the way to show it to people
Country The country from the first two letters
Check digits Positions 3 and 4, computed from the rest of the IBAN
BBAN The national account number, everything after the check digits
Bank code The bank identifier, at the position the registry defines for the country
Branch code The branch identifier, for countries that have one
SEPA Whether the country is in the scope of the SEPA payment schemes
Expected length The IBAN length registered for the country

How the check works

  1. Spaces, hyphens and an IBAN label are removed and letters are turned to upper case.
  2. The first two letters must be a country of the IBAN Registry.
  3. The length must match the one registered for that country.
  4. The BBAN must follow the country's structure. In the United Kingdom, 4!a6!n8!n means four letters for the bank, six digits for the sort code, then eight digits for the account.
  5. The check digits must satisfy ISO 7064 MOD 97-10.

The country formats come from release 101 of the SWIFT IBAN Registry, bundled with the validator. Nothing is looked up at a bank.

Check IBANs from your code

The IBAN validation API runs the same check for 1 credit, with the same fields in JSON. See the API reference for every field and reason.

Same check through the API

One HTTPS call, one credit. The response below is the real schema returned by the API.

cURL
curl https://api.qelka.com/v1/iban \
  -H "Authorization: Bearer sk_test_your_key" \
  -H "Content-Type: application/json" \
  -d '{"iban":"GB29 NWBK 6016 1331 9268 19"}'
JavaScript
const response = await fetch("https://api.qelka.com/v1/iban", {
  method: "POST",
  headers: {
    Authorization: "Bearer sk_test_your_key",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    iban: "GB29 NWBK 6016 1331 9268 19",
  }),
});
const result = await response.json();
{
  "id": "lkp_01M85QF1P2X7R07K1R4CBTZ68G",
  "object": "iban",
  "input": "GB29 NWBK 6016 1331 9268 19",
  "valid": true,
  "status": "valid",
  "reason": null,
  "iban": "GB29NWBK60161331926819",
  "formats": {
    "electronic": "GB29NWBK60161331926819",
    "print": "GB29 NWBK 6016 1331 9268 19"
  },
  "country": {
    "code": "GB",
    "name": "United Kingdom"
  },
  "check_digits": "29",
  "bban": "NWBK60161331926819",
  "bank_code": "NWBK",
  "branch_code": "601613",
  "sepa": true,
  "expected_length": 22,
  "credits_used": 1,
  "cached": false
}

Frequently asked questions

What is an IBAN?
The International Bank Account Number identifies one bank account across borders. ISO 13616 defines it: two letters for the country, two check digits, then the Basic Bank Account Number (BBAN), the account identifier used inside the country. Each country registers the length and structure of its BBAN with SWIFT, which publishes them in the IBAN Registry.
Does a valid IBAN prove that the account exists?
No. A valid IBAN is well formed for its country and its check digits match. That catches any single mistyped character and any swap of two adjacent characters, but only the bank can say whether the account is open and who holds it.
How are the check digits computed?
Move the first four characters to the end, replace each letter with a number (A is 10, B is 11, up to Z at 35) and divide the resulting number by 97. A correct IBAN leaves a remainder of 1. To create the check digits, a bank runs the same computation with 00 in their place and subtracts the remainder from 98, which is why valid check digits are always between 02 and 98.
Why is my IBAN the wrong length?
Each country has one fixed IBAN length, from 15 characters in Norway to 33 in Russia. A missing or extra digit is the usual cause. The result shows the length the registry expects for the country, so you can count the characters again.
Can I use an IBAN from the United States or Canada?
No. Neither country uses IBANs: transfers to them use a routing number and an account number, with a SWIFT code for international payments. The validator answers "country not in the IBAN registry" for any country that has not registered an IBAN format.
What is the bank code used for?
The bank code identifies the bank that holds the account: the Bankleitzahl in Germany, the code banque in France, the four letters of the bank in the United Kingdom. Its position in the BBAN comes from the registry. Some countries also have a branch code, such as the UK sort code.
What does SEPA mean in the result?
The Single Euro Payments Area lets euro transfers and direct debits run on the same schemes across its member countries. The flag tells whether the IBAN's country is in the geographical scope of those schemes, following the list of the European Payments Council.
Is the IBAN I type stored or shared?
No. The check runs on our servers from a table bundled with the code: the IBAN is not sent to any bank or third party, and it is neither cached nor stored. API request logs keep only the country code and the last two characters.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time