Credit Card Validator

Validate credit card numbers with the Luhn check and detect Visa, Mastercard and more — free.

This only checks the number's format and checksum — it can't tell you whether a card is real, active, or has funds on it.

About

About the Credit Card Validator

Checks a card number against the Luhn checksum and detects which network issued it, such as Visa, Mastercard, American Express or Discover.

Developers building a checkout or billing form use it to test their own card-number validation against known test numbers, and support teams use it to confirm a card number a customer typed is at least correctly formed before troubleshooting further. It's one of many free data tools on Toolapt, and like every tool here, it's free to use with no sign-up and no limit on how many times you run it.

Choose what to view about this tool

Guide

Using the Credit Card Validator

  1. 1

    Step 1

    Type or paste the card number, with or without spaces or dashes.

  2. 2

    Step 2

    Click "Check", or just press Enter.

  3. 3

    Step 3

    Read whether it passes the Luhn checksum and which network was detected.

  4. 4

    Step 4

    Click "Clear" to check another number.

  • Validates any card number using the Luhn checksum algorithm
  • Detects the card network: Visa, Mastercard, American Express, Diners Club, Discover, JCB or UnionPay
  • Formats the number into its network's normal spaced grouping
  • Accepts input with or without spaces and dashes
  • Supports checking with Enter as well as the Check button
  • Works entirely in your browser — nothing you enter is sent to a server
  • Free to use, with no sign-up and no limit on how many times you run it

Developers

Developers building a checkout or billing form use the Credit Card Validator for testing their own card-number validation logic against known test numbers.

QA engineers

QA engineers use the Credit Card Validator for confirming that a payment form correctly detects a card's network and rejects malformed numbers.

Support teams

Support teams use the Credit Card Validator for confirming a card number a customer typed is at least correctly formed before troubleshooting a failed payment further.

Students learning payments

Students learning how payment systems work use the Credit Card Validator for seeing how the Luhn checksum and network detection actually operate.

Examples

Credit Card Validator examples

3 worked examples

01

Visa test number

Checking 4111 1111 1111 1111 passes the Luhn checksum and is detected as Visa.

02

Mastercard test number

Checking 5555 5555 5555 4444 passes the Luhn checksum and is detected as Mastercard.

03

One digit changed

Changing the last digit to 4111 1111 1111 1112 fails the Luhn checksum, so it's reported invalid.

FAQ

Frequently asked questions

Quick answers to common questions about the Credit Card Validator.

What does the Credit Card Validator do?

It checks a card number's Luhn checksum and detects which network issued it.

Is the Credit Card Validator free to use?

Yes. It's free, with no sign-up, no watermark and no limit on how many times you use it.

Is my card number safe when I use this tool?

Yes. The check happens entirely on your own device — nothing you enter is sent to a server or stored anywhere.

What is the Luhn checksum?

It's a simple checksum formula built into every major card network's numbering scheme, used to catch typos and transcription errors — it's the same first-line check payment systems run before even contacting a bank.

Does passing the Luhn check mean the card is real or has funds?

No. It only confirms the number is correctly formed according to the checksum — it can't tell you whether a card is real, active, or has any funds available on it.

Should I use my real card number with this tool?

There's no reason to. Use one of the widely published test card numbers (like 4111 1111 1111 1111 for Visa) to try the tool safely.

What networks can this tool detect?

Visa, Mastercard, American Express, Diners Club, Discover, JCB and UnionPay, based on well-known digit patterns and lengths for each network.

Can I use this tool on my phone?

Yes. The page is fully responsive and works on mobile, tablet and desktop browsers alike.

Still have a question? Contact us

Report a problem

Credit Card Validator

What went wrong?
    or paste a screenshot