Every example IBAN in the SWIFT IBAN Registry release 103 (Sep 2026, 89 countries) run through 7 popular validators, plus wrong-length variants. validator 13.15.35 isIBAN (33.7M weekly downloads) returns false for 15 countries incl. RU, OM, YE, SO, MN, BY; iban 0.0.14 rejects 13. Brazil's Aug 2026 alphanumeric bank code (Resolução BCB 585) fails in 5 libraries. schwifty and ibankit pass all 89. None accepted a wrong length.
If you validate IBANs with `validator.isIBAN` (validator 13.15.35), it returns false for valid IBANs from 15 of the 89 countries in the current SWIFT IBAN Registry: Russia, Oman, Yemen, Somalia, Mongolia, Honduras, Nicaragua, Libya, Sudan, Burundi, Djibouti, Falklands, São Tomé, Belarus and Brazil's new format. Brazil changed its IBAN in August 2026 (Resolução BCB 585), so the 8-character bank code can now contain letters. 5 of 7 libraries reject those IBANs. Only schwifty 2026.11.4 (Python) and ibankit 1.7.0 (JS) accepted all 89 registry examples.
IBAN validator 13.15.35 ibantools 4.5.4 iban 0.0.14 ibankit 1.7.0BR6699999A03000010009795493C1 false false false trueRU0304452522540817810538091310419 false true false trueOM810180000001299123456 false true false trueYE15CBYE0001018861234567891234 false true false trueST23000100010051845310146 false true true trueBY13NBRB3600900000002Z00AB00 false true true trueEnvironment
- Reproduced 2026-12-01. Node libraries ran in
node:22and Python libraries inpython:3.12-slim. Every library was at its latest release on npm/PyPI that day. - Reference: SWIFT IBAN Registry release 103 (Sep 2026), TXT and PDF. It covers 89 countries. All 89 electronic-format examples pass mod-97 and have the registry length.
- Cases: each registry example (should be valid), plus the same BBAN with one character added or removed and the check digits recomputed (should be invalid: only the length is wrong).
Results (7 libraries, 89 countries)
| Library (weekly downloads) | Registry examples rejected | Wrong-length accepted | |---|---|---| | validator 13.15.35 isIBAN (33.7M) | 15 (BI BR BY DJ FK HN LY MN NI OM RU SD SO ST YE) | 0 | | iban 0.0.14 (281k, last release Feb 2020) | 13 (BI BR DJ FK HN LY MN NI OM RU SD SO YE) | 0 | | ibantools 4.5.4 (1.15M) | 1 (BR) | 0 | | python-stdnum 2.2 (1.8M) | 2 (BR; BE example's bank code 539 is unknown to stdnum) | 0 | | django-localflavor 5.1 IBANValidator | 2 (same as stdnum, which it calls) | 0 | | schwifty 2026.11.4 (325k) | 0 | 0 | | ibankit 1.7.0 (44k) | 0 | 0 |
No library accepted a wrong-length IBAN. All the failures are false rejections of real formats.
Why validator.isIBAN fails (validator 13.15.35)
- Missing countries: its regex table has 80 entries. 13 registry countries aren't there, so it returns
falsefor them: BI DJ FK HN LY MN NI OM RU SD SO ST YE. Open PR #2780 (June 2026) adds LY, SD and ST only. - Belarus: the regex is
[A-Z0-9]{4}\d{20}, but the registry says4!c4!n16!c, so account numbers with letters fail (…Z00AB00). Open PR #2944 fixes AZ, BY and JO. - Brazil:
BR: /^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/is the pre-2026 format. - It also accepts 4 codes that aren't in the registry: DZ, IR, MA and MZ.
iban 0.0.14 (iban.js)
The last release was in February 2020, and its repository link (github.com/arhs/iban.js) now returns 404. It lacks the countries added since 2020. It still has Burundi's old 16-character format (new Specification("BI", 16, ...)), although the registry says 27 characters since October 2021.
Brazil: alphanumeric bank code from August 2026
Resolução BCB nº 585 (24 Aug 2026), Art. 2, makes the 8-character ISPB field alphanumeric. The account-type character (position 28) is alphanumeric too. Registry release 103 changed BR from 8!n5!n10!n1!a1!c (release 99, Dec 2024) to 8!c5!n10!n1!c1!c, effective Aug-26. Old-style numeric IBANs (BR7599999003000010009795493C1) still pass everywhere. IBANs whose bank code contains a letter fail validator, ibantools, iban, python-stdnum (InvalidFormat: The number has an invalid format.) and django-localflavor (Not a valid IBAN.).
Fix
- Node: use ibankit (
IBAN.isValid(s)), or validate with mod-97 + length yourself until validator/ibantools ship fixes. Don't useiban. - Python: use schwifty ≥ 2026.11.4 (
IBAN(s)raises on invalid input). If you use python-stdnum or django-localflavor, catch the BR case separately. - If you must keep a rejecting library, treat a "false" for any of the countries above as "unknown", not "invalid".
How to detect
Run each library over the registry's 89 example IBANs (from the SWIFT registry TXT, row "IBAN electronic format example"). Every one should pass. repro/minimal.js and repro/minimal.py print the table above in about a second.
Sources
- SWIFT IBAN Registry (release 103, Sep 2026): https://www.swift.com/standards/data-standards/iban-international-bank-account-number
- Resolução BCB nº 585, 24 Aug 2026 (English translation): https://www.bcb.gov.br/content/financialstability/Brazilian_Prudential_Financial_Regulation_Docs/ResolutionBCB_585.pdf
- validator.js PRs #2780 and #2944, both open as of 2026-12-01.