PDF417 barcode generator

PDF417,for labels, IDs and documents.

PDF417 is a stacked 2D barcode used on airline boarding passes, government ID documents, shipping labels and driving licences. It holds up to 800 characters of text and self-corrects damage with built-in Reed-Solomon error correction.

what goes in the PDF417?

Pick a starting example and type your value. The barcode is built right in your browser.

Live PDF417
Need a QR code instead?
What it holds

Up to 800 characters.

PDF417 supports all 128 ASCII characters. For structured data like GS1 shipping labels, use a GS1-128 or GS1 DataMatrix barcode instead.

Text

Full ASCII — letters, digits, spaces, punctuation. No Devanagari inside the barcode itself.

Full ASCII
Digits

Digit-only data packs more tightly for shorter barcodes.

2× efficient
Bytes

Any binary data: compressed records, templates, structured IDs.

Up to 1,100 bytes
Error correction

Level 2 (default): recovers up to ~8% damaged modules. Labels with smudge or fold risk can go higher.

Built in
Compact mode

Strips the right-side closing bar pattern for a narrower symbol when the reader supports it.

Optional
Size

wider than a QR code, but taller data.

A PDF417 symbol grows taller as you add text. Keep content under 100 characters for a label-friendly size.

WhatGuide
ColumnsAuto (recommended, ~3:1 to 4:1 ratio) or select 2 to 6 columns. Fewer columns → taller symbol. More columns → wider but shorter.
RowsGrows with content (3–90 rows). Min 3.
Module width (X)0.19 mm minimum; 0.25–0.5 mm for thermal labels
Quiet zone2X on each side, 2 rows top and bottom
Error correctionLevel 0 (7% recovery) to Level 8 (65%). Level 2 is recommended for labels.
Before you print

PDF417 or QR code?

PDF417
Use PDF417 when the system asks for it

Airline boarding passes (IATA), US driving licences (AAMVA), Indian government IDs and some courier labels specify PDF417. If the reader or spec says PDF417, make PDF417.

QR
Use QR code for phones and consumer use

Any smartphone camera scans QR codes natively. PDF417 needs a 2D-capable scanner. For product packaging, URLs and customer-facing codes, QR code is the better choice.

Questions

people also ask.

All answers
What is a PDF417 barcode?

A 2D stacked barcode with multiple rows of bar-and-space patterns. It is widely used on airline boarding passes, ID cards, shipping labels and government documents.

How much data can PDF417 hold?

Up to about 1,850 ASCII characters or 2,710 digits, depending on error-correction level. For label use, keeping it under 200 characters gives a compact, scannable symbol.

Does PDF417 work on a phone camera?

Most phone cameras do not scan PDF417 natively. You usually need a dedicated 2D barcode scanning app. For consumer-facing codes, use a QR code instead.

What is compact PDF417?

Compact PDF417 (also called Truncated PDF417) drops the right-side closing bar pattern, making the symbol narrower. Use it only if the target scanner supports compact mode.

What error-correction level should I use?

Level 2 is a safe default. Use level 3–5 when labels may be folded, smudged or partly covered. Higher levels add more codewords and make the symbol larger.

Do you store the codes I generate?

No. Every PDF417 is encoded locally in JavaScript inside your browser. Nothing is sent to a server.

need GS1 shipping or lot labels?

Use our GS1 Barcode Generator for GS1-128 and GS1 DataMatrix.

Open GS1 Generator

Guides for this task