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.
- 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
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
- Spaces, hyphens and an
IBANlabel are removed and letters are turned to upper case. - The first two letters must be a country of the IBAN Registry.
- The length must match the one registered for that country.
- The BBAN must follow the country's structure. In the United Kingdom,
4!a6!n8!nmeans four letters for the bank, six digits for the sort code, then eight digits for the account. - 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 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"}'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?
Does a valid IBAN prove that the account exists?
How are the check digits computed?
Why is my IBAN the wrong length?
Can I use an IBAN from the United States or Canada?
What is the bank code used for?
What does SEPA mean in the result?
Is the IBAN I type stored or shared?
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