Data Matrix Generator: Free Data Matrix Codes Online

Type your data and the Data Matrix code appears as you type. Download it as PNG or SVG. It runs in your browser, so nothing is uploaded.

Create a Data Matrix Code

Batch: many codes, ZIP or Avery label sheet (free up to 5)

Free: labels start at no. 1. Data Matrix Generator Pro lets you pick the first label.

Free, no sign-up. Codes are made in your browser; your text and CSV files are never uploaded.

Want more? Data Matrix Generator Pro makes batches of up to 1,000 codes at once: ZIP of PNG or SVG files and print-ready Avery label sheets. One payment of US$19.90, yours for good.

Data Matrix Generator Pro – coming soon.

The free version stays free. See pricing.

What is a Data Matrix code?

A Data Matrix is a two-dimensional barcode made of square modules inside a solid “L” finder pattern on two sides and an alternating timing pattern on the other two. It is used where space is tight: small parts, electronic components, pharmaceutical packs, medical devices and logistics labels. The version in use today is ECC 200, standardised in ISO/IEC 16022.

This generator makes ECC 200 symbols in all 24 square sizes, from 10 × 10 to 144 × 144 modules, and the 6 rectangular sizes from 8 × 18 to 16 × 48. For product codes that follow GS1 rules (GTIN, expiry date, batch, serial), use the GS1 Data Matrix generator, which adds FNC1 and checks every Application Identifier.

How much data fits in a Data Matrix?

Capacity depends on the symbol size and on the kind of data: digits pack two to a codeword, so a symbol holds about twice as many digits as letters. Error correction is fixed per size; you do not pick a level as you do with QR codes. The table shows a few sizes from the GS1 General Specifications (Table 5-32, equivalent to Table 7 of ISO/IEC 16022).

Size (modules)DigitsLetters / alphanumericBytesError correction overhead
10x1063162.5%
16x1624161050%
24x2472523440%
32x32124916036.7%
52x5240830420229.2%
144x14431162335155628.5%

The largest square symbol holds 3,116 digits, 2,335 alphanumeric characters or 1,556 bytes. The largest rectangle (16x48) holds 98 digits. Pick Auto and the tool chooses the smallest size that fits; pick a size yourself when every label in a run must look the same.

How to make a Data Matrix code

Four steps, no account:

  1. Type or paste the text, number or URL into the box. Latin letters, digits and punctuation work everywhere; other scripts are stored as UTF-8 with an ECI marker.
  2. Choose square or rectangle, and Auto or a fixed size.
  3. Set the module size in pixels, the quiet zone in modules and the two colours. The preview updates as you type.
  4. Click Download PNG for documents and screens, or Download SVG for print and label software, where it scales without blur.

Quiet zone, module size and colours: which settings matter?

The quiet zone is the clear margin around the code. GS1 specifies a quiet zone one module wide on all four sides of a GS1 DataMatrix; QR Code needs four modules (GS1 General Specifications, Table 5-46). The tool defaults to 2 modules to leave room for trimming; do not go below 1 and do not print anything inside it.

The module size is the side of one square. On screen it is set in pixels here. In print it is called the X-dimension: for GS1 DataMatrix on retail consumer packaging GS1 gives a minimum of 0.396 mm, a target of 0.495 mm and a maximum of 0.990 mm (Table 5-46). For export to print, use SVG and scale it so each module lands in that range.

Colours: dark modules on a light background are the safe choice. The tool warns when the contrast between your two colours is low, or when the code is lighter than its background.

The ECC 200 version of Data Matrix uses Reed-Solomon error correction and this feature helps correct for partially damaged symbols.

— GS1 General Specifications, section 5.6

Source: GS1 General Specifications, Release 26.0, section 5.6.

What is free and what does Pro add?

Single codes stay free with every option. Data Matrix Generator Pro is for long lists: US$19.90, paid once.

FeatureFreeData Matrix Generator Pro
One code, PNG or SVG, all sizes and coloursYesYes
GS1 mode with AI checksYesYes
Batch: ZIP of PNG or SVGUp to 5 codesUp to 1,000 codes
Avery label sheet PDFUp to 5 codesUp to 1,000 codes
CSV import with captionsUp to 5 rowsUp to 1,000 rows

Details and refunds are on the pricing page.

Many codes at once: batches and label sheets

Open Batch under the tool, paste one value per line or load a CSV file, and download a ZIP of PNG or SVG files, or a PDF laid out for Avery 5160, 5163 or 5167 label sheets. Up to 5 codes per export are free. The Data Matrix labels page explains label sizes and printing.

When does a Data Matrix code not scan?

Most failures come from the print, not the data:

Data Matrix or QR code?

Both are 2D codes. A Data Matrix is more compact for short data and needs a smaller quiet zone (1 module against 4 for QR Code in GS1’s Table 5-46), which is why it is common on small parts and healthcare packs. QR Code lets you choose the error correction level and is what most people expect for links on posters. If a regulation or a trading partner asks for GS1 DataMatrix, use the GS1 mode; for marketing links, a QR code is usually the better choice.

FAQ

Is this Data Matrix generator free?

Yes. Single codes in PNG and SVG, every size, colour and quiet zone, and batches of up to 5 codes are free with no sign-up. Data Matrix Generator Pro (US$19.90 once) raises the batch limit to 1,000.

Is my data uploaded?

No. The code is made by JavaScript in your browser. The text you type and the CSV files you load never leave your device.

Can I use the codes commercially?

Yes. The codes you make are yours to print on products, labels and documents. GS1 notes that the symbology has been used in the public domain since 1994.

What is the difference between square and rectangular Data Matrix?

Square symbols come in 24 sizes and hold up to 3,116 digits. Rectangular symbols come in 6 sizes, up to 16 × 48 modules and 98 digits, and fit narrow spaces such as the edge of a pack.

Which error correction level does a Data Matrix use?

ECC 200 uses Reed-Solomon error correction with a fixed amount per symbol size, from 62.5% overhead in a 10 × 10 symbol to about 28% in the large ones. There is no level to choose.

Should I download PNG or SVG?

SVG for print, label software and anything you resize, because it stays sharp at any size. PNG for documents, slides and web pages; set the module size so the image is big enough before you download.

Does it make GS1 DataMatrix codes?

Yes, on the GS1 Data Matrix generator page: enter data as (01)…(17)…(10)… and the tool adds FNC1 and checks each Application Identifier, including the GTIN check digit.