Skip to content
Account & Identity

Credit Card Validator

Validate credit card numbers: Luhn algorithm, card type detection, formatting.

100% client-side: your files never leave your browser

The Luhn algorithm is a simple checksum formula used to validate identification numbers:

  1. Starting from the rightmost digit, double every second digit.
  2. If doubling results in a value greater than 9, subtract 9.
  3. Sum all digits together.
  4. If the total modulo 10 equals 0, the number is valid.