Use case
Product labels: what goes on them and how they print
A product label identifies one item, or one pack of items, so people and scanners know what it is. It is smaller than a shipping or pallet label, so every dot counts. This page covers what goes on it, which barcodes it typically carries and why, the data it needs and how it reaches the printer.
The label at a glance
The numbers in the drawing match the list. Sample data is made up.
- Name and quantityWhat the item is and how much of it there is, as text a person reads.
- Item codeYour own item number or SKU, as text, or as a Code 128 barcode when your systems scan it.
- Lot and dateA lot or batch and a date, as text. They can also be carried in a GS1-128 symbol.
- GTIN barcodeThe item's GTIN as EAN-13 or UPC-A, with its digits in readable text under the bars.
- 2D symbol (optional)More item data in a small area, such as a Data Matrix or a QR Code.
Which barcodes, and why
A GTIN is the GS1 product identifier: 8, 12, 13 or 14 digits ending in a check digit. EAN-13 carries a GTIN-13, UPC-A a GTIN-12 and ITF-14 a GTIN-14, and AI (01) carries one inside GS1-128. GS 2.1 Which one a label needs depends on where the item is scanned.
| Barcode | Why it is on the label | Edition |
|---|---|---|
| EAN-13 or UPC-A | For a retail item. Both are fixed-length numeric codes for a GTIN. See the ^BE and ^BU pages. | Basic |
| GS1-128 | To carry a GTIN with a lot and an expiry date in one symbol: AI (01) a GTIN, (10) a batch or lot, (17) an expiry date. Several fields can share one symbol. GS 3.2 Table 3-1; GS 1.4.2, 7.8.3, 7.8.4 | Basic |
| Code 128 | For your own item codes. The site's symbology table pairs it with data that has no GS1 structure. | Basic |
| Data Matrix or QR Code | A 2D symbol holds more data in a small area and carries error correction. GS1 Data Matrix and GS1 QR Code are GS1 carriers. | Ultimate |
Product labels are small, so size is counted in dots. On a 203 dpi printer, 3 dots is 0.375 mm. BarcoderX snaps the module width to whole dots, reports the effective size, enforces quiet zones and warns when a box clips one. Symbol options ZPL linear barcodes
The data it needs
Product labels are often printed in batches from a list of items, so the data often already exists in a product file or a database. The sample values are made up.
| Field | Sample value | Where it goes |
|---|---|---|
| Name and quantity | Extra virgin olive oil, 500 ml | Text, element 1. Accented letters need the right font and character set. |
| Item code | AO-500-EV | Text, element 2, or a Code 128 barcode. |
| Lot and date | L2401, 2027-03 | Text, element 3, or GS1-128 fields AI 10 and AI 17. |
| GTIN | 5901234123457 | The barcode, element 4, and the same digits as readable text. The last digit is a check digit. |
A list of items from CSV, JSON, XML, a DataTable or your own objects binds to one template. BarcoderX computes the check digit of a barcode, validates it or leaves it out, as you choose, and the calculator tests one by hand. Templates and data Fonts and accents
How it reaches the printer
The printer commands are the same on both routes, and both run on infrastructure you operate.
- Direct, from your application. The SDK packages send the printer commands from your own .NET process over TCP port 9100, serial, the Windows spooler, CUPS or USB. No API server and no agent is in the path.
- Through your API server. Your application queues a print job through the REST API on your API server. A print agent on the printer's network collects it and writes it to the printer beside it. The agent only dials out, so the printer network needs no inbound port.
A product label job is often many labels at once. Many labels come out as one multi-page PDF or as a ZIP of files when you export, and when you print a job with many labels, static content is stored on the printer once, recalled for each label and deleted at the end of the job by default.
The preview is the true 1bpp bitmap at the printer's resolution, so you see the barcode as the printer's dots will draw it before anything prints. How it works: preview and exports
Which edition covers it
EditionsBasic covers the linear (1D) and postal symbologies, including every GS1 DataBar variant; Ultimate adds the PDF417 family, other multi-row symbologies, every matrix (2D) symbology and GS1 composites, as set out on the pricing page.
For a product label, that means EAN-13, UPC-A, ITF-14, Code 128, GS1-128 and GS1 DataBar are in Basic. A Data Matrix, GS1 Data Matrix or QR Code symbol is a matrix (2D) symbology and needs Ultimate.
The ZPL behind it
If you read the printer commands, these are the ones a product label uses. Each page explains one command in our own words from the programming guide.
Keep reading
Barcodes: the symbology registry GS1 check digit calculator ZPL linear barcodes: Code 128, Code 39, EAN, UPC ZPL 2D codes: QR Code, Data Matrix, PDF417 GS1-128 and SSCC-18: what goes on a pallet label Shipping labels Pallet labels Food labels: dates, lots and allergens Catch-weight labels: a different weight on every label Shelf-edge labels: name, price and GTIN Apparel tags: hang, size and RFID-ready tags Fonts and accents Pricing: what each edition coversNew to the printer language? Read the ZPL guides and command reference.
Sources The gray references point to the GS1 General Specifications (GS), Release 26.0. The GTIN lengths and the Application Identifiers 01, 10 and 17 are the ones published in the glossary with those sections, and the rule that several fields can share one symbol is on the GS1-128 and SSCC-18 explainer. What this page says about BarcoderX comes from its published barcodes, printing, platform and pricing pages. The description of a product label is general and ours.
Written by BarcoderX in its own words.
ZPL and ZPL II are trademarks of Zebra Technologies Corporation. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.