Plain Data Matrix
Your own text or ID. This generator.
- Part numbers, serials, asset tags, bin locations, links.
- The code holds exactly what you type; your system decides what it means.
- Used in factories, warehouses, labs and electronics.
Free , ECC 200 , Print-ready
Turn text, part numbers or serials into Data Matrix codes. Download PNG, SVG or a true-size PDF, or make hundreds from a spreadsheet.
Part numbers, serials, links or any text. Spaces, leading zeros and line breaks are kept exactly. The preview shows an example until you type.
14 × 14 modules · 100% full7 mm × 7 mm · 9 mm wide with the blank border
GS1 data (GTIN, expiry, lot)? Use the GS1 generator
The code updates as you type. No account, no watermark.
Paste a list or import CSV or Excel and make hundreds at once.
Keep codes, label layouts and printer settings in this browser.
True-size PDF, sharp SVG and PNG at the resolution you need.
How it works
Everything happens in your browser. What you type is never uploaded.
A part number, serial, link or any text. Spaces, leading zeros and line breaks are kept exactly as you type them.
Square suits most uses; a rectangle fits narrow labels. Leave the size on Automatic, or set the width you need.
PNG for screens and documents, SVG for design and engraving software, PDF to print at exact size. Print at 100% / Actual size.
PNG, SVG or PDF
All three are drawn from the same code, so they always match the preview.
Documents, spreadsheets, web pages and most label apps.
Choose the resolution (dpi). Each square is a whole number of pixels, so the code stays crisp.
Illustrator, InDesign, Inkscape, LightBurn and laser engravers.
Vector: sharp at any size. It opens at true size in millimeters.
Printing at an exact physical size.
The page is exactly the code and its blank border. Print at 100% / Actual size, never “Fit to page”.
Capacity
The largest code, 144 × 144 squares, holds up to 3,116 digits, 2,335 capital letters and digits, or 1,556 bytes of any data. Most codes hold far less. A short ID makes a small code that is quick to scan.
There are 24 square sizes and 6 standard rectangles, plus 18 newer extended rectangles (DMRE). Leave the size on Automatic and the generator picks the smallest one that fits. See the Data Matrix size and capacity chart.
| Value | Code size |
|---|---|
A part number PART-000123 | 14 × 14 |
A serial with a date SN-2026-000042 | 16 × 16 |
A 13-digit number 0123456789012 | 14 × 14 |
A short web link https://example.com/p/000123 | 22 × 22 |
| Size | Digits | Capitals | Bytes |
|---|---|---|---|
| 10 × 10 | 6 | 3 | 1 |
| 16 × 16 | 24 | 16 | 10 |
| 24 × 24 | 72 | 52 | 34 |
| 32 × 32 | 124 | 91 | 60 |
| 52 × 52 | 408 | 304 | 202 |
| 144 × 144 | 3,116 | 2,335 | 1,556 |
Which type do I need?
Your own text or ID. This generator.
Product data in GS1 fields.
Typing “(01)…” into the plain generator does not make a GS1 code: the brackets are encoded as text and there is no FNC1. Read GS1 DataMatrix explained.
Printing
More in quiet zone and print size. Printing many? Print Data Matrix labels on sheets or rolls.
Single code, batch or API?
This page makes one code at a time. For more, pick the route that fits your job.
Need to read a code instead? Read a Data Matrix code online from a photo, a screenshot or your camera. Nothing is uploaded.
Type your text in the box at the top of this page and press Download. That is all: no account and no sign-up.
Yes, this one: a free Data Matrix barcode generator. It needs no sign-up and adds no watermark. You can use the codes commercially, and they never expire because they are plain images. Making codes in bulk from a spreadsheet is free in your browser too: make Data Matrix codes in bulk from Excel or CSV.
Yes, with a scanner app that supports Data Matrix. Some built-in camera apps only read QR codes, so if yours does nothing, use a barcode scanner app that lists Data Matrix. Old laser scanners that read only 1D barcodes cannot read it; you need a 2D (imager) scanner. To test a code from a picture, read a Data Matrix code online, or see how to scan a Data Matrix code. To check a phone or scanner, make a test code here or print our scanner test sheet.
A Data Matrix has an L-shaped border on two sides and fits a short ID into a smaller square, so it is used on parts, medicines and devices. A QR code has three large corner squares and is the usual code for links aimed at consumers. More in Data Matrix vs QR code.
A Data Matrix that starts with a special FNC1 character and holds GS1 fields such as the product number (GTIN), expiry date, lot and serial. Make one with the GS1 DataMatrix generator: it checks the field syntax. We do not issue GTINs and are not GS1.
Yes. The Data Matrix reader decodes a code from an image or your camera, right in your browser. Nothing is uploaded.
Up to 3,116 digits, 2,335 capital letters and digits, or 1,556 bytes in the largest 144 × 144 code. Short IDs are best: the code is smaller and easier to read. See the Data Matrix size and capacity chart.
ECC 200 is the current version of Data Matrix. It uses Reed-Solomon error correction, so a code still reads when part of it is damaged. Every code this tool makes is ECC 200. The older versions (ECC 000 to 140) are obsolete. Data Matrix codes are also called DMC (short for Data Matrix Code), especially in automotive and German-speaking industry. More in what ECC 200 means.
It depends on your printer and scanner. There is no single minimum size. If a customer or scanner spec names a module size (the size of each small square), use that. Otherwise 0.5 mm squares suit most label printers and phone scanners, and the tool shows the printed size as you type. Keep at least 1 square of blank space around the code (we use 2). See quiet zone and print size.