PDF417 Barcode Generator

Type or paste text and get a PDF417 stacked barcode, the format used on boarding passes, driving licences and shipping labels, as a scalable SVG.

Use the tool

Why this tool exists

PDF417 stores data as rows of codewords, each drawn as four bars and four spaces. The encoder here picks text, byte or numeric compaction per run of characters, adds a length descriptor, calculates Reed-Solomon error-correction codewords over GF(929) at the level you choose (0 to 8, or automatic), then lays the codewords out in 1 to 30 data columns with row indicators, start and stop patterns.

The symbol tables are the standard's three cluster tables, so results are real PDF417. Output was verified by decoding with the ZXing-C++ reader: 75 symbols covering ASCII, punctuation, digits runs, UTF-8 text with an ECI marker, random binary and different column and ECC settings all decoded back to the exact input.

Limits: no Macro PDF417, no GS1 or other special function codewords, no Compact (truncated) PDF417, and compaction switching is greedy rather than size-optimal, so a few symbols are slightly larger than the minimum. The capacity is 929 codewords including error correction, roughly 1,100 text characters or 1,800 digits at low ECC. Nothing is uploaded.

How to use it

  1. Paste the text to encode (UTF-8 is supported).
  2. Leave columns and ECC on automatic, or set them if a scanner spec requires it.
  3. Check the size line, then download the SVG.
  4. Print at a module width of at least 0.25 mm and test with your scanner.

Frequently asked questions

Will every PDF417 scanner read it?

The codewords, row indicators and patterns follow the standard and were decoded by ZXing-C++ in testing. Always test with your real scanner and print size, and keep a quiet zone of at least 2 modules.

Which error-correction level should I use?

Automatic picks level 2 for small payloads and higher levels for larger ones. Use 4 to 6 for labels that may get scuffed. Each level doubles the error-correction codewords, so the symbol grows.

Can it encode AAMVA driving licence data or boarding passes?

It encodes any text you give it, so you can place a correctly formatted payload in it. It does not build those payload formats and has no compliance checking.

Why is my barcode wider than tall?

PDF417 is a row-based symbol. Choose fewer columns for a taller, narrower symbol, or more for a wider one. Row height is set in modules.

Is my text sent anywhere?

No. Encoding happens in your browser and the page makes no network requests with your input.