Credit Card Validator
Check a card number with the Luhn algorithm and see the card type.
How to use the Credit Card Number Validator
- Enter the number. Type or paste the card number. Spaces are fine.
- See the result. It is checked as you type. Nothing is sent anywhere.
- Check the details. The table shows what the format tells us.
- Copy or download. Use the Copy button, or Download to save the result as a file.
About this tool
Card numbers end with a check digit calculated with the Luhn algorithm. This tool runs that check and also looks at the first digits to name the card network, such as Visa, Mastercard, RuPay or American Express.
A pass does not mean the card is real, active or has funds. It only means the number is correctly formed. For safety, test with sample numbers, not your own card.
Checked on your device only. Do not enter anything you would not want on screen when someone is looking.
When to use the Credit Card Number Validator
- Check a card number for typing errors.
- Test a payment form with sample numbers.
- Learn how the Luhn check works.
Tips for the best result
- Use test numbers when you can.
- A pass does not mean the card is active.
- Never share your real card number, expiry or CVV.
Frequently asked questions
What is the Luhn algorithm?
A simple checksum that catches most typing mistakes in card numbers.
Is it safe to enter my card number?
The check runs in your browser and nothing is sent. Still, it is safer to test with a sample number such as 4111 1111 1111 1111.
Does this check the expiry date or CVV?
No. Those are checked only by the bank when you pay.
Does a valid number mean the card works?
No. It only means the digits follow the card number rules.
Is there a limit on how much text I can paste?
There is no fixed limit. Very large texts depend on your device’s memory and can be slower on older phones.
Is my text sent anywhere?
No. Everything runs in your browser. What you type or paste never leaves your device.
More tools
See all Banking & ID Validators