Esta página ainda não foi traduzida para o português, por isso aparece em inglês.

Credit Card Validator — Check Card Numbers (Luhn)

Type a card number to check its Luhn checksum, length and card brand — Visa, Mastercard, American Express, Discover, JCB, Diners Club, UnionPay, Maestro and more. Useful for testing checkout forms; includes official test numbers. Nothing is sent or stored.

Atualizado em

Checked only in your browser. For testing, prefer the test numbers below — a valid checksum doesn’t mean a card exists or has money.

Test card numbers

    Bulk check

    Seus dados nunca saem do seu computador. Todo o processamento acontece localmente no navegador.

    Como usar: Credit Card Validator

    1. Type or paste a card number — spaces and dashes are fine.
    2. See the brand, whether the length fits that brand and whether the Luhn checksum passes.
    3. Testing a payment form? Click a test number to use it; payment providers accept these in test mode only.
    4. Paste a list into Bulk check to validate many numbers at once.

    The Luhn algorithm

    Almost every payment card number ends with a check digit calculated with the Luhn (mod 10) algorithm. From the right, every second digit is doubled (subtracting 9 if the result is over 9), all digits are added up, and the total must end in 0. It catches most typos — a wrong digit or two swapped neighbors — before a form even contacts the bank.

    Card brands by first digits

    BrandStarts withLength
    Visa413, 16, 19
    Mastercard51–55, 2221–272016
    American Express34, 3715
    Discover6011, 644–649, 6516–19
    JCB3528–358916–19
    Diners Club300–305, 36, 38–3914–19
    UnionPay6216–19
    Maestro50, 56–58, 612–19

    What it can’t tell you

    A valid checksum only means the number is well-formed. Whether the card exists, is active or has funds is known only to the issuing bank, through a real payment authorization. Never use real card numbers for testing — use your payment provider’s test numbers.

    Também pesquisado como: credit card number checker, luhn check, validate card number, card type checker, bin checker, test credit card numbers, luhn algorithm, visa number validator.

    Ferramentas que combinam com: Credit Card Validator

    • IBAN Validator — Check whether an IBAN is valid before you send money or save it: the country, the length for that country, the account format and the mod-97 checksum.
    • Gerador de números aleatórios — Gere números aleatórios (com ou sem repetições), escolha vencedores de uma lista, embaralhe nomes, divida grupos em equipes, jogue moedas e lance dados — usando a geração de números aleatórios criptograficamente segura do seu navegador.
    • Gerador de dados simulados — Crie até 10.000 linhas de dados de teste realistas — usuários, produtos, pedidos, endereços, empresas ou registros de API aninhados — ou crie seu próprio esquema.
    • Testador de Expressões Regulares — Digite um padrão e veja as correspondências serem destacadas em tempo real no seu texto de teste.

    Perguntas frequentes

    How do I check if a credit card number is valid?
    Type it in: the tool runs the Luhn checksum, checks the length for the card brand and shows the brand. A pass means the number is well-formed, not that the card is active.
    What is the Luhn algorithm?
    A checksum formula: double every second digit from the right, add all digits, and the total must be a multiple of 10. It detects most typing mistakes.
    Which numbers can I use to test payments?
    Use the test numbers listed here (such as 4242 4242 4242 4242) with your payment provider’s test mode and any future expiry date. They never charge real money.
    Is the card number sent anywhere?
    No. Validation runs entirely in your browser and nothing is stored.
    Posso instalar o Credit Card Validator como um aplicativo da web e usá-lo offline?
    Sim. O Credit Card Validator é um aplicativo da web instalável (PWA) — instalado a partir do seu navegador, não baixado de uma loja de aplicativos. Clique em “Instalar aplicativo” na parte superior desta página no Chrome ou no Edge (Windows, macOS, Linux, ChromeOS) ou, no Android, use “Compartilhar” → “Adicionar à tela inicial” no iPhone e no iPad, ou “Arquivo” → “Adicionar ao Dock” no Safari 17+ em um Mac. Em seguida, ela se abre em uma janela própria com seu próprio ícone e, como é executada inteiramente no seu navegador, continua funcionando offline. O Firefox no desktop não permite a instalação de aplicativos da web. Como funciona a instalação.

    Ferramentas relacionadas