Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Numbers & Maths

UPC / EAN Barcode Validator

Paste a retail barcode number (UPC-A, UPC-E, EAN-13, EAN-8, or any GTIN up to 14 digits) and the tool verifies the GS1 check digit, identifies the format, and reports the manufacturer/company prefix country-group when it is a known GS1 code. A "check digit" mode computes the expected last digit for a partial code so you can build valid barcodes. Everything runs on-device with no uploads.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

What gets checked

Paste a retail number, one per line. Spaces and dashes are ignored and only the first line is read. The table reports the format, the digit count, the GS1 country group, the numeric-system prefix, and whether the final digit matches the weighted modulo-10 check.

Format detection by length

Length decides the label: 6 digits reads as UPC-E, 8 as EAN-8, 12 as UPC-A, 13 as EAN-13 and 14 as GTIN-14, with anything shorter tagged as a plain GTIN. The check digit is always the last digit of the code.

Computing a check digit

Switch Mode to Compute check digit to work the other way. Give the code without its last digit and the table returns the digit plus the completed barcode, so you can build valid numbers. At least two digits are required.

When to use it and its limits

Use it to catch a mis-keyed barcode before it reaches a system. The country group comes from the built-in GS1 prefix list, so the company itself is not resolved, and the tool never reads a barcode image. All checks run on your device and the numbers are never sent anywhere.

Questions

What barcode formats do you accept?

UPC-A (12 digits), EAN-13 (13 digits), EAN-8 (8 digits), UPC-E (6 or 8 digits) and any GTIN up to 14 digits. Spaces and dashes between digits are ignored.

How is the check digit computed?

GS1 uses a weighted modulo-10 sum where digits alternate weights 3 and 1 (from the rightmost digit with weight 3). The check digit makes the weighted total a multiple of 10.

Is the manufacturer prefix authoritative?

The country-group (numeric system) is looked up from the GS1 prefix list built into the tool. The company-level prefix is reported as displayed but not resolved to a business name — that requires a licensed lookup.

Does this read barcode images?

No. This validates the numeric code itself. To generate barcodes, use the Barcode / QR generator instead.

See category