2D barcode generator

Data Matrix, GS1 DataMatrix, PDF417, Aztec. Two-dimensional codes hold far more than a row of bars and still read when tiny or partly damaged. Data Matrix is the industrial choice for electronics and small parts, and GS1 DataMatrix the same symbol with the application identifiers required on medicine packs. PDF417 is the stacked code on driving licences and boarding passes; Aztec is the bullseye code on rail and airline tickets and needs no quiet zone. For anything a phone should read, make a QR code instead.

Free · no signup · no limits
SVG, PNG at 600 dpi, PDF, label sheets

1 · Which barcode?

Retail
General
Logistics
2D
More

Need a QR code instead? QR Studio home →

2 · Content · Data Matrix

Any text. Keep it short for a small symbol.

Encoded: SN-2026-000123 (example, until you enter data)

3 · Size and print

At 300 dpi each bar is 6 printer dots = 0.508 mm. The PNG uses exactly that.

Rendering…
Example · add your data in step 2
  • Enter the text to encode.

4 · Download

SVG and PDF are vectors at the exact millimetre size shown. The PNG uses a whole number of printer dots per bar so nothing blurs. Generated in your browser; nothing is uploaded.

Which one?

Click a name to read its notes; it is selected in the generator above at the same time.

SymbologyTypical useEncodesCheck digitKindNote
Data MatrixSmall parts, electronics, tiny labels.Any text. Keep it short for a small symbol.Error correction2DReads at a few millimetres across; for industrial scanners, not phones.
GS1 DataMatrixPharma and healthcare packs with batch and expiry.(AI)value pairs, as for GS1-128.Error correction2D · GS1Data Matrix with a leading FNC1; the pharma serialisation format.
PDF417IDs, boarding passes, forms.Up to about 1,800 characters.Error correction2DLarge and stacked; holds up to about 1,800 characters.
AztecRail and airline tickets.Any text.Error correction2DNeeds no quiet zone; most phone cameras read it.

Data Matrix

The tiny 2D code used on electronics, instruments and small parts, readable even when very small or partly damaged. Any text; the code grows in steps as the text does.

Data Matrix or QR?

Data Matrix for small industrial labels read by dedicated scanners; QR for anything a phone should read.

How small can it print?

Down to about 2.5 mm across on a laser marker; on a label printer keep each cell at least 0.25 mm, which the generator shows.

Can phones read it?

Some can, most cannot. Use QR for phones.

GS1 DataMatrix

Data Matrix carrying GS1 application identifiers, as required on medicine packs and medical devices in most markets. GTIN, expiry, batch and serial in one small square; every field is validated.

Is this the pharma code?

Yes. GS1 DataMatrix with GTIN, expiry, batch and serial is the format required by serialisation rules in the EU, US and many other markets.

How is it different from Data Matrix?

Same symbol with a leading FNC1 character that tells scanners the data follows GS1 rules.

Does it need GS1?

Yes, the GTIN inside it comes from GS1.

PDF417

The stacked barcode on driving licences, boarding passes and government forms. Holds far more than a linear code and survives damage through error correction.

Where is PDF417 used?

Driving licences in the US and Canada, boarding passes, postage, shipping labels and many government forms.

Can phones read it?

Some scanner apps can; built-in cameras generally cannot. It is meant for dedicated scanners.

How much data fits?

Up to about 1,800 characters, though the symbol gets large. Keep it to what the reader needs.

Aztec

The bullseye-centred 2D code on rail and airline tickets. It needs no quiet zone, so it fits where other codes cannot.

Where is Aztec used?

Mostly on transport tickets: many railways, Eurostar, airline boarding passes in the IATA format.

Does it need a white border?

No. Aztec is the one common code that does not require a quiet zone.

Can phones read it?

Most camera apps do, and all scanner apps.

Other barcode families