Settings

One number

Use test numbers where you can. Nothing typed here leaves the tab, but a real card number is better not typed anywhere it does not need to be.

A list of them

How it works

CHECKDIGIT tests a payment card number, IBAN, ISBN, EAN or UPC barcode, VIN, UK VAT number, US routing number, ISSN or IMEI against its own check digit, and says what the right digit would be when it fails. Paste a whole column to check a list. Nothing is looked up and nothing leaves this tab.

What passing means

A check digit is arithmetic on the other digits, printed with the number so that a single mistyped digit, and most pairs of swapped digits, are caught before the number is used. Passing it says the number was not mistyped. It does not say the card exists, the account is open or the car is not stolen, and nothing on this page asks anybody.

The rules are each from their own standard: Luhn (ISO/IEC 7812-1) for cards and IMEIs, mod 97 (ISO 13616) and the SWIFT registry’s lengths for IBANs, mod 11 for ISBN-10 and ISSN, the GS1 check digit for EAN, UPC, GTIN and ISBN-13, ISO 3779’s position 9 for a North American VIN, HMRC’s mod 97 scheme for UK VAT numbers and the 3-7-1 weights for a US routing number. To make test data that passes, FAUX writes it.

Questions people ask about CHECKDIGIT

How do I check whether a card number is valid?

Its last digit is a Luhn check digit: double every second digit from the right, add the digits of the results and the rest, and the total ends in 0. 4111 1111 1111 1111 passes; change any one digit and it fails. Passing says the number was not mistyped, not that a card with that number exists.

How is an IBAN checked?

Move the first four characters to the end, turn letters into numbers (A is 10, B is 11 and so on to Z at 35), and the whole number divided by 97 leaves 1. The length must also be the one the SWIFT registry gives for the country: 22 for the UK and Germany, 27 for France. GB82 WEST 1234 5698 7654 32 is the usual example, and it passes.

Does a valid check digit mean the number is real?

No. It means the number is internally consistent, which catches almost every single-digit typing mistake. Whether a card was issued, an account is open, a VAT number is registered or a book exists needs the issuer’s own service, and nothing on this page asks anyone.

Why does a European VIN fail?

The check digit in position 9 is required in North America, and vehicles built for other markets often use that position for something else. A VIN that fails the check may still be genuine if the vehicle was not built for the US or Canada; the page says so beside the answer.

Can I check a whole column of numbers?

Yes. Paste them one a line into the second box and press Check them all. Each line is read as whatever it looks like, or as the kind chosen above, and the results can be saved as a CSV.

Doing this often? OBSCURA Pro saves the result from here, along with the result of every other tool outside the Workspace, and includes the paid applications. Everything is US$5 a month or US$48 a year.