gg
HomeDev & Data › Luhn / Card Check
Dev & Data

Luhn / Card Check

Check whether a number passes the Luhn checksum — the formula used by credit-card and many ID numbers. It validates the checksum only, not whether an account exists.

Try it now

Worked example

✓ valid (Luhn passes)

Learn the method

Frequently asked

Does this mean the card is real?

No — Luhn only checks the checksum digit, not that the card is issued or active.

Are spaces okay?

Yes, non-digits are ignored.

Related Dev & Data tools