Start a project

Tool 356 of 425 · Checksums

Luhn Card Number Validator

Validates numbers with the Luhn checksum, identifies the card network, and completes a missing check digit.

Luhn Card Number Validator

Your input

Result

NumberBrandLengthResult

    01

    What it does

    Validates numbers with the Luhn checksum, identifies the card network, and completes a missing check digit.

    • Luhn mod 10 check
    • Visa, Mastercard, Amex, Discover detection
    • IMEI mode
    • Missing check digit calculation

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    A pass or fail per number, with a Copy and a Download button on every result.

    • Luhn
    • Card validation
    • IMEI

    Why it matters

    Payment forms and test fixtures need numbers that pass Luhn, and support teams need to spot a mistyped number fast.

    Use test numbers like 4242 4242 4242 4242; nothing is sent anywhere.

    How to use it

    1. Type or paste your input; the example shows the format.
    2. Press Validate. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. Copy or download what you need. Nothing leaves this page.

    FAQ

    Does a pass mean the card is real?

    No. Luhn only catches typos. Only the card network can confirm a card.

    Should I paste real card numbers?

    No need; use your payment provider's test numbers.

    Is my input uploaded?

    No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

    Can I rely on the result?

    It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk