Skip to content
Pololei
Documentation / Library comparison

Pololei compared with Java IBAN and BIC libraries.

Pololei covers IBAN, BIC, BBAN fields and national check digits in one library. The clearest gaps are bank directories, German account check methods and the Java baseline (21). Its strengths are the shared JVM/GWT code base, structured validation results, national checks configurable per validator and the optional modules for creditor identifiers and EPC payloads.

As of 29 November 2026 · Pololei 1.1.0 · iban4j 3.2.14 · jbanking 4.3.0 · iban-commons 1.8.14 · Comparison of documentation and sources; no new joint runtime or conformance test.

1. Feature matrix: Pololei and the five closest alternatives

✓ documentedT partly / restricted or optional module– outside the documented scope? not sufficiently documented (no proof of the opposite)i Note
Pololei16 ✓ + 0 T
iban4j9 ✓ + 2 T
jbanking9 ✓ + 0 T
iban-commons9 ✓ + 6 T
java-iban4 ✓ + 1 T
iban4g7 ✓ + 1 T
CapabilityPololeiiban4jjbankingiban-commonsjava-ibaniban4g
Validate IBAN: country, length, MOD 97✓✓✓✓✓✓
Check the national BBAN pattern per country✓✓✓✓–deliberately not checked✓
Create an IBAN from components✓✓✓✓✓country + BBAN✓
Generate a random IBAN✓✓✓✓–✓
Validate and split a BIC✓✓✓✓–✓
BBAN fields (bank, branch, account, …)✓✓✓✓Tbank/branch✓
Verify national check digits by calculation✓16 rules✓15 rules–reads the field onlyTcalculation rules; eleven pass-through rules do not check–explicitly excluded?not to be inferred from iban4j
National check configurable per validator instance✓Tglobal registry–no national checkTglobal configuration–no national check?
Separate “national check not supported” status✓NOT_SUPPORTED?no equivalent contract documented–no national check?no four-state contract documented–no national check?
Error details without an exception (code, position, expected length)✓Ttyped exceptions–mainly boolean/exceptionTerror enums in exceptions; result classes internal–mainly exception–mainly boolean/exception
Parse without an exception (Optional)✓??✓??
Immutable value objects✓?objects and builder✓✓✓?objects and builder
Validate, split and create SEPA Creditor Identifiers✓optional module?✓?–?
EPC069-12 payload (GiroCode text)✓optional module✓??–?
GWT support✓incl. GWT-RPC????✓J2CL documented too
Bank directory, IBAN → BIC––?Toptional bank data module–?
German account check methods by bank code–––Tseparate module–?
Core without third-party runtime dependencies✓✓✓✓✓TGWT/J2CL dependencies separate
Ready-made Bean Validation annotations–not in the module set??Toptional module??
Java baseline (note)i21i11i8icore 8; validation module 11i8i11

Count = number of ✓ out of 20 rows; it says nothing about quality or field coverage. Prowide Core, validators and specialists are listed in section 2 because their focus differs. Sources: Pololei, iban4j, jbanking, iban-commons, java-iban, iban4g.

  • National check digits, IBAN creation, BBAN fields, immutable value objects and a core without third-party runtime dependencies are not exclusive to Pololei. The difference lies in the combination and in the API contract.
  • iban4g is the predecessor of Pololei; its README recommends Pololei for new projects.
  • iban-commons: the README names 43 NCD country codes, while the 1.8.14 release source contains 30 calculation mappings and eleven pass-through mappings (see section 6).

2. Other libraries and tools

