The barcode guide
What each symbology is for, how check digits work, how GS1 data is structured, and what a scan can never prove — written to be read before you print a label.
Choosing a symbology
Code 128 packs all 128 ASCII characters into the narrowest linear symbol, which makes it the default for internal labels: order cards, asset tags, shipping references. GS1-128 is the same symbology with an FNC1 in first position and the data formatted as application identifiers.
EAN-13 and UPC-A are the retail symbols under the barcode on a product. UPC-A is twelve digits and is a subset of EAN-13 with a leading zero; scanners report one or the other depending on their configuration, so a comparison tool must normalise before it says two numbers are different.
EAN-8 and UPC-E are the short forms for small packaging. UPC-E compresses a UPC-A number by dropping zero runs, which is why a six-digit UPC-E and a twelve-digit UPC-A can be the same product. ITF-14 identifies a case or carton, not a consumer unit, and is printed with a bearer bar that protects the symbol during handling.
Code 39 is the simplest industrial symbol — uppercase letters, digits and a few punctuation marks — and remains common on assets and ID cards because it can be read by older equipment. Code 93 is its denser successor with two check characters. Codabar is still used by some logistics and library systems and encodes digits plus a few separators.
QR Code is the general-purpose 2D symbol: any bytes, strong error correction and omnidirectional reading. Data Matrix is the choice for very small parts and for marks that will be laser-etched. PDF417 is a stacked linear symbol used on identity documents and boarding passes, where a large payload must survive partial damage.
Check digits are arithmetic, not authority
A GTIN check digit is computed from the preceding digits with a fixed weighting. It catches a single mistyped digit or two transposed digits; it catches nothing else. Anyone can compute one, and this site does, in the browser.
A valid check digit therefore means the number is well formed. It does not mean the number was issued by GS1, does not mean the product exists, and does not mean the label is genuine. The company prefix at the front of a GTIN is assigned by a GS1 member organisation; only GS1's own registries can confirm that assignment.
The same distinction applies to a scanned code and to a product database record. A scan proves what the symbol contains. A database record proves what a contributor typed. Neither is a manufacturer's declaration, and no laboratory or brand verification is implied anywhere on this site.
GS1 data: identifiers, dates and element strings
GS1 data is a sequence of application identifiers. AI (01) is the GTIN, (10) the batch, (21) the serial, (17) the expiry date, (15) the best-before date, (11) the production date and (13) the packaging date. A variable-length field ends at an FNC1 character, which a scanner emits as a group separator.
Dates are written YYMMDD. A day of 00 means the last day of that month, so 250200 is 28 February 2025. Two-digit years are interpreted in the standard's own window; the parser on this site applies that rule and shows the resulting calendar date so you can check it.
A GS1 Digital Link is a URL that carries the same identifiers, for example https://id.example.com/01/09506000134352/10/LOT-42?17=251231. The path holds the primary key and its identifying attributes, the query holds the rest. The same link can sit inside a QR code or a Data Matrix; the standard defines the URL, not the symbol.
When a label prints a batch code next to a barcode, the two are different things. The barcode identifies the product; the batch identifies the run. Turning a batch code into a date requires the manufacturer's own scheme, which is why this site separates VERIFIED, ESTIMATED and NOT DECODABLE instead of guessing.
Printing a symbol that actually scans
Leave a quiet zone. A linear symbol needs at least ten module widths of light space on each side; a QR code needs four modules on every side. A quiet zone printed over with a border, a folding line or another element is the most common reason a symbol scans on screen and fails on paper.
Print at a module width your scanner can resolve. At 100% magnification a typical EAN-13 is about 37.3 mm wide with 0.33 mm modules; laser printers routinely round that down, so a 0.25 mm module is a safer target for a desktop label than the theoretical minimum. Below roughly 0.2 mm, phone cameras start failing.
Keep contrast high and ink dark. Black on white is not a stylistic choice: a 4.5:1 contrast ratio is the floor for comfortable camera reading, and 7:1 or better survives ordinary office lighting. Printing a symbol in a brand colour, or inverted (light bars on a dark field), breaks many decoders.
Check the artwork at the size it will print. A symbol that looks fine at 800 px on screen can be 9 mm wide on paper. The generator computes its size from the encoded module count and the chosen scale, and the exported SVG keeps that geometry exact at any print resolution.
What a scanner can and cannot tell you
A scanner reports the characters it decoded. It does not report whether the label is genuine, whether the product is authentic, or whether the database record is correct. Those are three separate questions with three separate answers, and this site keeps them apart in every tool.
Camera scanning on a phone works best with the whole symbol in frame, even lighting and no glare. Auto-focus needs a moment on very small symbols; moving closer than the focus distance produces a blur that no decoder can recover. The scanner here pauses between reads of the same value so a single label does not flood the history.
The image analyser measures pixels per module. A 0.33 mm module photographed across 300 px is roughly 11 px per module, which is comfortable; 1 px per module is not recoverable. That measurement is a screening aid, not an ISO/IEC 15416 or ISO/IEC 15415 grade — those need a calibrated verifier with a defined aperture and lighting geometry.
Nothing you scan, generate or upload on these pages is sent to this site. The generator, the camera decoder, the CSV batch and the image analyser all run in the browser tab. The one optional outbound request is the GTIN product lookup, which sends a product number and nothing else.
Symbology quick-reference table
Match the character set, fixed vs variable length, check-digit rule and packaging role before choosing a generator or scanner tool.
| Symbology | Characters & length | Check digit | Primary use | QUICKKIT tool |
|---|---|---|---|---|
| EAN-13 / UPC-A | Digits only · 13 / 12 fixed | GS1 Mod-10 required | Retail point-of-sale consumer units (GTIN-13 / GTIN-12) | Barcode Generator · GTIN Product Lookup |
| EAN-8 / UPC-E | Digits only · 8 / 6–8 compressed | GS1 Mod-10 required | Small retail packs, cosmetics and narrow vials | Barcode Generator · Barcode Scanner |
| ITF-14 | Digits only · 14 fixed | GS1 Mod-10 required | Corrugated outer cartons and cases with bearer bars | Barcode Generator · Batch Studio |
| Code 128 | Full 128 ASCII · variable length | Internal Mod-103 automatic | Internal SKUs, serial numbers, asset tags and shipping IDs | Barcode Generator · Batch Studio |
| GS1-128 | ASCII + FNC1 AIs · up to 48 chars | Mod-103 + per-AI GTIN Mod-10 | Pallet labels carrying GTIN (01), expiry (17) and lot (10) | GS1 Intelligence · Barcode Generator |
| Code 39 / Codabar | Uppercase/digits or numeric · variable | Optional Mod-43 / none | Legacy automotive, library, blood-bank and lab labels | Barcode Developer Tools |
| QR Code | UTF-8, URLs, Wi-Fi, vCard, UPI · 2D matrix | Reed–Solomon L / M / Q / H ECC | Phone camera scanning, links, Digital Link and credentials | QR Code Generator · QR Code Scanner |
Where to go next
- Barcode studio — generate and style a symbol, or decode one from a photo.
- Barcode scanner — read EAN, UPC, Code 128, ITF-14 and GS1-128 symbols from a camera or image.
- QR Code Generator and QR Code Scanner — create, verify and read 2D QR codes locally.
- GS1 Intelligence — parse an element string, read every AI and build a Digital Link.
- Product lookup — see what a community database records for a GTIN, with its gaps shown.
- Batch Barcode Studio — turn a mixed-symbology CSV into validated SVG and PNG archives.
- Batch Code Checker — check a lot code against documented decoders.
- Developer tools — compare values and diagnose a photo that will not scan.
