Skip to content
Pololei
Documentation / Registry audit

Registry data audit (pololei vs. iban4j)

This audit compares the IBAN country data of pololei with iban4j, commit b2f6be5 (21 October 2026). It records every difference, the source pololei relies on and the decision. Each decision is kept by a regression test in RegistryAuditTest.

Source and reproducibility

ItemValue
Source of truthSWIFT IBAN Registry, release 100, IBAN Registry (TXT)
SHA-256 of the TXT file usedad13d9595a991790ad1a5a1363d574a43357c710e3bce2170f95c9bef8932df0
Generatorscripts/registry/generate-registry.sh <file> "SWIFT IBAN Registry Release 100"
Resultbyte-identical IbanRegistryData.java (89 countries), checked on 2 November 2026

The registry file is not part of the repository (SWIFT terms of use). Running the generator with the file above reproduces IbanRegistryData.java without any change.

Rules

1. Supported prefixes, BBAN structures, IBAN lengths and the positions of bank and branch identifier follow the SWIFT IBAN registry only. A different value in iban4j alone is no reason for a change. 2. National fields that the registry does not describe (check digits, account type, the French branch code, ...) live in the separate, hand-maintained BbanLayout supplement, each with its source (see bban-fields.md). They never change bank or branch identifier where the registry defines them. 3. A deliberately kept difference gets a regression test.

Summary

FindingCountDecision
Prefixes in pololei89release 100
Prefixes in iban4j106
Common prefixes83
Union112
Only pololei: FK, HN, MN, NI, SO, YE6kept: part of release 100; their registry examples are valid (prefixesOnlyPololeiAccepts)
Only iban4j: AO, AX, BL, CV, GA, GF, GG, GP, IM, IR, JE, MA, MF, MQ, MZ, NC, PF, PM, RE, SN, TF, WF, YT23rejected (UNSUPPORTED_COUNTRY): territories that the registry lists under FR, GB or FI use those prefixes; the others have no registry entry (prefixesOnlyIban4jAccepts)
Different character mask: AE, BR, MU, PK, TR, UA6registry kept, see below (characterMasks)
Different bank or branch position: AL, BY, FI, FR, PL, PT, SI7registry kept (bankAndBranchPositions); FR and PT get a branch in the national layout

Character masks

PrefixRelease 100iban4jEffect in pololei
AE3!n16!n3!n16!cletters in the account number are rejected
BR8!c5!n10!n1!c1!c8!n5!n10!n1!a1!cletters in the bank identifier and a digit as account type are accepted; the registry example BR6699999A03000010009795493C1 is rejected by iban4j
MU4!a2!n2!n12!n3!n3!a6!c2!n18!caccount number numeric, currency alphabetic
PK4!a16!c4!c16!nbank identifier letters only, account number alphanumeric
TR5!n1!n16!c5!n1!c16!cthe reserved sixth character is a digit
UA6!n19!c6!n19!nletters in the account number are accepted

Bank and branch positions

PrefixRelease 100 (bank / branch)iban4j (bank / branch)Decision
AL1-3 / 4-81-3 / 4-7registry; iban4j treats position 8 as national check digit
BY1-4 / –1-4 / 5-8registry
FI1-3 / –1-6 / –registry
FR1-5 / –1-5 / 6-10registry; BbanLayout adds the branch 6-10 (CFONB RIB), Iban.branchIdentifier() stays empty
PL1-8 / –1-3 / 4-7registry: the 8 digit settlement number includes its check digit
PT1-4 / –1-4 / 5-8registry; BbanLayout adds the branch 5-8 (NIB)
SI1-5 / –1-2 / 3-5registry

Matrix of all 112 prefixes

Generated from IbanRegistryData.java and org/iban4j/bban/BbanStructure.java of the commit above. Positions are BBAN positions; "–" means not defined or not supported.

