# IBAN Validator & Formatter

> Check an IBAN for the right length, format and check digits and format it in groups of four. Works in your browser, the number is never sent anywhere.

- Page: https://notadevblog.com/en/tools/calculators/iban/
- German version: https://notadevblog.com/de/tools/calculators/iban.md
- Category: Calculators

## At a glance

- **Processing:** Locally in your browser, also offline once the page has been opened. Input never leaves your device.
- **Checks:** Length and format per country (ISO 13616, 90 countries), then the mod 97 checksum
- **Limits:** Does not show that an account exists; no bank lookup; the input is never put in a link

## For agents

WebMCP: the page registers these functions via document.modelContext in browsers that support it.
ES module: https://notadevblog.com/core/iban.js
Every function returns { "ok": true, ... } or { "ok": false, "error": { "code", "message" } }.

### iban_check

Check an IBAN against ISO 13616 and format it. checks reports four tests: length for the country, allowed characters, the BBAN structure of the country and the mod 97 checksum; valid is true only when all four pass. The table covers 90 countries; a correct checksum for a country not in it still gives valid false with note unknown_country. Input is cleaned without guessing: spaces and a leading "IBAN" are ignored and lowercase is converted (each noted); letters O and I where a digit is required are NOT corrected but reported as confusable_character with the likely digit. electronic has no spaces, formatted groups of four. bankCode and accountNumber are returned for valid IBANs of DE, AT, CH, LI, NL, BE, LU, FR, GB (sort code), ES and IT. Some countries (BE, ES, FR, IT, PT, ...) have a national check digit inside the BBAN that is not verified (note national_check_digits). This checks format and checksum only: it does not show that the account exists, and it does not look up banks. The IBAN is personal data: it is not accepted from URLs.

Parameters:
- iban (string, required): With or without spaces, e.g. "DE89 3704 0044 0532 0130 00".

Example input: `{"iban":"DE89 3704 0044 0532 0130 00"}`

Deep link (options in the query, user data after #): https://notadevblog.com/en/tools/calculators/iban/

## How to use

1. **Enter the IBAN:** Type or paste it, with or without spaces. Lowercase and a leading “IBAN” are fine.
2. **Read the checks:** Four checks show what is right and what is wrong: length, characters, account format and checksum.
3. **Copy the result:** Copy the IBAN in groups of four for paper and forms, or without spaces for systems.

## About this tool

An IBAN identifies a bank account across borders: country code, two check digits and the national account number (BBAN). The format is defined in ISO 13616.

The check runs in your browser. The number is not sent anywhere, not stored and not put into the page address.

## Frequently asked questions

### Does a valid IBAN mean the account exists?

No. The tool checks format and checksum. Only the bank can tell whether the account exists and belongs to the person you expect.

### How is the checksum calculated?

The first four characters move to the end, letters become numbers (A = 10 … Z = 35), and the result must leave remainder 1 when divided by 97.

### Why is my IBAN marked invalid with a correct checksum?

Length and format must also match the country, or the country must be in the table. A new country in the IBAN registry can be missing here.

### Why does the tool not fix an O to a 0?

A silent fix could turn a typo into a different valid account. The tool points at the position and names the likely digit; you decide.

### How long is a German IBAN?

It has 22 characters: DE, two check digits, the 8-digit bank code and the 10-digit account number.
