Credit Card Validator

Validate credit card numbers with the Luhn Algorithm.

Need to generate a Credit Card for testing?

About the Credit Card Validator

This validator checks if a credit card number is mathematically valid using the Luhn Algorithm (modulus 10). This algorithm is used by all card brands (Visa, Mastercard, Amex, etc.) to validate the structure of numbers.

Important: this tool only validates the mathematical structure of the number. It does not verify if the card is active, has credit, or if the bank data exists. Use only for development testing.

Como Funciona o Algoritmo de Luhn?

O Algoritmo de Luhn (ou "módulo 10") é um método de checksum usado para validar números de cartão de crédito:

  1. Posições ímpares: Começando da direita, multiplique cada dígito em posição ímpar por 2.
  2. Ajuste: Se o resultado for maior que 9, subtraia 9.
  3. Soma total: Some todos os dígitos (os originais das posições pares e os processados das ímpares).
  4. Validação: Se a soma for divisível por 10, o número é válido.

Frequently Asked Questions (FAQ)