
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.
Learn what a PDF417 barcode looks like, how it differs from a QR Code, and how to check whether your scanner can read it.

PDF417 is a two-dimensional barcode made of stacked rows of bar and space patterns. It can carry data directly in the symbol and is used in applications such as travel documents and identification. To read one, use a scanner or app that specifically supports PDF417, then check that the receiving software understands the decoded data. [1][2]
PDF417 describes the barcode format—not the authority, purpose, or authenticity of whatever document carries it. A symbol that decodes successfully is not automatically a valid ticket or identification document.
A typical PDF417 looks like a wide rectangle containing several short rows of tightly packed bars. Its proportions can vary, so appearance is a clue rather than a definitive test. A QR Code usually looks like a square grid, while PDF417 uses stacked linear rows. Both are 2D barcodes. [1]

Simulated sample containing SAMPLE-00123; it is not a ticket, ID, or other credential.
In a local digital test, the sample above was generated from that text and an independent software decoder returned SAMPLE-00123 as PDF417. This demonstrates the result for this file and decoder, not for every phone, printer, or scanner.
PDF417 can encode text and other data in a compact symbol. The exact fields and their meaning depend on the application that created it. On a boarding pass, for example, the receiving system must understand the relevant travel-data format; seeing a PDF417 shape does not tell you which fields are present or whether they are current. GS1 US identifies PDF417 as one of the 2D formats used on boarding passes. [1]
Treat the decoded content as potentially sensitive. A barcode can expose information to anyone with an appropriate reader. Use fictional text for tests and avoid uploading someone else’s ID or travel document to an unfamiliar service.
Check the specific model and software, not just the label “barcode scanner.” Some devices and applications support PDF417, while others may support only the formats enabled in their configuration. Google lists PDF417 in the supported 2D formats for its ML Kit barcode scanning API; that is evidence about that API, not a promise about the default camera app on every phone. [2]
PDF417’s stacked construction can be read by some compatible linear scanning systems as well as supported imaging systems. Do not assume that an arbitrary 1D scanner can decode it: consult the manufacturer’s PDF417 support and configuration instructions, then test your particular sample. [3]
| Your situation | Next step |
|---|---|
| You have a handheld scanner | Find PDF417 in the model’s supported symbologies and check whether it is enabled. Test at the intended distance and label size. |
| You have a phone | Use a camera app or scanner app that explicitly supports PDF417. Test with non-sensitive data first. |
| A reader returns text but your application rejects it | Check the required data structure and field mapping with the system owner. Raw decoding and application acceptance are separate steps. |
| You need an official ticket or ID | Follow the issuer’s process. Generating a PDF417 image does not create an authorized credential. |
SAMPLE-00123, and retain it as text.If nothing is detected, first check PDF417 support and settings, then try a clean, larger sample with clear space around it and good contrast. If the decoder returns the wrong value, compare the original input and any software-added prefix, suffix, or formatting. If the value is correct but the workflow fails, ask the receiving system’s owner about its required data format.
Choose based on the recipient’s specification and devices, not appearance alone. PDF417’s stacked rectangle is familiar on some travel and identity documents; QR Code uses a matrix pattern and is widely used for phone-accessible links. A reader that supports one format does not necessarily support the other. For either format, test the exact data and the complete workflow before relying on it. [1][2]
[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] Dynamsoft. What is the Difference Between QR Code, PDF417 and DataMatrix? https://www.dynamsoft.com/blog/insights/qr-vs-pdf-417-vs-datamatrix/