How IBAN MOD 97-10 check digits catch mistyped numbers
Typing letter O instead of zero or swapping two neighbor digits changes an IBAN’s modulo 97 remainder and halts the transfer.
Short answer
Move the first four characters of the IBAN to the end, then replace each letter A through Z with digits 10 through 35. Divide the resulting integer by 97; a valid ISO 13616 IBAN always leaves remainder 1. Paste your number into IBAN Validator, Country Parser & Batch Checker to inspect every step and check single-typo hints.
Open the IBAN Validator, Country Parser & Batch Checker
The three ISO 13616 and MOD 97-10 steps
Every IBAN places two check digits right after the two-letter ISO country code, such as 82 in GB82 or 89 in DE89.
Banks generate check digits by setting positions 3–4 to 00, rearranging the string, and subtracting the modulo 97 remainder from 98.
- Step 1 (rearrange): strip spaces and hyphens, then move the first four characters (country plus check digits) to the end.
- Step 2 (expand letters): replace each uppercase letter with two digits using
A=10,B=11, throughZ=35. - Step 3 (divide by 97): compute the integer remainder modulo 97; valid IBANs leave
1, whereas typos leave 0 or 2..96.
Letter-to-number reference values
Because each letter expands into two decimal digits, country prefixes and bank codes lengthen the integer before division:
| Example input | Rearranged & expanded integer | Modulo 97 result |
|---|---|---|
| UK valid (22 chars) | 3214282912345698765432161182 |
Remainder 1 (valid) |
UK swapped (98 → 89) |
3214282912345689765432161182 |
Remainder 36 (rejected) |
| DE valid (22 chars) | 370400440532013000131489 |
Remainder 1 (valid) |
DE lookalike (0 → O) |
3704024440532013000131489 |
Remainder 92 + pattern fail |
Why prime 97 catches single typos and swapped neighbors
Open IBAN Validator, Country Parser & Batch Checker to watch both failure modes in detail:
- Single-digit keystroke slips. Changing one digit by d (where
1 ≤ |d| ≤ 9) alters the integer byd × 10^k. - Coprime prime divisor. Because 97 is prime and coprime to 10,
d × 10^kis never divisible by 97, so the remainder cannot stay 1. - Swapped neighbor digits. Transposing unequal adjacent digits a and b changes the integer by
9(b − a) × 10^k, which 97 never divides. - OCR letter lookalikes. Misreading 0 as letter O inserts
24instead of 0, shifting every higher digit by one power of 10.
You can open the DE89 lookalike O-versus-0 example or open the GB82 swapped-digit 89-versus-98 example directly.
Checking IBAN columns across PDFs, CSVs, and API payloads
Payment batches often break when spreadsheets strip leading zeros or reformat long digit strings into scientific notation:
- Pulling tables from PDF statements: extract account rows cleanly with PDF Table Extractor instead of retyping scanned characters by hand.
- Preserving leading zeros in CSV files: clean supplier exports in CSV Cleaner & CSV to Excel so domestic sort codes keep leading zeros.
- Auditing payroll edits: compare last month’s payee sheet against today’s sheet in Compare Two Spreadsheets before sending transfers.
- Inspecting API responses: format nested payout records in JSON Formatter & Validator and paste the IBAN list into batch mode.
Common mistakes
- Using 64-bit floating-point numbers for modulo 97. Standard IEEE 754 numbers round integers past 16 digits; use
BigIntor chunked 9-digit division instead. - Recomputing check digits to silence an error. Replacing
GB82withGB47makes a mistyped account pass modulo 97 while pointing at the wrong bank account. - Leaving spaces in electronic payment files. Print invoices group characters in fours, whereas SEPA XML and banking APIs require compact strings without spaces.
- Assuming modulo 97 confirms account ownership. Check digits catch typing errors only; always confirm any suggested correction directly with the payee.
Sources
- European Central Bank: Single Euro Payments Area (SEPA) (checked 30 November 2026), covering eurozone and SEPA IBAN settlement rules.
- Deutsche Bundesbank: SEPA Payment Systems (checked 30 November 2026), detailing IBAN check digits and national bank code rules.
- ISO 13616 International Bank Account Number Reference (checked 30 November 2026), listing country lengths, BBAN formats, and modulo 97 steps.
- ISO/IEC 7064 Check Character Systems (checked 30 November 2026), specifying pure system MOD 97-10 arithmetic.
Spotted a mistake in this guide? Email contact@fasttool.app. We reply within 7 business days.