⚡
usefultools.dev
mod 10

Luhn Checker (Mod 10)

NOVO

Check a card number with the Luhn (mod 10) algorithm or calculate its missing check digit, with a step-by-step breakdown.

Funciona 100% no seu navegador — o que você insere nunca é enviado nem armazenado nos nossos servidores.

Esta ferramenta ainda não está totalmente traduzida, por isso parte do texto continua em inglês. A ferramenta funciona da mesma forma em todos os idiomas.

Spaces and dashes are ignored.

✓ Valid (passes Luhn mod 10)Sum 30 · 16 digits · Visa
Every second digit from the right is doubled; results over 9 have 9 subtracted.
Digit4111111111111111
Value8121212121212121
⚡

Exemplos rápidos

Entradas típicas e os resultados que esta ferramenta gera.

Validate
4111 1111 1111 1111
Valid · Visa
Validate
4111 1111 1111 1112
Invalid
Validate
5555 5555 5555 4444
Valid · Mastercard
Validate
79927398713
Valid
Check digit
7992739871
Check digit 3
📖

Visão geral

The Luhn algorithm, also called mod 10, is the checksum used in payment card numbers, IMEI codes and many other identifiers. Starting from the rightmost digit, every second digit is doubled, 9 is subtracted from any result above 9, and the total must be a multiple of 10.

This checker validates a full number or calculates the check digit for a number you are building. It shows the doubled digits so you can follow the math, and detects the card brand from the leading digits. It catches typos only: a valid Luhn result does not mean the card exists.

Developers, QA testers and support staff use it to check test PANs, find a mistyped digit or work out the last digit of a number they are composing. Spaces and dashes are ignored, the check runs as you type, and everything is calculated in your browser, so the number is not sent anywhere.

Por que usar esta ferramenta?

  • Find typos in card numbers before sending a test transaction
  • Calculate check digits when you build test PANs by hand
  • Learn the algorithm from the step table
  • Runs locally — the number never leaves your browser
⭐

Recursos

✅

Instant validation

The result updates as you type; spaces and dashes are ignored.

🔢

Check digit calculator

Enter a number without its last digit to get the digit that makes it valid.

🧮

Step-by-step table

See which digits are doubled and the value each one adds to the sum.

💳

Brand detection

Recognises Visa, Mastercard, Amex, Discover, JCB, UnionPay and Diners prefixes.

🛠️

Como usar

1

Pick a mode

Choose "Validate number" or "Compute check digit".

2

Enter digits

Paste the number into the input field; spaces and dashes are ignored.

3

Read the result

Valid / invalid or the check digit appears instantly, with the sum, digit count and step table.

4

Copy

In check-digit mode use "Copy full number" to take the completed number.

🤔

Perguntas frequentes