PrefixSupported byIBAN lengthpololei (release 100)Bank / branch pololeiiban4jBank / branch iban4jDifference
ADboth244!n4!n12!c1-4 / 5-84!n4!n12!c1-4 / 5-8–
AEboth233!n16!n1-3 / –3!n16!c1-3 / –character mask
ALboth288!n16!c1-3 / 4-83!n4!n1!n16!c1-3 / 4-7branch
AOiban4j only25–– / –4!n4!n11!n2!n1-4 / 5-8–
ATboth205!n11!n1-5 / –5!n11!n1-5 / ––
AXiban4j only18–– / –6!n7!n1!n1-6 / ––
AZboth284!a20!c1-4 / –4!a20!c1-4 / ––
BAboth203!n3!n8!n2!n1-3 / 4-63!n3!n8!n2!n1-3 / 4-6–
BEboth163!n7!n2!n1-3 / –3!n7!n2!n1-3 / ––
BGboth224!a4!n2!n8!c1-4 / 5-84!a4!n2!n8!c1-4 / 5-8–
BHboth224!a14!c1-4 / –4!a14!c1-4 / ––
BIboth275!n5!n11!n2!n1-5 / 6-105!n5!n13!n1-5 / 6-10–
BLiban4j only27–– / –5!n5!n11!c2!n1-5 / 6-10–
BRboth298!c5!n10!n1!c1!c1-8 / 9-138!n5!n10!n1!a1!c1-8 / 9-13character mask
BYboth284!c4!n16!c1-4 / –4!c4!n16!c1-4 / 5-8branch
CHboth215!n12!c1-5 / –5!n12!c1-5 / ––
CRboth224!n14!n1-4 / –4!n14!n1-4 / ––
CViban4j only25–– / –4!n4!n13!c1-4 / 5-8–
CYboth283!n5!n16!c1-3 / 4-83!n5!n16!c1-3 / 4-8–
CZboth244!n16!n1-4 / –4!n16!n1-4 / ––
DEboth228!n10!n1-8 / –8!n10!n1-8 / ––
DJboth275!n5!n11!n2!n1-5 / 6-105!n5!n11!n2!n1-5 / 6-10–
DKboth184!n9!n1!n1-4 / –4!n10!n1-4 / ––
DOboth284!c20!n1-4 / –4!c20!n1-4 / ––
EEboth202!n14!n1-2 / –2!n13!n1!n1-2 / ––
EGboth294!n4!n17!n1-4 / 5-84!n4!n17!n1-4 / 5-8–
ESboth244!n4!n1!n1!n10!n1-4 / 5-84!n4!n2!n10!n1-4 / 5-8–
FIboth183!n11!n1-3 / –6!n7!n1!n1-6 / –bank
FKpololei only182!a12!n1-2 / ––– / ––
FOboth184!n9!n1!n1-4 / –4!n9!n1!n1-4 / ––
FRboth275!n5!n11!c2!n1-5 / –5!n5!n11!c2!n1-5 / 6-10branch
GAiban4j only27–– / –5!n5!n13!c1-5 / 6-10–
GBboth224!a6!n8!n1-4 / 5-104!a6!n8!n1-4 / 5-10–
GEboth222!a16!n1-2 / –2!a16!n1-2 / ––
GFiban4j only27–– / –5!n5!n11!c2!n1-5 / 6-10–
GGiban4j only22–– / –4!a6!n8!n1-4 / 5-10–
GIboth234!a15!c1-4 / –4!a15!c1-4 / ––
GLboth184!n9!n1!n1-4 / –4!n10!n1-4 / ––
GPiban4j only27–– / –5!n5!n11!c2!n1-5 / 6-10–
GRboth273!n4!n16!c1-3 / 4-73!n4!n16!c1-3 / 4-7–
GTboth284!c20!c1-4 / –4!c20!c1-4 / ––
HNpololei only284!a20!n1-4 / ––– / ––
HRboth217!n10!n1-7 / –7!n10!n1-7 / ––
HUboth283!n4!n1!n15!n1!n1-3 / 4-73!n4!n16!n1!n1-3 / 4-7–
IEboth224!a6!n8!n1-4 / 5-104!a6!n8!n1-4 / 5-10–
ILboth233!n3!n13!n1-3 / 4-63!n3!n13!n1-3 / 4-6–
IMiban4j only22–– / –4!a6!n8!n1-4 / 5-10–
IQboth234!a3!n12!n1-4 / 5-74!a3!n12!n1-4 / 5-7–
IRiban4j only26–– / –3!n19!n1-3 / ––
ISboth264!n2!n6!n10!n1-2 / 3-42!n2!n2!n6!n10!n1-2 / 3-4–
ITboth271!a5!n5!n12!c2-6 / 7-111!a5!n5!n12!c2-6 / 7-11–
JEiban4j only22–– / –4!a6!n8!n1-4 / 5-10–
JOboth304!a4!n18!c1-4 / 5-84!a4!n18!c1-4 / 5-8–
KWboth304!a22!c1-4 / –4!a22!c1-4 / ––
KZboth203!n13!c1-3 / –3!n13!c1-3 / ––
LBboth284!n20!c1-4 / –4!n20!c1-4 / ––
LCboth324!a24!c1-4 / –4!a24!c1-4 / ––
LIboth215!n12!c1-5 / –5!n12!c1-5 / ––
LTboth205!n11!n1-5 / –5!n11!n1-5 / ––
LUboth203!n13!c1-3 / –3!n13!c1-3 / ––
LVboth214!a13!c1-4 / –4!a13!c1-4 / ––
LYboth253!n3!n15!n1-3 / 4-63!n3!n15!n1-3 / 4-6–
MAiban4j only28–– / –3!n5!n16!n1-3 / 4-8–
MCboth275!n5!n11!c2!n1-5 / 6-105!n5!n11!c2!n1-5 / 6-10–
MDboth242!c18!c1-2 / –2!c18!c1-2 / ––
MEboth223!n13!n2!n1-3 / –3!n13!n2!n1-3 / ––
MFiban4j only27–– / –5!n5!n11!c2!n1-5 / 6-10–
MKboth193!n10!c2!n1-3 / –3!n10!c2!n1-3 / ––
MNpololei only204!n12!n1-4 / ––– / ––
MQiban4j only27–– / –5!n5!n11!c2!n1-5 / 6-10–
MRboth275!n5!n11!n2!n1-5 / 6-105!n5!n11!n2!n1-5 / 6-10–
MTboth314!a5!n18!c1-4 / 5-94!a5!n18!c1-4 / 5-9–
MUboth304!a2!n2!n12!n3!n3!a1-6 / 7-86!c2!n18!c1-6 / 7-8character mask
MZiban4j only25–– / –4!n4!n11!n2!n1-4 / 5-8–
NCiban4j only27–– / –5!n5!n11!c2!n1-5 / 6-10–
NIpololei only284!a20!n1-4 / ––– / ––
NLboth184!a10!n1-4 / –4!a10!n1-4 / ––
NOboth154!n6!n1!n1-4 / –4!n6!n1!n1-4 / ––
OMboth233!n16!c1-3 / –3!n16!c1-3 / ––
PFiban4j only27–– / –5!n5!n11!c2!n1-5 / 6-10–
PKboth244!a16!c1-4 / –4!c16!n1-4 / –character mask
PLboth288!n16!n1-8 / –3!n4!n1!n16!n1-3 / 4-7bank, branch
PMiban4j only27–– / –5!n5!n11!c2!n1-5 / 6-10–
PSboth294!a21!c1-4 / –4!a21!c1-4 / ––
PTboth254!n4!n11!n2!n1-4 / –4!n4!n11!n2!n1-4 / 5-8branch
QAboth294!a21!c1-4 / –4!a21!c1-4 / ––
REiban4j only27–– / –5!n5!n11!c2!n1-5 / 6-10–
ROboth244!a16!c1-4 / –4!a16!c1-4 / ––
RSboth223!n13!n2!n1-3 / –3!n13!n2!n1-3 / ––
RUboth339!n5!n15!c1-9 / 10-149!n5!n15!c1-9 / 10-14–
SAboth242!n18!c1-2 / –2!n18!c1-2 / ––
SCboth314!a2!n2!n16!n3!a1-6 / 7-84!a2!n2!n16!n3!a1-6 / 7-8–
SDboth182!n12!n1-2 / –2!n12!n1-2 / ––
SEboth243!n16!n1!n1-3 / –3!n16!n1!n1-3 / ––
SIboth195!n8!n2!n1-5 / –2!n3!n8!n2!n1-2 / 3-5bank, branch
SKboth244!n6!n10!n1-4 / –4!n16!n1-4 / ––
SMboth271!a5!n5!n12!c2-6 / 7-111!a5!n5!n12!c2-6 / 7-11–
SNiban4j only28–– / –5!c5!n12!n2!n1-5 / 6-10–
SOpololei only234!n3!n12!n1-4 / 5-7–– / ––
STboth254!n4!n11!n2!n1-4 / 5-84!n4!n13!n1-4 / 5-8–
SVboth284!a20!n1-4 / –4!a20!n1-4 / ––
TFiban4j only27–– / –5!n5!n11!c2!n1-5 / 6-10–
TLboth233!n14!n2!n1-3 / –3!n14!n2!n1-3 / ––
TNboth242!n3!n13!n2!n1-2 / 3-52!n3!n13!n2!n1-2 / 3-5–
TRboth265!n1!n16!c1-5 / –5!n1!c16!c1-5 / –character mask
UAboth296!n19!c1-6 / –6!n19!n1-6 / –character mask
VAboth223!n15!n1-3 / –3!n15!n1-3 / ––
VGboth244!a16!n1-4 / –4!a16!n1-4 / ––
WFiban4j only27–– / –5!n5!n11!c2!n1-5 / 6-10–
XKboth204!n10!n2!n1-2 / 3-42!n2!n10!n2!n1-2 / 3-4–
YEpololei only304!a4!n18!c1-4 / 5-8–– / ––
YTiban4j only27–– / –5!n5!n11!c2!n1-5 / 6-10–