LibraryDocumented capabilitiesOffers in addition to PololeiPololei documents in addition
Prowide CoreIBAN/BIC value classes, validation, configurable BBAN structuresSWIFT FIN messages as the main purpose; constructing an IBAN object does not replace its validationCreditor identifier, EPC payload, GWT and national check modes (not documented for Prowide)
Apache Commons ValidatorIBAN length, country regex, MOD 97; check digit calculation separatelyBroad general validation library for many other data typesIBAN creation, BBAN fields, BIC splitting, structured errors, creditor identifier, EPC payload
Hibernate Validator@IBAN in Bean Validation: country/length and MOD 97; null satisfies @IBANReady-made annotation within Bean ValidationCountry-specific BBAN pattern, national check digits, BBAN fields, creation
bank-account-validatorJakarta IBAN/BIC annotations, check modes, DACH bank servicesBank lookup for Germany, Austria, Switzerland; ServiceLoader extensionNational check digits, BBAN fields, creation, GWT, creditor identifier, EPC payload
easyKonto LokalCommercial local Java library: IBAN, national account checks, bank data, BIC resolution (vendor statements)Bank data and BIC resolution; no own binary test, scope as stated by the vendorOpen source (Apache-2.0) without a licence key; GWT, creditor identifier, EPC payload
HBCI4JavaFinTS, TAN, SEPA orders; IBAN helpers, bank data, German account check methodsBank access via FinTS, bank data, account checks by German methodsSmall core without a banking stack; registry-based IBAN validation with field API (not documented for HBCI4Java), GWT, creditor identifier, EPC
bank4jpain.001 credit transfer files, IBAN/BIC annotations built on iban4jISO 20022 payment filesOwn validation and field API, structured errors, national check modes, creditor identifier, GWT
jSEPASEPA credit transfer and direct debit XML; IBAN validation via Commons ValidatorSEPA payment XMLOwn IBAN/BIC value model, creditor identifier validation (jSEPA documents only a model field), EPC payload, GWT
epc-qrEPC/GiroCode builder with image output via ZXingQR image outputIBAN/BIC value model, validation, creditor identifier, GWT (Pololei delivers the payload text only)
qrsctEPC/SCT payload; the example renders with an external QR librarySmall payload specialistIBAN/BIC value model and validation; current maintenance (qrsct: last reviewed commit 2018)
Swiss QR BillSwiss QR bill with PDF/SVG/PNG and decoderSwiss standard, image output, parsingEPC069-12, SEPA creditor identifier, general IBAN/BIC model, GWT
jDTAUS ISO-13616IBAN parsing, formats, check digits, BBAN composition; registry release 78 (2017)Historic scope; Java 5 targetRegistry release 103, current maintenance, BIC, national rules, GWT
iban-validator (jakaarl)Small IBAN validator with SPI; the default only checks the basic formatExtensibility via SPI; Java 6 targetCountry-specific patterns, national rules, BBAN fields, creation (a ready-made country suite is not documented for iban-validator)
iban-api-javaIBAN creation and validation, historic German bank rules, bank data of June 2014Historic German bank rules and BIC derivationCurrent registry, BIC validation, national check modes, GWT, creditor identifier, EPC
iban5jFork of iban4j with IBAN/BIC and builder; last reviewed commit 2019No advantage over iban4j documentedCurrent maintenance, registry release 103, national check modes, GWT, creditor identifier, EPC

3. Capabilities Pololei lacks – and whether their exclusion is documented

Checked against the README, API reference and guides of Pololei 1.1.0. The classification depends on whether the documentation names a limit or an exclusion explicitly – a missing entry does not mean the capability is planned.

