# GS1 barcode decoder

> Open a photo, scan or PDF of a GS1 label. Each Application Identifier is split out and named (GTIN, batch, expiry, serial, SSCC, weight), and check digits, dates and GS1 rules are verified.

Human page: https://unmakelabs.com/en-us/gs1-barcode-decoder/. This is the version for AI agents.

## What it does

Decode GS1 barcodes into named fields. Open a photo, scan or PDF of a GS1 label. Each Application Identifier is split out and named (GTIN, batch, expiry, serial, SSCC, weight), and check digits, dates and GS1 rules are verified.

## What the brackets mean

A GS1 code is a string of Application Identifiers (AIs): (01) is the product number, (17) the expiry date as YYMMDD, (10) the batch or lot, (21) the serial number, (00) the SSCC of a pallet. Variable-length fields end with an invisible separator (FNC1). This page cuts the string at the right places and names each part.

## What is checked

Every AI is checked against GS1's own Barcode Syntax Dictionary: allowed characters and length, mod-10 check digits of GTIN, SSCC and GLN, real calendar dates (day 00 means end of month), and pairing rules, for example that a batch (10) needs a product number on the same label. Problems are listed in plain words with the expected value.

## Facts

- **Carriers:** GS1-128, GS1 DataMatrix, GS1 QR, GS1 DataBar, Digital Link URLs, ITF-14, EAN/UPC
- **Rules:** GS1 Barcode Syntax Dictionary 2026-01-27, all 541 AIs
- **Checks:** Check digits, lengths, characters, dates, required and excluded AI pairs
- **Privacy:** Read on your device; nothing uploaded

## How a person does it

1. **Open the label.** A phone photo, a scan or the PDF proof. Several labels or pages at once work.
2. **Read the fields.** Each code shows its AIs with names and values: (01) GTIN with check digit OK, (17) expiry as a real date, (10) batch, (21) serial.
3. **Fix what's flagged.** A wrong check digit shows the correct one; a missing separator, an impossible date or an unknown AI is named. Download the table as Excel or JSON.

## Open a file by link (works today)

The viewer runs in a browser. Any public file URL can be opened by adding `?src=` (URL-encoded): `https://unmakelabs.com/en-us/gs1-barcode-decoder/?src=https://unmakelabs.com/apps/barcode/samples/label.jpg`. The host must allow cross-origin reads (GitHub raw, most object storage and CDNs do). A camera view can be added after `#`: `?src=<public picture or PDF URL>` (the file must allow CORS) or `?codes=<one code per line: GTIN, SSCC, (01)... printed GS1, Digital Link URL>`; nothing else goes in the link.

Embed: `<iframe src="https://unmakelabs.com/embed/barcode/?src=<url-encoded file URL>" width="100%" height="480" style="border:0"></iframe>`.

## Metadata and pictures as data (coming)

every code per picture/PDF page: type, content, GS1 fields (AI, name, value, unit), check results (check digits, dates, lengths, pairing rules), position; CSV/XLSX/JSON from the page today; an API copy of the same parser is planned

```
curl -s -X POST "https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/barcode/read" -H "Content-Type: application/json" -d '{"file_url": "https://unmakelabs.com/apps/barcode/samples/label.jpg"}'
```

## Good to know

The GS1 checks are only as good as the decode: a damaged code that can't be read gets no checks. Checks that need outside lists (GS1 company prefixes, ISO country codes) are not run and are listed as not checked.

## Not done by this tool

- Doesn't grade print quality (ISO/IEC 15415/15416)
- Doesn't check that a GTIN is registered to a company (use Verified by GS1)
- Doesn't validate ISO country or currency codes against the lists
- Doesn't upload or keep your files

## Value

Reads every barcode in many photos, scans or PDF pages at once in the browser (zxing-wasm on zxing-cpp; EAN-13/8, UPC-A/E, Code 128, GS1-128, ITF-14, Data Matrix, QR, PDF417, GS1 DataBar, Aztec, Code 39/93; linear codes at any angle), or live from the phone camera, or typed/pasted codes. GS1 data (GS1-128, GS1 DataMatrix, GS1 QR, Digital Link URLs) is split into named Application Identifiers and checked by program against the official GS1 Barcode Syntax Dictionary: mod-10 check digits (GTIN, SSCC, GLN), lengths, character sets, real dates (day 00 = end of month), times, IBAN and GMN checks, required and excluded AI pairs judged over all codes of a picture, expired dates. Results: one card per picture/page with the codes outlined and numbered, and one table for all files as Excel (every cell text, leading zeros kept), CSV or JSON. Also completes or verifies GTIN/SSCC check digits for pasted lists. Nothing is uploaded. Free, no sign-up.

## When it fits

