Luhn / IBAN Validator

Luhn (ISO/IEC 7812) and IBAN check digits catch typos, not fraud. A number that passes is well-formed, not a real card or a funded account. Use test PANs from your acquirer and fictional IBANs. Never paste a live customer card or a real payroll IBAN into a browser tool.

What the Luhn and IBAN validator is for

Card numbers and IBANs carry a check digit calculated from the rest of the number. Validating it catches typos instantly — before a payment fails or a transfer goes astray.

Doing this check in the browser lets a form reject an obvious mistake without sending anything anywhere, which is both faster and more private.

Common uses

  • Verifying test card numbers during payment development
  • Checking an IBAN before submitting a bank transfer
  • Validating input formats while building a checkout form
  • Confirming a number was transcribed correctly

What the output means in the real world

Pass or fail is the checksum only. It does not contact a bank. For fixtures, a passing test card (for example well-known Visa 4111 test ranges from processor docs) belongs in QA, not in production charges. If you typed a real PAN, treat it as a handling incident: close the tab and do not store the screenshot.

How this fits into real work

PCI-DSS forbids live PANs in logs, tickets, and unofficial tools. Developers who validate a 'sample' that is actually a customer card create a cardholder-data environment by accident.

IBANs include a country code, checksum, and bank fields. A checksum pass still can point at the wrong institution if the user swapped two digits that Luhn-like checks miss in some national formats. Confirm with the payee out of band for large transfers.

Fraudsters generate Luhn-valid numbers and test them at merchants. A validator on a public page must not become a carding helper: this tool checks a number you already have, and it should stay that way.

How to use this tool

  1. Paste the card number or IBAN, with or without spaces.
  2. Read whether the check digit is valid.
  3. A failure almost always means a transposed or mistyped digit — re-read the source.

Tips

  • Luhn validity proves the number is well-formed, not that the account exists or has funds.
  • Use only published test card numbers during development; never real ones.
  • IBAN validation also checks country-specific length, which catches errors Luhn alone would miss.

Privacy & how it works

Everything happens inside your browser. The values you type are held in page memory only, are never sent to a server, and disappear when you close the tab. You can confirm this in your browser's network tab: the only request a tool makes is one that names the tool for a usage count, with nothing you typed in it. The tools also work with the internet disconnected. Nothing is transmitted — but never enter a real card number into any web page that is not a payment form you trust.

Frequently asked questions

Does passing the Luhn check mean a card is real?
No. It only means the digits are internally consistent. Whether the account exists, is active, or has funds can only be established by the payment network.
What is the Luhn algorithm?
A checksum that doubles every second digit from the right, sums the results, and requires the total to be divisible by ten. It catches single-digit errors and most transpositions.

Browse other tools

All tools run entirely in your browser — nothing you type is sent to a server, except the optional HIBP 5-character hash prefix.