Esta página aún no está traducida al español, así que la mostramos en 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.

Actualizado el

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

    Tus datos nunca salen de tu ordenador. Todo se procesa localmente en tu navegador.

    Cómo 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.

    También se busca como: credit card number checker, luhn check, validate card number, card type checker, bin checker, test credit card numbers, luhn algorithm, visa number validator.

    Herramientas que combinan con: 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.
    • Generador de números aleatorios — Genera números aleatorios (con o sin duplicados), elige ganadores de una lista, mezcla nombres, divide grupos en equipos, lanza monedas y tira los dados, todo ello utilizando el generador de números aleatorios criptográficamente seguro de tu navegador.
    • Generador de datos ficticios — Crea hasta 10 000 filas de datos de prueba realistas —usuarios, productos, pedidos, direcciones, empresas o registros API anidados— o diseña tu propio esquema.
    • Probador de expresiones regulares — Escribe un patrón y observa cómo se resaltan las coincidencias en tiempo real en tu texto de prueba.

    Preguntas frecuentes

    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.
    ¿Puedo instalar Credit Card Validator como aplicación web y utilizarla sin conexión?
    Sí. Credit Card Validator es una aplicación web instalable (PWA): se instala desde el navegador, no se descarga desde una tienda de aplicaciones. Haz clic en «Instalar aplicación» en la parte superior de esta página en Chrome o Edge (Windows, macOS, Linux, ChromeOS) o, en Android, utiliza «Compartir» → «Añadir a la pantalla de inicio» en iPhone y iPad, o «Archivo» → «Añadir al Dock» en Safari 17+ en un Mac. A continuación, se abrirá en su propia ventana con su propio icono y, como se ejecuta íntegramente en tu navegador, seguirá funcionando sin conexión. Firefox en el ordenador de sobremesa no permite instalar aplicaciones web. Cómo funciona la instalación.

    Herramientas relacionadas