LOCAL PARSER · QUALITY

IBAN Validator & Formatter

Validate IBAN length, country structure and ISO 13616 mod-97 checksum locally.

● Browser-only processing

01 / SOURCE

02 / REPORT

Recent history

Method and formulas

Spaces are removed, letters uppercased, the first four characters moved to the end and letters expanded to numbers; a streaming mod-97 remainder of 1 passes.

Use test or appropriately protected data. Parsing is local, but data can still be visible on your screen and in browser memory.

A valid checksum does not prove the account exists or can receive a payment.

GUIDE

What This Tool Does and When to Use It

The IBAN Validator & Formatter processes International Bank Account Numbers according to ISO 13616. It removes spaces, converts letters to uppercase, rearranges the first four characters to the end, maps letters to their numeric equivalents, and computes a streaming mod-97 remainder. A result of 1 confirms the checksum passes. Use this tool when preparing payment files, reconciling ledgers, or sanitizing customer-supplied IBAN strings before import into banking software. All operations execute inside the browser with no network transmission of the entered data.

Financial teams rely on it to catch transcription errors early. The formatter also produces a standardized version without spaces for machine-readable output and a spaced version for human review. Country-specific length rules and structure patterns are enforced during validation, covering the 70+ jurisdictions that publish IBAN formats. The process begins by stripping any whitespace and forcing uppercase letters, ensuring consistency regardless of input style. Rearrangement places the country code and check digits at the end so the BBAN becomes the leading segment for numeric conversion. Each letter A through Z maps to values 10 through 35, expanding the string into a pure numeric sequence that can be reduced modulo 97 without overflow through iterative chunk processing. This yields a reliable pass or fail decision that meets the international standard for syntactic correctness.

Worked Example with Realistic Numbers

Consider the input DE89370400440532013000. After removing any spaces the string is already compact. Letters are uppercased. The first four characters DE89 move to the end, producing 370400440532013000DE89. Each letter converts to its position in the alphabet minus 9: D becomes 13, E becomes 14, and so on. The resulting numeric string is processed left to right with successive mod-97 reductions to avoid overflow. The final remainder equals 1, so the IBAN passes.

StepIntermediate ValueNotes
OriginalDE89370400440532013000Input as supplied
Upper + compactDE89370400440532013000No change needed
Rearranged370400440532013000DE89First four moved
Letter expansion133789... (full numeric)A=10, B=11 … Z=35
mod-97 result1Checksum valid

Second Worked Example

Now examine the French IBAN FR1420041010050500013M02606 supplied with mixed spacing. After compaction and uppercasing the string becomes FR1420041010050500013M02606. The first four characters FR14 move to the end, yielding 20041010050500013M02606FR14. Letters convert as F=15, R=27, M=22 while digits remain unchanged. Streaming mod-97 applied in blocks of nine digits produces successive remainders that finally equal 1, confirming validity. The tool then outputs both the compact machine form and the human-readable spaced form FR14 2004 1010 0505 0001 3M02 606.

StepIntermediate ValueNotes
OriginalFR14 2004 1010 0505 0001 3M02 606Input with spaces
Upper + compactFR1420041010050500013M02606Whitespace removed
Rearranged20041010050500013M02606FR14First four moved
Letter expansion1527200410... (full numeric)F=15, R=27, M=22
mod-97 result1Checksum valid

Formula and Method Table

InputOperationOutputUnit
Raw IBAN stringRemove spaces, uppercaseCompact uppercase stringCharacters
Compact stringMove first 4 chars to endRearranged stringCharacters
Rearranged stringMap A-Z to 10-35Numeric digit sequenceDigits
Numeric sequenceStreaming mod-97Remainder (0-96)Integer
RemainderCompare to 1Pass / Fail flagBoolean
remainder = (((previous × 100) + next_block) mod 97)

Units and Conversions Notes

IBAN lengths range from 15 characters for Norway to 34 characters for several Eastern European countries. The tool enforces the published length for each two-letter country code. No currency conversion occurs; the validator only checks syntactic correctness. BBAN content after the check digits remains opaque to the algorithm and is not interpreted beyond length and character-set rules. When formatting for display, groups of four characters are separated by single spaces, matching the convention used in most banking portals. Additional unit details appear below.

MeasurementMinimumMaximumTypicalConversion Note
IBAN length153422Country-specific fixed value
Check digits222Always numeric
BBAN length113018Alphanumeric per country
Mod-97 block size197Prevents integer overflow
Letter numeric range1035—A=10 … Z=35
Output spacing444Groups of four characters

Limitations

A passing checksum proves only that the number was composed correctly; it does not confirm the account exists or can receive funds. Some national banks apply additional internal rules not captured by ISO 13616. The tool never contacts external registries, so live account-status queries must be performed through the bank’s own channels. Very long strings or those containing disallowed characters are rejected before the mod-97 step. The validator cannot detect closed accounts, insufficient funds, or sanctions list matches. It also ignores SEPA reachability flags and TARGET2 settlement restrictions. Users must still confirm beneficiary name and address separately for high-value transfers. Finally, the tool does not store or log any processed data, which prevents audit trails within the browser session itself.

Common Mistakes

  • Entering the BIC or sort code in the same field as the IBAN.
  • Omitting leading zeros that form part of the BBAN.
  • Using national account numbers without the country prefix and check digits.
  • Assuming a valid IBAN guarantees cross-border payment acceptance.
  • Copying from PDFs that insert hidden line-break characters.
  • Confusing IBAN with domestic routing numbers such as ABA or BSB codes.
  • Transposing characters when manually typing long strings from paper statements.

Always verify the printed IBAN against the source document character by character before submission.

Frequently asked questions

What occurs when an IBAN from a non-published country code is supplied?

The validator rejects the string because no length or structure rule exists for that prefix. Only ISO-registered country codes trigger length checks.

Does the formatter preserve original spacing when the checksum fails?

No. The formatter produces both compact and spaced versions only after the checksum passes; otherwise an error state is returned without reformatted output.

How are IBANs longer than 34 characters handled?

Any string exceeding the maximum published length is rejected immediately, before rearrangement or mod-97 calculation begins.

Can the tool detect IBANs that have been altered by a single transcription error?

Yes. The mod-97 checksum catches the vast majority of single-digit or transposition errors, although multiple coordinated changes may still pass.

What happens to lowercase letters during processing?

All letters are converted to uppercase before rearrangement, so mixed-case input produces the same result as fully uppercase input.

Is the mod-97 computation performed in one pass or iteratively?

A streaming implementation reduces the number block-by-block to keep intermediate values small and suitable for JavaScript number handling.

Does validation include any check against known blocked or sanctioned accounts?

No. The tool performs only syntactic and checksum validation; sanctions screening requires separate external data sources.

How should the spaced output be used when preparing SEPA payment files?

SEPA files expect the compact form without spaces; the spaced version is intended solely for visual confirmation on screen or paper.