Luhn / 银行卡号校验 — Uttir
Skip to main content

Luhn / 银行卡号校验

通过 Luhn 校验算法验证信用卡或借记卡卡号,识别卡组织(Visa、Mastercard、Amex、Discover、JCB、银联),并生成可安全展示的掩码。

Luhn / 银行卡号校验 — The Luhn algorithm (a simple modulo-10 checksum) is what catches typos in card numbers before they hit the payment processor. Every well-formed card number passes it; a single mistyped digit fails.

Validation runs entirely in your browser. Your card number is never sent to a server, logged, or stored.

Was Luhn / 银行卡号校验 useful?

Luhn / 银行卡号校验是什么?

The Luhn algorithm (a simple modulo-10 checksum) is what catches typos in card numbers before they hit the payment processor. Every well-formed card number passes it; a single mistyped digit fails.

This tool validates the Luhn checksum, identifies the card scheme from the Issuer Identification Number (the first 6 digits), checks the length against what each scheme allows, and produces a display-safe mask for receipts and logs. Everything runs in your browser — no upload, no third-party API.

使用方法

  1. Paste or type a card number

    Dashes and spaces are fine; they are stripped before validation.

  2. Read the verdict

    A green badge means it passes both the Luhn checksum and the length check for the detected scheme.

  3. Copy the masked display

    Use the BIN •••• last 4 mask for any UI that shows the card back to a user.

常见问题

相关工具

Last reviewed: 2026-11-21