Barcode Toolbox
Precision utilities for compliant, scannable barcodes — calculate check digits, estimate symbol width, decode GS1 Application Identifiers and verify color contrast. All instant and private.
GTIN check digit calculator
Enter the payload without its final check digit. The tool computes it using the GS1 modulo-10 rule.
Result
Check digit
7
Complete code
5901234123457
Show calculation (sum = 83)
From the right, weights alternate 3,1,3,1…; check = (10 − sum mod 10) mod 10.
Small details decide whether a code scans
A barcode that fails at checkout or on a conveyor costs far more than the label it is printed on. These tools help you get the technical details right before a full print run.
Correct check digits
A wrong check digit makes a GTIN invalid at point-of-sale. Verify every retail number before printing.
Adequate size
Symbols shrunk below the minimum X-dimension or with clipped quiet zones fail to read.
Structured data
GS1 Application Identifiers must be formatted correctly for partners to parse them automatically.
Strong contrast
Low contrast and red bars defeat laser scanners. Dark-on-light with ≥4.5:1 is the safe rule.
Frequently asked questions
How is an EAN/UPC check digit calculated?
Using the GS1 modulo-10 rule: from the rightmost payload digit, multiply digits alternately by 3 and 1, sum the products, then the check digit is (10 − sum mod 10) mod 10. The calculator shows every step.
What is the X-dimension of a barcode?
The X-dimension is the width of the narrowest bar (module) in a linear barcode, usually measured in millimetres or mils. GS1 specifies a minimum around 0.19mm at 300dpi; 0.33mm is a common, scan-safe value.
What is a quiet zone and why does it matter?
The quiet zone is the blank margin before the first bar and after the last bar. Scanners need it to detect where the symbol starts and ends. For Code 128 it should be at least 10 times the X-dimension on each side.
What are GS1 Application Identifiers?
AIs are numeric prefixes that define the meaning and format of data in GS1-128 and GS1 2D codes — for example (01) GTIN, (10) batch, (17) expiry, (21) serial. The parser decodes each field from a parenthesised string.
What contrast do barcodes need to scan reliably?
Aim for a contrast ratio of at least 4.5:1 between bars and background (WCAG AA). Dark bars on white is ideal. Avoid red bars, which red-laser scanners cannot see, and low-contrast or glossy backgrounds.
Are these tools free and private?
Yes. Every calculation runs instantly in your browser — no data is uploaded, no signup is required, and there are no usage limits.
Ready to generate?
Put these principles into practice with the full generator, or design a complete printable label.