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.

What is built today: Status

The label at a glance

The numbers in the drawing match the list. Sample data is made up.

Schematic of a small product label with five numbered elements A landscape label. 1 The product name and quantity. 2 An item code. 3 A lot number and a date. 4 A retail barcode with its digits in readable text. 5 An optional 2D symbol. The bars and the 2D symbol are decorative, not scannable. Extra virgin olive oil 500 ml 1 ITEM AO-500-EV 2 LOT L2401 EXP 2027-03 3 5 901234 123457 4 2D 5
Schematic, not scannable. The elements of a small product label, with made-up sample data. The GTIN in the drawing has a valid check digit. It is an example number: do not print it on goods.
  1. Name and quantityWhat the item is and how much of it there is, as text a person reads.
  2. Item codeYour own item number or SKU, as text, or as a Code 128 barcode when your systems scan it.
  3. Lot and dateA lot or batch and a date, as text. They can also be carried in a GS1-128 symbol.
  4. GTIN barcodeThe item's GTIN as EAN-13 or UPC-A, with its digits in readable text under the bars.
  5. 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.

Barcodes a product label typically carries and the edition each needs
BarcodeWhy it is on the labelEdition
EAN-13 or UPC-AFor a retail item. Both are fixed-length numeric codes for a GTIN. See the ^BE and ^BU pages.Basic
GS1-128To 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.4Basic
Code 128For your own item codes. The site's symbology table pairs it with data that has no GS1 structure.Basic
Data Matrix or QR CodeA 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.

Fields a product label needs, a sample value and where each goes
FieldSample valueWhere it goes
Name and quantityExtra virgin olive oil, 500 mlText, element 1. Accented letters need the right font and character set.
Item codeAO-500-EVText, element 2, or a Code 128 barcode.
Lot and dateL2401, 2027-03Text, element 3, or GS1-128 fields AI 10 and AI 17.
GTIN5901234123457The 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.

^BE
Prints an EAN-13 barcode.
^BU
Prints a UPC-A barcode.
^BC
Prints a Code 128 barcode.
^BX
Prints a Data Matrix barcode.
^BQ
Prints a QR Code barcode.
^BY
Sets the module width of the barcodes that follow.

New 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.