International IBAN (ISO 13616), Mod-97 Checksums & Client-Side Invoicing Standards
Prevent costly wire transfer typos and non-compliant invoices: learn ISO 13616 IBAN layout, how ISO 7064 Mod-97-10 big-integer division catches transposition errors, and mandatory invoice data fields across EU/international billing.
1. Anatomy of an ISO 13616 IBAN & Country BBAN Lengths
| Country Code | Fixed Length | Sample Electronic Format | Bank Identifier Slice | Copy |
|---|---|---|---|---|
| NL (Netherlands) | 18 characters | NL91ABNA0417164300 | 4-char BIC bank prefix (ABNA) | |
| DE (Germany) | 22 characters | DE89370400440532013000 | 8-digit Bankleitzahl (BLZ) | |
| BE (Belgium) | 16 characters | BE68539007547034 | 3-digit bank protocol ID | |
| GB (United Kingdom) | 22 characters | GB29NWBK60161331926819 | 4-char bank + 6-digit sort code | |
| FR (France) | 27 characters | FR7630006000011234567890189 | 5-digit banque + 5-digit guichet |
2. ISO 7064 Mod-97-10 Verification Without Floating-Point Overflow
Number loses precision past 53 bits (15-16 digits), whereas converted IBAN integers exceed 40+ digits! Either use native BigInt or iterate chunk-by-chunk using modular arithmetic: move the first 4 characters (country + check digits) to the end, expand letters A=10..Z=35, and confirm remainder === 1 modulo 97. This catches 100% of single-digit errors and virtually all adjacent digit swaps.export function verifyIbanMod97(raw: string): boolean {
const clean = raw.replace(/\s+/g, '').toUpperCase();
if (!/^[A-Z]{2}\d{2}[A-Z0-9]{10,30}$/.test(clean)) return false;
const rearranged = clean.slice(4) + clean.slice(0, 4);
let rem = 0;
for (const ch of rearranged) {
const digits = /[A-Z]/.test(ch) ? String(ch.charCodeAt(0) - 55) : ch;
for (const d of digits) rem = (rem * 10 + Number(d)) % 97;
}
return rem === 1;
}Computes exact modulo 97 over arbitrary-length IBAN strings in O(n) time with constant memory.
3. Mandatory EU VAT Invoice Fields & Tax Audit Readiness
| Invoice Element | Compliance Requirement | Common Audit Failure | Copy |
|---|---|---|---|
| Sequential Invoice ID | Unique chronological series (e.g. 2026-0042) | Duplicate or missing sequence gaps | |
| Customer & Supplier VAT IDs | Required on all B2B & intra-EU supplies | Omitting buyer VAT on reverse-charge jobs | |
| Net, Tax Rate & Gross Split | Explicit subtotal + percentage + VAT total | Rounding discrepancies per line vs total |
4. Greedy Net-Balance Reduction for Group Expense Settlements
Related Free Online Tools
Put these techniques into practice immediately with our privacy-first browser utilities:
Validate IBAN checksums via ISO 7064 Mod-97, extract bank codes, and format SEPA groups offline.
Generate itemized PDF invoices with VAT/tax breakdowns and totals locally in your browser.
Split group bills and calculate minimal net settlement transfers cleanly offline.
Independent software developer focused on client-side architectures, local-first computing, WebAssembly, and privacy-first web systems.