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.
1. Feature matrix: Pololei and the five closest alternatives
| Capability | Pololei | iban4j | jbanking | iban-commons | java-iban | iban4g |
|---|---|---|---|---|---|---|
| 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 only | Tcalculation 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 check | Tglobal 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/exception | Terror 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) | i21 | i11 | i8 | icore 8; validation module 11 | i8 | i11 |
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
| Library | Documented capabilities | Offers in addition to Pololei | Pololei documents in addition |
|---|---|---|---|
| Prowide Core | IBAN/BIC value classes, validation, configurable BBAN structures | SWIFT FIN messages as the main purpose; constructing an IBAN object does not replace its validation | Creditor identifier, EPC payload, GWT and national check modes (not documented for Prowide) |
| Apache Commons Validator | IBAN length, country regex, MOD 97; check digit calculation separately | Broad general validation library for many other data types | IBAN creation, BBAN fields, BIC splitting, structured errors, creditor identifier, EPC payload |
| Hibernate Validator | @IBAN in Bean Validation: country/length and MOD 97; null satisfies @IBAN | Ready-made annotation within Bean Validation | Country-specific BBAN pattern, national check digits, BBAN fields, creation |
| bank-account-validator | Jakarta IBAN/BIC annotations, check modes, DACH bank services | Bank lookup for Germany, Austria, Switzerland; ServiceLoader extension | National check digits, BBAN fields, creation, GWT, creditor identifier, EPC payload |
| easyKonto Lokal | Commercial 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 vendor | Open source (Apache-2.0) without a licence key; GWT, creditor identifier, EPC payload |
| HBCI4Java | FinTS, TAN, SEPA orders; IBAN helpers, bank data, German account check methods | Bank access via FinTS, bank data, account checks by German methods | Small core without a banking stack; registry-based IBAN validation with field API (not documented for HBCI4Java), GWT, creditor identifier, EPC |
| bank4j | pain.001 credit transfer files, IBAN/BIC annotations built on iban4j | ISO 20022 payment files | Own validation and field API, structured errors, national check modes, creditor identifier, GWT |
| jSEPA | SEPA credit transfer and direct debit XML; IBAN validation via Commons Validator | SEPA payment XML | Own IBAN/BIC value model, creditor identifier validation (jSEPA documents only a model field), EPC payload, GWT |
| epc-qr | EPC/GiroCode builder with image output via ZXing | QR image output | IBAN/BIC value model, validation, creditor identifier, GWT (Pololei delivers the payload text only) |
| qrsct | EPC/SCT payload; the example renders with an external QR library | Small payload specialist | IBAN/BIC value model and validation; current maintenance (qrsct: last reviewed commit 2018) |
| Swiss QR Bill | Swiss QR bill with PDF/SVG/PNG and decoder | Swiss standard, image output, parsing | EPC069-12, SEPA creditor identifier, general IBAN/BIC model, GWT |
| jDTAUS ISO-13616 | IBAN parsing, formats, check digits, BBAN composition; registry release 78 (2017) | Historic scope; Java 5 target | Registry release 103, current maintenance, BIC, national rules, GWT |
| iban-validator (jakaarl) | Small IBAN validator with SPI; the default only checks the basic format | Extensibility via SPI; Java 6 target | Country-specific patterns, national rules, BBAN fields, creation (a ready-made country suite is not documented for iban-validator) |
| iban-api-java | IBAN creation and validation, historic German bank rules, bank data of June 2014 | Historic German bank rules and BIC derivation | Current registry, BIC validation, national check modes, GWT, creditor identifier, EPC |
| iban5j | Fork of iban4j with IBAN/BIC and builder; last reviewed commit 2019 | No advantage over iban4j documented | Current 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.
| Missing capability | Who offers it? | Classification | Reasoning / evidence |
|---|---|---|---|
| Bank directory, IBAN → BIC resolution | iban-commons (bank data module), bank-account-validator, easyKonto Lokal, HBCI4Java | Open | Not 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 code | iban-commons (de-checkdigit), HBCI4Java, easyKonto Lokal | Open | No 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-commons | Limit | 16 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) | iban4j | Deliberate | docs/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 11 | jbanking, iban-commons, java-iban (8); iban4j, iban4g (11) | Limit | README: Java 21 or newer; GWT 2.13 for GWT. A backport is not documented. |
| QR image or PDF for EPC payloads | epc-qr (ZXing) | Limit | pololei-epc creates the payload text. PNG, SVG or PDF output needs an external QR/output library. |
| Swiss QR bill | Swiss QR Bill | Open | Not included; a different standard than EPC069-12. |
| SEPA payment files (pain.001, pain.008) | bank4j, jSEPA | Open | Not included; Pololei is not a payments framework. |
| FinTS/HBCI connectivity | HBCI4Java | Open | Not included. |
| SWIFT FIN messages | Prowide Core | Open | Not included. |
| Business calendars, currencies, country classification | jbanking | Open | Not included. |
| Ready-made Bean Validation annotations | Hibernate Validator, iban-commons (validation module), bank-account-validator, bank4j | Open | Not in the documented module set. An own adapter integration is possible. |
| National creditor identifier formats beyond Germany | — | Limit | General 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 | — | Open | Not included. |
| J2CL | iban4g | Open | No 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.
| Difference | Pololei | Alternative |
|---|---|---|
| Java baseline | Java 21 | iban4j and iban4g: 11; jbanking and java-iban: 8; iban-commons core: 8, validation module 11. |
| Configuration of national rules | Per immutable validator instance; no global registration. | iban4j: global country rules registry; iban-commons: global IbanConfig, to be set before first use. |
| Layout of BBAN fields | Follows 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 rule | IF_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 format | parse accepts electronic and print format, whitespace and lower case; strict with IbanFormat. | iban4j: valueOf expects the electronic format in upper case. |
| Third-party runtime dependencies | None 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
| Capability | What Pololei offers | Difference compared with alternatives |
|---|---|---|
| Graded validation results | parse, 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 validator | Immutable IbanValidator instances with OFF, IF_SUPPORTED, REQUIRED and own rules. | Global registry (iban4j) or global configuration (iban-commons). |
| BBAN as a business structure | Bank, 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 browser | Core, 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 data | 89 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 project | Optional 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 / area | Pololei 1.1.0 | iban4j 3.2.14 | iban-commons 1.8.14 |
|---|---|---|---|
| BA, BE, ES, FI, FR, IT, ME, MK, NO, PT, RS, SI, TN | Calculation rule | Calculation rule | Calculation rule |
| MC, SM | Calculation rule | No built-in rule in the registry | Calculation rule |
| SK | Calculation rule | Calculation rule | No mapping in the reviewed NCD factory |
| NL | Deliberately no general eleven test | NL rule | No mapping in the reviewed NCD factory |
| AL, AO, EE, HU, MZ, TL, XK | No built-in rule | No built-in rule | Calculation rule |
| DJ, BF, BJ, CF, CM, GQ, KM, SN | No built-in rule | No built-in rule | FR-based calculation rule |
| CG, CI, FO, GW, MG, ML, MR, NE, SE, TD, TR | No built-in rule | No built-in rule | Pass-through rule, no material NCD check |
| DE with bank-code-dependent method | No built-in rule | No built-in rule | Separate 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
| Need | Suitable shortlist |
|---|---|
| Shared Java/GWT logic, creditor identifier and EPC | Pololei; assess existing iban4g projects with the migration guide. |
| Existing Java 11 application with iban4j builders | Keep evaluating iban4j; estimate the Java and API migration to Pololei separately. |
| Java 8/Android, bank data or German account checks | iban-commons with the required additional modules; mind the release and configuration limits. |
| Business calendars, currencies and creditor identifiers | jbanking |
| Small IBAN domain type without national pattern checks | java-iban |
| Simple IBAN form validation in an existing framework | Commons Validator, Hibernate Validator or bank-account-validator, depending on the depth of validation needed. |
| SWIFT FIN messages | Prowide Core |
| Bank data and national account checks with commercial maintenance | easyKonto Lokal; check licence and data scope. |
| SEPA payment files or FinTS | bank4j or jSEPA; HBCI4Java for direct FinTS access. |
| EPC with image output | epc-qr; for plain payloads Pololei, iban4j or qrsct as well. |
| Swiss QR bills | Swiss 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.