TXT · Text & Data tools

Credit Card Number Validator

Values to check
Result
Credit card numberscheme0values0valid0invalid0unreadable

Luhn plus a length and issuer-prefix check.

Open the full check digit validator with Luhn, IBAN, ISBN, GTIN, VIN, ISIN, Verhoeff, and Damm

Shareable link

Settings are written to the URL as you change them. Nothing differs from the defaults yet.

Card number structure

A card number is not one field. The first 6 to 8 digits are the issuer identification number, the digits after it identify the account, and the final digit is a Luhn check digit computed over everything before it.

Length varies by issuer. American Express uses 15 digits, most Visa and Mastercard numbers use 16, and UnionPay and Discover run as long as 19.

Test numbers

Published test numbers such as 4539578763621486 pass Luhn by construction, which is why they work in sandbox checkouts. They are safe to paste here because the check is arithmetic on the digits and nothing more.

Use the result to catch a typo before an import or a support ticket. It will not tell you whether a card is active, and it cannot detect a number that was copied correctly but belongs to someone else.

Frequently Asked Questions

It checks the length, matches the leading digits against known issuer ranges, and runs the Luhn algorithm over the whole number.

Visa, Mastercard including the 2221 to 2720 range, American Express, Discover, JCB, Diners Club, UnionPay, and Maestro.

No. Luhn only proves the digits are consistent. Whether an account exists, is open, or has funds is known to the issuer alone.

Pages locked to one scheme

Full Check Digit Validator tool

Explore Our Tools

Browse all tools