
Barcode TypesBarcode Types
Can a Barcode Show an Expiration Date or Lot Number?
Learn when a barcode can carry an expiration date or lot number, and how to check the package and the source of a lookup result.
Compare linear and 2D barcodes, check scanner and retailer requirements, and use a practical checklist to verify what your system receives.

Choose a 1D barcode when the receiving system accepts a suitable linear format and the data fits its rules. Choose a 2D barcode when you need a supported format that can carry more data or a particular application requires it. In either case, choose the specific symbology with your recipient and test it with the actual scanner and software. A successful scan alone does not establish that the system recognizes the item or that a retailer accepts the label.
A 1D, or linear, barcode represents data in a sequence of bars and spaces. UPC-A and Code 128 are examples. A 2D barcode encodes information in a two-dimensional pattern: QR Code and Data Matrix use matrices, while PDF417 has stacked rows. A QR Code is one type of 2D barcode, not a separate alternative to the entire 2D category. [1]
| Question | 1D | 2D |
|---|---|---|
| Common appearance | Parallel bars and spaces | A matrix of modules, or stacked rows in PDF417 |
| Examples | UPC-A, Code 128 | QR Code, Data Matrix, PDF417 |
| Data | Depends on the symbology; often an identifier | Depends on the symbology; can carry more data than a linear symbol |
| Reader | Must support the particular linear format | Must support the particular 2D format and its data |
The symbol and the data are different things. A UPC-A commonly carries a product identifier; the price and product description come from a connected system. A QR Code can carry a web address or text, but a QR image alone does not guarantee that an application can interpret it as a product identifier. [1]
For a closed inventory system, a short internal ID in Code 128 may be sufficient if the equipment and database support it. If staff must carry additional information on the label, a supported 2D format may be useful. These are starting points, not universal rules: a partner’s required format takes precedence.
Do not replace a required UPC simply because a QR Code scans on a phone. GS1 US describes a transition in which retail systems are being prepared to scan and process 2D barcodes; its retailer guidance says items require both UPC and 2D marks during the transition and that UPCs continue to be accepted after the 2027 sunrise date. Confirm the retailer’s current requirements and readiness for your actual product. [3]
A QR Code containing an ordinary URL is not automatically a GS1 retail barcode. If the intended use is checkout, confirm the required identifier, data syntax, symbol, placement, and partner approval. A successful phone scan does not establish point-of-sale compatibility.
Suppose your source value is ITEM-00123. You can encode those same characters in a Code 128 symbol or a QR Code for a closed-system test. The two images look different, but the important check is whether the reader returns the exact source value—including the leading zeros—and whether the application knows what to do with it.
In a local digital test, a Code 128 image and a QR image made from this simulated value each decoded to ITEM-00123. That confirms those two files were decoded by the test software; it does not establish print quality, device compatibility, or acceptance by a trading partner.
| Observation | Check next |
|---|---|
| Nothing is detected | Confirm the exact symbology is supported and enabled. Check focus, lighting, contrast, size, and clear space around the symbol; try a clean sample. |
| A value appears but differs | Compare every character against the source, including leading zeros and any scanner-added prefix or suffix. Check encoding and software configuration. |
| The correct value appears but no item is found | Check the receiving database, record and field mapping. Decoding does not create a product record. |
| A phone reads it but checkout does not | Confirm the required retail data format and the actual point-of-sale system’s readiness with the retailer. |
A scan is a useful first check. For a regulated or trading-partner application, follow the applicable verification and acceptance process as well; a phone scan is not a formal print-quality grade.
[1] GS1 US. 1D vs. 2D Barcodes: What’s the Difference? https://www.gs1us.org/upcs-barcodes-prefixes/1d-vs-2d-barcodes
[2] Google for Developers. Barcode scanning. https://developers.google.com/ml-kit/vision/barcode-scanning
[3] GS1 US. GS1 Digital Link for Retailers. https://www.gs1us.org/industries-and-insights/gs1-digital-link/for-retailers