Choose language

PDF417 Barcode Generator

Encode large text payloads into a stacked PDF417 barcode. Selectable error correction, adjustable scale, PNG and SVG export for IDs, tickets, and labels.

Mehmet Demiray Published Updated
Share
Barcode GeneratorThe general barcode tool covering retail, logistics and general symbologies, with check digits added automatically and links to format-specific generators.
Any text — PDF417 is a stacked barcode that holds large amounts of data.
Size multiplier — larger values produce a bigger code.

The Stacked Symbology

PDF417 is a stacked linear barcode, meaning it is built from several rows of bars stacked one above another rather than a single line or a square grid. Each row holds a sequence of codewords, and a codeword is a small pattern of bars and spaces that encodes a value. The name itself describes the structure: PDF stands for Portable Data File, and 417 refers to the building block of the symbol, where each pattern spans 4 bars and 4 spaces across a fixed module width, for 17 units in total. Start and stop patterns frame each row so a scanner can track the boundaries, and row indicators let the reader reassemble the data even if it scans the rows out of order. This design lets PDF417 carry far more information than a one-dimensional barcode while still being read by a laser scanner sweeping across it. This tool encodes your text into a standard PDF417 symbol and exports PNG or SVG. For square 2D formats see the Data Matrix Generator or the QR Code Generator.

Capacity and Error Correction

PDF417 is one of the highest-capacity barcode formats, able to store up to roughly 1,800 ASCII characters, or around 1,100 bytes, in a single symbol. That capacity is what makes it suitable for documents that must carry a full record rather than just a reference number. Reliability is managed through nine selectable error correction levels, numbered 0 to 8. Each higher level adds more Reed-Solomon recovery codewords, so a damaged or partially obscured symbol can still be read, at the cost of a physically larger barcode. Level 0 offers only error detection, while the higher levels trade size for resilience, and a common practice is to scale the level to the expected handling and print quality. Because the data and the correction overhead share the symbol, raising the level for a fixed payload makes the barcode taller or wider. This tool lets you balance payload against robustness so the symbol stays scannable in its intended use without growing larger than necessary.

Where You Meet PDF417

PDF417 appears on documents you handle regularly, often without noticing. The barcode on the back of many government-issued identity cards, including most United States driver licenses, is PDF417, encoding the holder's details in a single mark so an officer or kiosk can read the full record from one scan. Airline boarding passes use it to carry the passenger name, flight, seat, and routing, which is why a gate scanner can validate a printed or screen-displayed pass instantly. Shipping and logistics waybills rely on it to hold consignment data, and event tickets use it to store validation information that does not depend on a network lookup. The common thread is the need to embed a substantial, self-contained data set that travels with the document itself. Because the data is on the page, these systems keep working even when offline. This tool generates the same standard symbology those workflows use, so you can prototype an ID layout, a ticket, or a label that mirrors real-world formats.

Generating Good PDF417 Symbols

A few choices decide whether your PDF417 symbol scans cleanly. Module size is the width of the narrowest bar, and printing it too small for the target scanner is the usual cause of failed reads, so use the scale control to keep the modules comfortably above your reader's resolution. Aspect ratio matters because PDF417 is a stacked format: the encoder arranges the data across a number of rows and columns, and a very long, thin symbol can be awkward to scan while a more balanced shape reads better. Match the error correction level to the conditions, since a clean printed ticket needs less recovery than a card that will be handled for years. Keep a clear quiet zone around the whole block and print against a high-contrast background. Most laser and imaging scanners that handle retail barcodes also read PDF417, but confirm your target devices support it before committing a layout. Export SVG for sharp scaling inside a document template, or PNG for a fixed raster image.

PDF417 Compared to QR and Data Matrix

PDF417, QR codes, and Data Matrix all store more than a one-dimensional barcode, but they suit different jobs. PDF417 is a stacked format with the largest practical text capacity of the three, which is why it sits on IDs, boarding passes, and waybills that must carry a whole record on the page. QR codes are square matrix symbols built for fast scanning by consumer phone cameras, making them the default for marketing, ticketing, and payments. Data Matrix is also square but optimized for the smallest possible footprint, dominating industrial part marking where space is tight. PDF417 can be read by laser scanners sweeping horizontally, while QR and Data Matrix need imaging readers. If your priority is encoding a large block of text that a controlled scanner will read, PDF417 is the natural choice. For phone reach pick the QR Code Generator, and for tiny durable marks pick the Data Matrix Generator. The general Barcode Generator lets you compare formats side by side.

The ones we answer the most.

How is PDF417 different from QR and Data Matrix?

PDF417 is a stacked barcode made of rows of bars, while QR and Data Matrix are square matrix codes. PDF417 carries the largest practical text payload and can be read by laser scanners, which is why it appears on IDs and boarding passes. QR codes are built for phone cameras and marketing, and Data Matrix is built for the smallest possible industrial marks. The right choice depends on capacity, scanner type, and audience.

How much text can I encode in a PDF417 symbol?

A single PDF417 symbol holds up to roughly 1,800 ASCII characters, or about 1,100 bytes, which is why it can carry a full record rather than just a reference number. The usable amount drops as you raise the error correction level, because the recovery codewords share the symbol. For most documents the payload is comfortably within range, and the encoder simply adds rows as the data grows.

Can a phone camera read PDF417?

Some scanning apps read PDF417, but native phone camera support is less consistent than for QR codes. PDF417 is most reliably read by laser scanners and dedicated imaging readers, which is the equipment used at airport gates and ID checkpoints. If you need the general public to scan with their own phones, a QR code is the safer choice; for controlled hardware, PDF417 works well.

Why are driver licenses encoded with PDF417?

Driver licenses use PDF417 because it can store the holder's full set of details on the card itself, so a checkpoint scanner reads the complete record from one mark without a network lookup. The format's high capacity fits the structured data fields these documents standardize on, and its error correction keeps the code readable even after years of handling and wear. That self-contained, durable design is exactly what ID workflows need.

What do the error correction levels do?

PDF417 offers nine error correction levels, numbered 0 to 8. Each higher level adds more Reed-Solomon recovery data, so a scratched or partly obscured symbol can still be read, at the cost of a larger barcode. Level 0 gives detection only, while higher levels trade size for resilience. Match the level to how roughly the symbol will be handled and how good your print quality is.

Should I download PDF417 as PNG or SVG?

Use SVG when you are placing the barcode inside a document or card template and want it to scale without losing sharpness. Use PNG when your layout or printer expects a fixed raster image. Either way, keep the modules above your scanner's resolution and leave a clear quiet zone around the block so the symbol reads reliably at its final printed size.