- A warehouse clerk photographs pallet and carton labels on a phone and needs SSCC, GTIN, batch and dates in one spreadsheet.
- A QA or regulatory person checks the GS1 or UDI barcodes in a label PDF proof before printing.
- Someone has a list of GTINs or EANs and needs the check digits completed or verified.

### When not

- Print-quality grading to ISO/IEC 15416/15415 (a verifier with calibrated optics is needed).
- Looking up the product or company behind a GTIN (Verified by GS1), or querying GUDID / EUDAMED / medicine verification systems.

## Why use it instead of the alternatives

- Nothing to install: ?src=<public picture or PDF> opens a file, ?codes=<lines> checks typed codes; the page's JSON download has every field and check; embeddable at /embed/barcode/.
- A server copy for agents (POST /v1/barcode/read: codes with GS1 fields and checks as JSON) is specified, not live.
- Phone scanner apps and most online readers decode one code at a time and show the raw string; GS1 fields, check digits and a table for many files are not part of them (checked 1 Dec 2026).
- GS1's own tools (Verified by GS1, the GS1 Barcode Syntax Engine) check numbers and strings you type; this page reads them from photos and PDFs in bulk and applies the same syntax dictionary.

### What rebuilding it would take

- Load a barcode decoder in the browser (zxing-wasm) and run it on every picture and on each PDF page drawn at 300 dpi, with extra passes for turned linear codes.
- Parse GS1 element strings, the printed (AI) form and Digital Link URLs against GS1's syntax dictionary, with check-digit, date and pairing-rule checks.
- Show each picture with numbered outlines, and write a table that keeps codes as text in Excel.
- Plus a test set of generated codes under bad conditions and real photos, scored by program.

## Quality

No score published; the limits above say what it does not do. Check results that matter before you rely on them.

## Risk for the user

- Free and unlimited; no sign-up, no ads.
- Photos and PDFs are read on the user's device and never uploaded.

_Status: multi-file and PDF decoding, camera scanning, typed codes, GS1 parsing and checks, Excel/CSV/JSON work in the browser; the agent API is planned._

## Privacy

- Files are processed on the user's device and not uploaded; there is no share link for files.
- zxing-wasm, pdf.js and fflate download from this site's own server at pinned versions; the files are never sent anywhere.

## Data

Runs in your browser; your photos and PDFs stay on your device. Nothing is uploaded.

## FAQ

- **How do I decode a GS1-128 barcode?** Open a photo or PDF of it here. The decoded string is split into Application Identifiers: for example (01)09501101530003(17)271231(10)AB-123 becomes GTIN 09501101530003 (check digit OK), expiry 31 Dec 2027 and batch AB-123.
- **Can I type a GS1 string instead?** Yes: Type codes accepts the printed form with brackets, the raw string as a USB scanner types it (no brackets; ␝, ^], \x1d or <GS> as separator), or a GS1 Digital Link URL. A separator that looks dropped is flagged.
- **How accurate is the GS1 parsing?** On every GS1 code read in our tests, the fields and the flagged problems came out exactly, including deliberately broken codes.
- **When is it the right tool, and when not?** Right for: A warehouse clerk photographs pallet and carton labels on a phone and needs SSCC, GTIN, batch and dates in one spreadsheet. A QA or regulatory person checks the GS1 or UDI barcodes in a label PDF proof before printing. Someone has a list of GTINs or EANs and needs the check digits completed or verified. Not for: Print-quality grading to ISO/IEC 15416/15415 (a verifier with calibrated optics is needed). Looking up the product or company behind a GTIN (Verified by GS1), or querying GUDID / EUDAMED / medicine verification systems.
- **Is it really free?** Yes: no ads, no sign-up, no limits on files.
- **Do you upload my photos or PDFs?** No. Everything is read inside this page on your device.
- **Can an AI agent use it?** An agent can open the page with ?src= and a public picture or PDF, or ?codes= with one code per line, and download the JSON. An API that returns the same JSON is planned, not live.
- **Who makes this?** Unmake Labs (Julien Salomon). Contact: hello@unmakelabs.com.

## Related pages

- [Barcode reader from image](https://unmakelabs.com/en-us/barcode-reader-from-image/)
- [Data Matrix reader online](https://unmakelabs.com/en-us/datamatrix-reader-online/)
- [Read barcodes from PDF](https://unmakelabs.com/en-us/read-barcodes-from-pdf/)
- [GTIN check digit calculator](https://unmakelabs.com/en-us/gtin-check-digit-calculator/)
- [Scan barcodes to Excel](https://unmakelabs.com/en-us/scan-barcodes-to-excel/)
- [UDI barcode decoder](https://unmakelabs.com/en-us/udi-barcode-decoder/)