Deliberate explicitly excluded, with reasoningLimit documented limit of the offeringOpen documented neither as a goal nor as an exclusion
Missing capabilityWho offers it?ClassificationReasoning / evidence
Bank directory, IBAN → BIC resolutioniban-commons (bank data module), bank-account-validator, easyKonto Lokal, HBCI4JavaOpenNot included and documented neither as a goal nor as an exclusion. A formally valid IBAN/BIC proves neither an active bank nor an existing account.
German account check methods by bank codeiban-commons (de-checkdigit), HBCI4Java, easyKonto LokalOpenNo built-in DE rule. Own NationalCheck rules can be added, but have to be developed and maintained yourself.
More national check digit rules (AL, AO, EE, HU, MZ, TL, XK, FR-based countries)iban-commonsLimit16 built-in countries (docs/national-checks.md). Countries without a rule yield NOT_SUPPORTED with IF_SUPPORTED and an error with REQUIRED.
General Dutch eleven test (elfproef)iban4jDeliberatedocs/national-checks.md: since 2020 Dutch banks may issue IBANs whose last ten digits are not separate; the rule would reject valid IBANs. Pololei returns NOT_SUPPORTED.
Java 8 or 11jbanking, iban-commons, java-iban (8); iban4j, iban4g (11)LimitREADME: Java 21 or newer; GWT 2.13 for GWT. A backport is not documented.
QR image or PDF for EPC payloadsepc-qr (ZXing)Limitpololei-epc creates the payload text. PNG, SVG or PDF output needs an external QR/output library.
Swiss QR billSwiss QR BillOpenNot included; a different standard than EPC069-12.
SEPA payment files (pain.001, pain.008)bank4j, jSEPAOpenNot included; Pololei is not a payments framework.
FinTS/HBCI connectivityHBCI4JavaOpenNot included.
SWIFT FIN messagesProwide CoreOpenNot included.
Business calendars, currencies, country classificationjbankingOpenNot included.
Ready-made Bean Validation annotationsHibernate Validator, iban-commons (validation module), bank-account-validator, bank4jOpenNot in the documented module set. An own adapter integration is possible.
National creditor identifier formats beyond Germany—LimitGeneral structure and MOD 97 for SEPA countries; a special national length check is documented for Germany only. Formal creation is not an official allocation.
Account holder verification—OpenNot included.
J2CLiban4gOpenNo separate J2CL commitment is derived for Pololei 1.1.0; iban4g documents GWT and J2CL.

4. Deliberate technical differences

An advantage or a disadvantage, depending on the application.

DifferencePololeiAlternative
Java baselineJava 21iban4j and iban4g: 11; jbanking and java-iban: 8; iban-commons core: 8, validation module 11.
Configuration of national rulesPer immutable validator instance; no global registration.iban4j: global country rules registry; iban-commons: global IbanConfig, to be set before first use.
Layout of BBAN fieldsFollows the SWIFT IBAN registry; positions are named by their meaning.iban4j returns different values for AL, PL, SI, FI, BY, SC, HU and TR (iban4j migration guide).
National check without a matching ruleIF_SUPPORTED reports NOT_SUPPORTED, REQUIRED rejects.iban-commons: the NoOp calculator takes over the existing value, so the national partial check always succeeds for a matching structure.
Input formatparse accepts electronic and print format, whitespace and lower case; strict with IbanFormat.iban4j: valueOf expects the electronic format in upper case.
Third-party runtime dependenciesNone in core, creditor and EPC; GWT needs the GWT runtime provided by the application.iban4g: GWT/J2CL dependencies separate; assess the additional iban-commons modules separately.

5. Documented strengths of Pololei

CapabilityWhat Pololei offersDifference compared with alternatives
Graded validation resultsparse, tryParse, isValid and validate; error code, position, expected length and character class. National checks report PASSED, FAILED, NOT_SUPPORTED or NOT_PERFORMED.iban4j, jbanking and java-iban mainly return booleans or exceptions; in iban-commons the result classes are internal.
Configuration per validatorImmutable IbanValidator instances with OFF, IF_SUPPORTED, REQUIRED and own rules.Global registry (iban4j) or global configuration (iban-commons).
BBAN as a business structureBank, branch, national account and further fields; accountNumber() and field(ACCOUNT_NUMBER) deliberately have different contracts.iban4j, jbanking and iban-commons offer fields too; layout and semantics differ per country.
JVM and browserCore, creditor and EPC can be used in GWT; GWT-RPC serializers are included.Not documented for iban4j, jbanking and iban-commons; iban4g (predecessor) documents GWT and J2CL.
Origin of the country data89 registry countries, SWIFT release 103, generated Java data and a generator bound to the hash of the source file.Country counts of other projects include dependent territories, alternative prefixes or experimental formats; a number is no quality ranking.
Creditor identifier and EPC in the same projectOptional modules pololei-creditor and pololei-epc without third-party runtime packages.jbanking offers creditor identifiers; iban4j, epc-qr and qrsct offer EPC payloads.

Compared with iban4j, validation, creation, national check digits and EPC payloads are shared capabilities. Pololei adds the creditor module, GWT-RPC and the explicit status for unsupported national checks. An existing iban4j integration keeps running on Java 11, while Pololei requires Java 21. An existing migration guide is no proof of unchanged field and error semantics.

