Barcode Validator (EAN-13 / UPC-A / Code 128)
Validate a barcode number, compute the check digit, and produce a ready-to-render image URL. Supports EAN-13, EAN-8, UPC-A, Code 128, and ISBN.
Result
General calculation reads
Amazon affiliateAs an Amazon Associate we may earn from qualifying purchases. This does not add cost for you.
How to use this calculator
- Pick the symbology your barcode is in.
- Enter the data — with or without the check digit.
- Read the canonical form and the computed/validated check digit.
- Copy the render link to a browser to preview the barcode image.
About this calculator
Every retail product barcode in the world has a check digit at the end — a single digit chosen so the GS1 modulo-10 weighted sum lands on a multiple of 10. This tool computes that check digit for the symbologies you actually run into: EAN-13 (the global standard), EAN-8 (small packages), UPC-A (US/Canada retail), ISBN-13 (books), and Code 128 (any ASCII, used in shipping labels). Type the data digits and the tool gives you the canonical form, the check digit, and a ready-to-render preview URL. Type a complete barcode and the tool tells you whether the check digit is correct.
How it works — the formula
sum = Σ(digit_i · w_i), where w_i alternates {3,1} from right
check_digit = (10 − sum mod 10) mod 10GS1 modulo-10: a weighted sum where adjacent digits weight 3 vs 1, then the check completes the multiple of 10. Catches single-digit errors and most transposition errors.
Worked examples
- Inputs:
- data=012345678901, sym=ean13
- Output:
- check digit 2 → 0123456789012
- Inputs:
- data=03600029145, sym=upca
- Output:
- check digit 2 → 036000291452
- Inputs:
- data=9780140177398, sym=isbn
- Output:
- valid (Penguin Classics)
Limitations
- No visual rendering inline — preview link points to barcodeapi.org.
- Code 128 acceptance is permissive (any printable ASCII).
- Does not check whether a real product is registered under the GTIN.
Check-digit calculation is exact; canonical industry algorithm.
Frequently asked
What is a barcode check digit?+
What is the difference between EAN-13 and UPC-A?+
What is GTIN?+
When should I use Code 128 vs EAN?+
How accurate is the check-digit math?+
Related calculators
More tools you might like
Hand-picked tools that pair well with this one — same audience, same intent.
Build the canonical text payload encoded in a QR code — plain text, URL, WiFi-network credentials, or vCard contact. Includes a ready-to-render image URL for visual scanning.
Convert numbers between hexadecimal, binary, octal, and decimal. Shows the bit pattern grouped by nibble + the two’s-complement representation for negative values.
Look up the ASCII/Unicode codepoint for any character — or go the other way and turn a list of codepoints back into text. Shows decimal, hex (U+XXXX), octal, binary, HTML entity, JS escape, and URL-encoded forms for every code point.
Compute tip and split a restaurant bill evenly among diners.
Render time = (duration × frames/sec × complexity) / machine speed.
A printable conference badge — attendee name, title, organization, role color band, session track, and a QR code that encodes a vCard (name + title + org + email + phone + URL) so a scan adds the attendee straight to a contacts app.