不喜欢广告? 无广告 今天

Barcode Check Digit Validator

数据开发人员数学
广告 移除?

单项验证

Spaces, dashes and dots are automatically stripped. ISBN-10 may end with X.

批量验证

Enter a barcode to validate

批量结果

Barcode 格式 地位 预期值
结果将显示在这里
广告 移除?

指导

Barcode Check Digit Validator

Barcode Check Digit Validator

Validate the check digit of any retail or shipping barcode in one paste. The validator auto-detects the format from the digit count, recomputes the expected check digit using the right algorithm — GS1 modulo-10 for EAN/UPC/GTIN, modulo-11 for ISBN-10 — and shows a position-by-position breakdown so you can see exactly where a transcription error crept in.

如何使用

  1. Paste a barcode into the Barcode field. Spaces, dashes, and dots are stripped automatically.
  2. 离开 格式自动检测, or pick a specific standard if your input is ambiguous (an 8-digit number could be EAN-8 or UPC-E).
  3. Read the verdict — valid means the trailing check digit matches what the algorithm expects, invalid means it does not.
  4. Inspect the Calculation Breakdown to see the per-digit weights, the running sum, and the modulo result.
  5. To validate many barcodes at once, paste them into 批量验证 — one per line — and the table populates per row.

支持的格式

  • EAN-13 – 13-digit retail barcode used worldwide on consumer products.
  • EAN-8 – 8-digit short form for small packages.
  • UPC-A – 12-digit code used across North America.
  • UPC-E – 8-digit compressed UPC; the validator expands it to UPC-A internally.
  • ISBN-10 – Legacy 10-character book identifier, may end in X.
  • ISBN-13 – Modern 13-digit book identifier, prefixed with 978 or 979.
  • GTIN-14 – 14-digit logistics-unit identifier used in shipping containers.

特征

  • Auto-detect format – Recognises seven barcode standards by length and prefix; override manually when needed.
  • 逐步解析 – Position, digit, weight, and product for every contributing digit.
  • Expected vs provided – Surfaces the digit the algorithm expected so you can fix the wrong character at a glance.
  • 批量模式 – Validate hundreds of barcodes in a single paste, with a per-row format and verdict.
  • Forgiving input – Spaces, dashes, dots, and lowercase X are normalised before validation.
  • 100% 客户端 – Numbers never leave the browser; nothing is logged or sent to a server.

常问问题

  1. Why does the same digit string need a different check digit for ISBN-10 vs ISBN-13?

    ISBN-10 uses a modulo-11 algorithm with descending weights from 10 down to 2, while ISBN-13 uses the GS1 modulo-10 algorithm shared by EAN-13. The arithmetic, the weight pattern, and even the alphabet differ — ISBN-10 may end in X (representing 10), but ISBN-13 must end in a digit 0–9.

  2. What does the alternating 3,1 weight pattern in EAN/UPC actually catch?

    It detects all single-digit substitution errors, and most adjacent transposition errors. The asymmetry between 3 and 1 means swapping two neighbouring digits usually produces a different sum, which trips the check. Doubling-only schemes (like Luhn) catch transpositions only when neighbours differ by exactly 5.

  3. Why is GTIN-14 the same algorithm as EAN-13 but a different length?

    GTIN is the unifying 14-digit container in the GS1 framework. Shorter codes (EAN-13, UPC-A, EAN-8) are conceptually right-aligned inside a GTIN-14 with leading zeros. The algorithm has to be consistent so a system can store every variant in the same field and reuse the same validator.

  4. Can a barcode pass the check digit and still be wrong?

    Yes. The check digit only protects against transcription errors — typos, OCR misreads, smudged scans. It does not prove the code was issued or that the underlying GTIN belongs to a real product. For that you need GS1 lookup or a product database.

想要享受无广告的体验吗? 立即无广告

安装我们的扩展

将 IO 工具添加到您最喜欢的浏览器,以便即时访问和更快地搜索

添加 Chrome 扩展程序 添加 边缘延伸 添加 Firefox 扩展 添加 Opera 扩展

记分板已到达!

记分板 是一种有趣的跟踪您游戏的方式,所有数据都存储在您的浏览器中。更多功能即将推出!

广告 移除?
广告 移除?
广告 移除?

新闻角 包含技术亮点

参与其中

帮助我们继续提供有价值的免费工具

给我买杯咖啡
广告 移除?