Skip to main content

Credit Card Validator

Validate a credit card number (Luhn check).

Security uses 17.03.2026 Free Browser

Share via

Credit Card Validation

Digits only — spaces and dashes are added automatically.

Unknown
Enter card number to detect

Test with Sample Cards:

How Luhn Algorithm Works

Step-by-Step Process:

  1. Start from the rightmost digit
  2. Double every second digit
  3. If doubled digit > 9, subtract 9
  4. Sum all digits
  5. If sum ends with 0, card is valid

Example: 4111 1111 1111 1111

Original: 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Doubled: 8 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1
Sum: 8+1+2+1+2+1+2+1+2+1+2+1+2+1+2+1 = 40 ✓

Credit Card Types

Visa
• Starts with 4
• Length: 13, 16, 19
• Most common worldwide
Mastercard
• Starts with 5[1-5] or 2[2-7]
• Length: 16
• Second most common
American Express
• Starts with 34 or 37
• Length: 15
• Premium cards
Discover
• Starts with 6011, 622126-622925, 644-649, 65
• Length: 16, 19
• US-based network

Important Security Notice

⚠️ This tool is for educational purposes only. Never enter real credit card numbers for validation.

🔒 Privacy: All validation happens locally in your browser. No data is sent to any server. No CVV, expiry, or cardholder name is requested or stored.

📚 Learning: Use this tool to understand how credit card validation algorithms work (Luhn + BIN/prefix length rules).

🚫 Legal: Do not use this tool for fraudulent activities or testing stolen card numbers.

View all

Learn more