Credit Card Validator

Validate a card number with the Luhn check and detect the card brand. Runs locally — your number is never transmitted.

Spaces and hyphens are ignored. Number is never sent — validation is entirely in your browser.
Enter input above to see the result.

What is this for?

Credit card numbers embed two forms of structural validation: a checksum (the Luhn algorithm) that catches typos, and an issuer prefix that identifies the card brand and constrains valid length. This tool runs both checks entirely in your browser — your number never leaves the page — to catch malformed input before it reaches a payment processor or test environment. It's structural validation only: it cannot tell you whether a card is active, issued, or has available funds.

When to use it

How it works

Common gotchas