Credit card validator

    Check a card number against the Luhn algorithm and detect the issuing scheme.

    Loading tool…

    About the credit card validator

    Checks a card number against the Luhn algorithm, identifies the issuing scheme from its prefix, verifies the length is right for that scheme and shows the BIN and a masked form. Everything runs locally — the number is never transmitted.

    Frequently asked questions

    Does passing Luhn mean the card works?

    No. Luhn is a checksum that catches typos and transposed digits, nothing more. Whether a card is issued, active or funded can only be answered by the payment network.

    Should I validate card numbers myself?

    Do the Luhn check client-side for instant feedback, but never let a raw card number reach your servers. Use a payment provider's hosted fields so the data stays out of your compliance scope entirely.