Spaces:
Running
Running
Download index.html from riconiqumar77/iban-validator: direct link, hf CLI and curl.
- Browser
- Download file 7.69 kB
-
https://huggingface.co/spaces/riconiqumar77/iban-validator/resolve/main/index.html
- Command line
-
hf download hf://spaces/riconiqumar77/iban-validator/index.html
-
curl -L -o index.html https://huggingface.co/spaces/riconiqumar77/iban-validator/resolve/main/index.html
7.69 kB
| <html lang="en"><head> | |
| <meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"> | |
| <title>IBAN Validator — check an IBAN's format and checksum</title> | |
| <meta name="description" content="Validate an International Bank Account Number: length by country and the ISO 7064 mod-97 checksum. Runs locally; nothing is stored or sent."> | |
| <meta name="keywords" content="payment-validation, fintech-tools, iban-validator, iban-checksum, bank-account-validation, kyc"> | |
| <meta property="og:title" content="IBAN Validator — check an IBAN's format and checksum"> | |
| <meta property="og:description" content="Validate an International Bank Account Number: length by country and the ISO 7064 mod-97 checksum. Runs locally; nothing is stored or sent."> | |
| <meta property="og:type" content="website"> | |
| <style> | |
| :root{color-scheme:light dark;--bg:#fff;--fg:#1a1a1a;--muted:#666;--line:#e2e2e2; | |
| --accent:#2563eb;--card:#f7f8fa;--ok:#1a7f37;--warn:#b7791f;--bad:#cf222e} | |
| @media(prefers-color-scheme:dark){:root{--bg:#161616;--fg:#e8e8e8;--muted:#a0a0a0; | |
| --line:#333;--accent:#7aa2f7;--card:#1e2128;--ok:#3fb950;--warn:#d29922;--bad:#f85149}} | |
| *{box-sizing:border-box} | |
| body{margin:0;padding:2rem 1.1rem 4rem;background:var(--bg);color:var(--fg); | |
| font:16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif} | |
| main{max-width:44rem;margin:0 auto} | |
| h1{font-size:1.85rem;line-height:1.2;margin:0 0 .4rem} | |
| h2{font-size:1.2rem;margin:2.2rem 0 .7rem;padding-top:1.1rem;border-top:1px solid var(--line)} | |
| h3{font-size:1rem;margin:1.2rem 0 .3rem} | |
| p{margin:0 0 1rem}.lede{color:var(--muted);font-size:1.05rem;margin-bottom:1.6rem} | |
| a{color:var(--accent)} | |
| .tool{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:1.2rem;margin:1.5rem 0} | |
| .tool label{display:block;font-size:.85rem;color:var(--muted);margin:.7rem 0 .2rem;font-weight:600} | |
| .tool input,.tool select{width:100%;padding:.55rem .65rem;border:1px solid var(--line); | |
| border-radius:7px;background:var(--bg);color:var(--fg);font:inherit;font-size:.95rem} | |
| .tool .row{display:grid;grid-template-columns:1fr 1fr;gap:.7rem} | |
| @media(max-width:520px){.tool .row{grid-template-columns:1fr}} | |
| .tool button{margin-top:1rem;padding:.6rem 1.1rem;border:0;border-radius:7px; | |
| background:var(--accent);color:#fff;font:inherit;font-weight:600;cursor:pointer} | |
| .tool button.sec{background:transparent;color:var(--accent);border:1px solid var(--accent)} | |
| .out{margin-top:1rem;padding:.9rem 1rem;border-radius:8px;background:var(--bg); | |
| border:1px solid var(--line);font-size:.95rem;min-height:1.5rem} | |
| .out .big{font-size:1.6rem;font-weight:700;letter-spacing:-.5px} | |
| .out table{width:100%;border-collapse:collapse;font-size:.9rem;margin-top:.4rem} | |
| .out td{padding:.35rem .2rem;border-bottom:1px solid var(--line)} | |
| .out td:last-child{text-align:right;font-variant-numeric:tabular-nums} | |
| .ok{color:var(--ok)}.warn{color:var(--warn)}.bad{color:var(--bad)} | |
| .note{font-size:.82rem;color:var(--muted);margin-top:.6rem} | |
| ul{margin:0 0 1rem 1.2rem}li{margin-bottom:.35rem} | |
| footer{margin-top:2.5rem;padding-top:1.1rem;border-top:1px solid var(--line);color:var(--muted);font-size:.9rem} | |
| </style> | |
| <script type="application/ld+json">{"@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{"@type": "Question", "name": "Which countries are supported?", "acceptedAnswer": {"@type": "Answer", "text": "The checksum works for any IBAN. Length validation covers the registered IBAN countries; an unknown country code still gets a checksum result with a note."}}, {"@type": "Question", "name": "Is my IBAN stored?", "acceptedAnswer": {"@type": "Answer", "text": "No. It is validated in your browser and never sent anywhere."}}, {"@type": "Question", "name": "Does a valid checksum mean the account is real?", "acceptedAnswer": {"@type": "Answer", "text": "No. It means the number is internally consistent and correctly formed. Whether the account exists and belongs to who you think requires a bank-level check, not a format validator."}}]}</script> | |
| </head><body><main> | |
| <h1>IBAN Validator — check an IBAN's format and checksum</h1> | |
| <p class="lede">Validate an International Bank Account Number: length by country and the ISO 7064 mod-97 checksum. Runs locally; nothing is stored or sent.</p> | |
| <div class="tool"> | |
| <label>IBAN</label> | |
| <input id="iban" value="GB82 WEST 1234 5698 7654 32" oninput="chk()" autocomplete="off" spellcheck="false"> | |
| <div class="out" id="o" aria-live="polite"></div> | |
| <script> | |
| var LEN={AL:28,AD:24,AT:20,BE:16,BA:20,BG:22,HR:21,CY:28,CZ:24,DK:18,EE:20,FI:18,FR:27, | |
| DE:22,GI:23,GR:27,HU:28,IE:22,IL:23,IT:27,LV:21,LT:20,LU:20,MT:31,MC:27,NL:18,NO:15, | |
| PL:28,PT:25,RO:24,SK:24,SI:19,ES:24,SE:24,CH:21,GB:22,UA:29,AE:23,SA:24,TR:26,QA:29}; | |
| function chk(){ | |
| var v=document.getElementById('iban').value.replace(/\s+/g,'').toUpperCase(); | |
| var o=document.getElementById('o'); | |
| if(!v){o.innerHTML='';return;} | |
| var rows=[]; | |
| var fmt=/^[A-Z]{2}\d{2}[A-Z0-9]+$/.test(v); | |
| rows.push(['Basic format', fmt]); | |
| var cc=v.slice(0,2), expected=LEN[cc]; | |
| var lenOk=expected?v.length===expected:null; | |
| rows.push(['Country length'+(expected?' ('+cc+' = '+expected+')':' ('+cc+' unknown)'), lenOk]); | |
| var checkOk=false; | |
| if(fmt){ | |
| var re=v.slice(4)+v.slice(0,4); | |
| var n='';for(var i=0;i<re.length;i++){var c=re[i];n+=(c>='A'&&c<='Z')?(c.charCodeAt(0)-55):c;} | |
| var rem=0;for(var i=0;i<n.length;i++){rem=(rem*10+ +n[i])%97;} | |
| checkOk=rem===1; | |
| } | |
| rows.push(['Mod-97 checksum', checkOk]); | |
| var pass=fmt&&checkOk&&(lenOk!==false); | |
| var html='<div class="big '+(pass?'ok':'bad')+'">'+(pass?'✓ Valid IBAN':'✗ Invalid IBAN')+'</div><table>'; | |
| rows.forEach(function(r){var s=r[1]===null?'<span class="warn">?</span>':(r[1]?'<span class="ok">pass</span>':'<span class="bad">fail</span>'); | |
| html+='<tr><td>'+r[0]+'</td><td>'+s+'</td></tr>';}); | |
| html+='</table><div class="note">Format check only — this does not confirm the account exists.</div>'; | |
| o.innerHTML=html; | |
| } | |
| chk(); | |
| </script></div> | |
| <p class="note">Everything runs in your browser. No data is uploaded or stored.</p> | |
| <h2>About this tool</h2> | |
| <p>Straightforward and private: A validator for International Bank Account Numbers that checks both the country-specific length and the mod-97 checksum defined by the IBAN standard.</p><p>A structurally valid IBAN is not proof the account exists, but a failed check catches the typos and transpositions that cause failed transfers and rejected onboarding forms. The checksum is real arithmetic from the ISO 13616 / 7064 standard, computed in your browser.</p><p>Nothing is transmitted — this is a format check, not a lookup.</p> | |
| <h2>How to use it</h2> | |
| <ol><li>Paste the IBAN (spaces are ignored).</li><li>Read whether the country length and checksum pass.</li><li>If it fails, re-check the digits against the source document — most failures are a single wrong character.</li></ol> | |
| <h2>Frequently asked questions</h2> | |
| <h3>Which countries are supported?</h3><p>The checksum works for any IBAN. Length validation covers the registered IBAN countries; an unknown country code still gets a checksum result with a note.</p><h3>Is my IBAN stored?</h3><p>No. It is validated in your browser and never sent anywhere.</p><h3>Does a valid checksum mean the account is real?</h3><p>No. It means the number is internally consistent and correctly formed. Whether the account exists and belongs to who you think requires a bank-level check, not a format validator.</p> | |
| <footer><p>Built by the team behind | |
| <a href="https://finauth.io" rel="noopener">FinAuth</a> — KYC, identity verification, and AML onboarding for fintech and regulated businesses.</p></footer> | |
| </main></body></html> | |