6. National country rules in detail

A comparison of the registered offering, not a test of mathematical correctness: Pololei's documented built-ins, the CountryRulesRegistry of iban4j 3.2.14 and the NationalCheckDigitCalculators factory of iban-commons 1.8.14. The first 13 countries together with MC/SM and SK give 16 Pololei rules; for iban4j the 13 plus SK and NL give 15. In iban-commons, 30 country codes map to calculation rules and eleven to pass-through rules; the README figure “43” is neither a number of independent algorithms nor of fully verified countries. A shared country name does not mean the same algorithm.

Country / areaPololei 1.1.0iban4j 3.2.14iban-commons 1.8.14
BA, BE, ES, FI, FR, IT, ME, MK, NO, PT, RS, SI, TNCalculation ruleCalculation ruleCalculation rule
MC, SMCalculation ruleNo built-in rule in the registryCalculation rule
SKCalculation ruleCalculation ruleNo mapping in the reviewed NCD factory
NLDeliberately no general eleven testNL ruleNo mapping in the reviewed NCD factory
AL, AO, EE, HU, MZ, TL, XKNo built-in ruleNo built-in ruleCalculation rule
DJ, BF, BJ, CF, CM, GQ, KM, SNNo built-in ruleNo built-in ruleFR-based calculation rule
CG, CI, FO, GW, MG, ML, MR, NE, SE, TD, TRNo built-in ruleNo built-in rulePass-through rule, no material NCD check
DE with bank-code-dependent methodNo built-in ruleNo built-in ruleSeparate iban-commons-de-checkdigit

7. Further limits and restrictions of the comparison

  • Formally valid is not real: A valid IBAN/BIC proves neither an active bank nor an existing account or its holder.
  • Country counts are no quality ranking: Pololei's 89 registry entries face other counting methods including dependent territories, alternative prefixes or experimental formats. The actual country and rule requirements decide.
  • Limited national rules: 16 built-in countries; alphanumeric cases are explicitly restricted for MK and special cases can return NOT_SUPPORTED.
  • No payments framework: No pain.001/pain.008 creation, no FinTS/EBICS connectivity, no business calendars.
  • No measurements: Speed, memory use, complete country conformance and the availability of real accounts were not measured. Statements about other libraries rely on documentation, POMs and the release sources read; no new runtime probes were run.
  • Release and development: The statements apply to Pololei 1.1.0. The development state read in addition contains only a change to the OWASP update workflow afterwards. Development notes of other projects (such as iban-commons 1.8.15) are not attributed to the published release.

8. Choosing by use case

NeedSuitable shortlist
Shared Java/GWT logic, creditor identifier and EPCPololei; assess existing iban4g projects with the migration guide.
Existing Java 11 application with iban4j buildersKeep evaluating iban4j; estimate the Java and API migration to Pololei separately.
Java 8/Android, bank data or German account checksiban-commons with the required additional modules; mind the release and configuration limits.
Business calendars, currencies and creditor identifiersjbanking
Small IBAN domain type without national pattern checksjava-iban
Simple IBAN form validation in an existing frameworkCommons Validator, Hibernate Validator or bank-account-validator, depending on the depth of validation needed.
SWIFT FIN messagesProwide Core
Bank data and national account checks with commercial maintenanceeasyKonto Lokal; check licence and data scope.
SEPA payment files or FinTSbank4j or jSEPA; HBCI4Java for direct FinTS access.
EPC with image outputepc-qr; for plain payloads Pololei, iban4j or qrsct as well.
Swiss QR billsSwiss QR Bill

A source-based selection aid; speed, memory use and complete country conformance were not measured.

A ? is no proof that a capability is impossible; “not documented” means that the reviewed sources do not establish the feature. The libraries have different jobs (value model, validator, payment file, QR output); the comparison does not rate their quality. Basis: documentation and source review of 29 November 2026 (from 19:48 Europe/Berlin) with pinned GitHub revisions and published Maven artifacts; Pololei 1.1.0, plus development state c527547.