Short answer: A valid IBAN always leaves a remainder of 1 when divided by 97. An NimbusCalc IBAN validator cleans the string, moves the first four characters to the end, expands letters to digits with A equal to 10 and Z equal to 35, and reduces the resulting long integer digit by digit. Type into IBAN and press 1. Validate an IBAN. The IBAN validator reports the cleaned value, country, length, check digits, BBAN structure and MOD 97 remainder. It runs locally in your browser. It confirms format and checksum only; it cannot confirm that an account exists.

This is an auditor’s checklist, not a tutorial with a storyline. Cross-border payments fail for boring reasons, and each reason has a line item below. Work the list top to bottom before authorising a transfer.

1. Define the object before validating it

An International Bank Account Number, abbreviated IBAN, identifies a bank account across national borders. The format is defined in ISO 13616, and country-specific layouts are published in the SWIFT IBAN Registry. An IBAN holds up to 34 alphanumeric characters and has no spaces when transmitted. The human-readable form groups characters in blocks of four, for example GB82 WEST 1234 5698 7654 32. IBANs are mandatory inside the Single Euro Payments Area (SEPA) and are adopted across the Middle East, North Africa, Eastern Europe, the Caucasus and the Caribbean. The United States, Canada and Australia use domestic account numbers plus a bank identifier code instead.

Part Positions Length Meaning
Country code 1 to 2 2 letters ISO 3166-1 alpha-2 code of the country holding the account.
Check digits 3 to 4 2 digits Computed with MOD 97 so the whole value leaves remainder 1.
BBAN 5 to end Up to 30 characters Basic Bank Account Number: a country-specific bank code, branch code and account number.

Only the first four positions are universal. The BBAN has a fixed length and internal layout per country. Germany uses 18 digits, the United Kingdom 18 characters, France 23 characters including a two-digit national key.

2. Field inventory on the live IBAN validator

IBAN validator MOD 97 flow from cleaning and moving the first four characters through letter to number expansion and a running remainder to a pass or fail verdict

The page carries four numbered tabs: 1. Validate an IBAN, 2. Calculate Check Digits, 3. Batch Check and 4. Country Formats. The validation input is a single text field with placeholder e.g. DE89 3704 0044 0532 0130 00 and default value GB82 WEST 1234 5698 7654 32. The check-digit tab has a Country code select listing more than seventy codes and a BBAN (without country code and check digits) text field, default WEST12345698765432. Batch Check takes an IBAN list textarea and produces CSV with columns line, result, iban, country, remainder and reason. Country Formats adds a Search filter with placeholder e.g. Germany, GB, SEPA. Buttons are Load sample, Clear, Copy cleaned IBAN, Copy IBAN and Copy CSV.

3. Validate an IBAN in five exact steps

  1. Open 1. Validate an IBAN. Paste the account identifier into the IBAN field. Spaces, dashes, dots and lowercase letters are cleaned automatically, so a printed IBAN typed with spaces is acceptable.
  2. Read VALIDATION RESULT. For the sample the panel says Valid IBAN and shows a field table: Cleaned IBAN GB82WEST12345698765432, Formatted GB82 WEST 1234 5698 7654 32, Country code GB, Country United Kingdom, Length 22 characters, Registry length 22 characters, Check digits 82, Computed check digits 82, BBAN WEST12345698765432, MOD 97 remainder 1 (pass).
  3. Check the BBAN structure line. The sample reports Bank code WEST (4 chars); Sort code 123456 (6 chars); Account number 98765432 (8 chars). A length mismatch against the registry is an immediate reject.
  4. Copy the cleaned value. Press Copy cleaned IBAN. The tool states explicitly: Valid format and checksum. This does not confirm that the account exists.
  5. For new accounts, use 2. Calculate Check Digits. Choose the Country code, enter the BBAN, and the tool returns the two digits that make the checksum pass.

4. How MOD 97 works, and why the answer is 98 minus r

Clean the IBAN, move the first four characters to the end, replace each letter with two digits, then repeatedly apply remainder equals (remainder times 10 plus next digit) modulo 97. The IBAN is valid only when the final remainder is 1. For GB82 WEST 1234 5698 7654 32, rearranging gives WEST12345698765432GB82 and expanding letters gives 325282912345698765432161182. That is far longer than a normal integer variable, so the tool carries only the remainder, exactly as ISO 13616 describes.

To compute check digits, set them to 00 and call the resulting remainder r. The digits that force the remainder to 1 are 98 minus r, always written with two digits so a value below 10 gets a leading zero. Valid check digits run from 02 to 98. The values 00 and 01 are never used and 99 is reserved.

5. Country length cross-checks the IBAN validator applies

Country length reference table for IBAN validator showing total length BBAN length and BBAN breakdown for eleven SEPA countries

A checksum can pass by coincidence on a malformed string, so length is a second gate. The Country Formats tab lists the built-in reference for over seventy codes. The table below reproduces the widely used rows shown on the page.

Country Code Total length BBAN length BBAN breakdown
Germany DE 22 18 8-digit bank code, 10-digit account number
United Kingdom GB 22 18 4-letter bank code, 6-digit sort code, 8-digit account
France FR 27 23 5-digit bank, 5-digit branch, 11-char account, 2-digit key
Netherlands NL 18 14 4-letter bank code, 10-digit account number
Spain ES 24 20 4-digit bank, 4-digit branch, 2 check digits, 10-digit account
Belgium BE 16 12 3-digit bank, 7-digit account, 2-digit national check
Norway NO 15 11 4-digit bank, 6-digit account, 1 check digit

The same two-letter ISO identifiers appear in the international dialing code finder and the postal code finder, which is useful when a payment record mixes address and banking data.

6. Rejections an auditor would flag

  • Assuming a passing checksum means a real account. It proves internal consistency only.
  • Accepting 00 or 01 as check digits. Valid pairs always fall between 02 and 98.
  • Deleting leading zeros. A BBAN is a fixed-width string, not a number.
  • Mixing the IBAN with the BIC. ISO 9362 defines the Business Identifier Code for the bank; the IBAN identifies the account.
  • Computing the remainder as a floating point number. The expanded value can be 60 digits long, so reduction must be digit by digit.
  • Forgetting that letters expand to two digits. A is 10, not 1, and Z is 35.

7. Related checks and further reading

The percentage calculator guide is handy when you sanity-check a remainder as a share of 97. Pattern-based pre-validation belongs in the regex tester and validator, covered by the regex tester guide. Two guides in this batch share the exactness habit: the base64 encoder guide validates bytes before decoding, and the text diff checker guide validates token sequences before comparing.

8. IBAN validator questions, in order

  1. How does the IBAN checksum work? Move the first four characters to the end, replace letters with numbers where A is 10 and Z is 35, then compute the remainder modulo 97. A valid IBAN leaves exactly 1.
  2. What are the two check digits for? They catch a mistyped digit, a swapped pair or a missing character before a payment is sent.
  3. Can this tool tell me whether an account exists? No. It verifies format and checksum only, not ownership, account status or bank identifiers.
  4. Do spaces, dashes and lowercase letters affect validation? No. The tool strips them and uppercases letters before validating.
  5. Which countries use IBANs? They are mandatory across SEPA and used in many countries in the Middle East, North Africa, Eastern Europe and the Caribbean. The built-in table lists over seventy codes.