Data Matrix Generator

A Data Matrix is a square 2D barcode; this Data Matrix generator writes one from any text or link and draws it as a PNG or SVG. Free, no sign-up.

This is an example link: type yours to download.

The code holds exactly this text: a note, a code, an address.

Data Matrix with your text or link
Printed size
2.0 × 2.0 cm
Square size
1.02 mm

Test it now: scan it with a scanner app and check what it shows.

PNG is a picture for documents, websites and messages. SVG is a vector file: it stays sharp when you resize it, so use it for print.

Size, color and file

Pick the printed size by where the code goes.

This makes a static code. What you type is stored inside the code itself, so scans don’t pass through Varnip and need no account. It keeps working as long as what it points to does. It can’t be changed after you print it: to change it, make a new one.

How can I create a Data Matrix barcode?

To create a Data Matrix barcode here, type or paste your text or link into the box, pick a printed size, and download the code as PNG or SVG. The page opens with the example link https://example.com, so replace it with your own text. You can pick 2, 3, 5 or 10 cm, a PNG at 600 or 300 dpi, black, dark blue or a custom color, and a white or transparent background.

What is a Data Matrix barcode?

A Data Matrix barcode is a square 2D code made of small squares, and the kind this page writes is called ECC 200. Unlike on the QR page, there is no damage-protection level to pick.

What can I put in a Data Matrix?

You can put any text or link in it: the page writes exactly the characters you type, so a link keeps the form you typed it in. If the text is too long for a Data Matrix, the page says so and never cuts it. Software decodes the Data Matrix back in our tests at every published build.

Should I use a Data Matrix or a QR code?

GS1 says mobile devices read a QR Code that holds a web address more readily than a Data Matrix, and that a Data Matrix can suit product packaging where a QR Code will not fit (GS1, 2D barcodes in retail, 2025). For a QR code, use Varnip’s QR code generator.

The two codes as Varnip makes them, with what GS1 says about each.
What differsData MatrixQR Code
What you can put inAny text or link, as typedTen kinds, among them a website, a Wi-Fi network and a contact
Damage protectionNot a choice on this pageFour levels: Low, Medium, High and Highest
Blank margin in the fileOne square wide on every sideFour squares wide on every side
What GS1 saysCan suit product packaging where a QR Code will not fitEasier for mobile devices to read when it holds a web address

Can you scan a Data Matrix code?

GS1 says a Data Matrix “may require an app” on some devices (GS1, 2D barcodes in retail, 2025). No printed Data Matrix has been scanned in our tests, whether with a phone camera, a scanner app or a handheld scanner, so scan one printed code before you print many.

Does this make a GS1 Data Matrix?

No: this page makes a plain Data Matrix that holds the text you type and nothing else. For a product’s GTIN with its batch or date, use Varnip’s GS1 Digital Link generator: it writes them into a web address and draws it as a QR code or a Data Matrix.

What size should a printed Data Matrix be?

This page offers four printed sizes, 2, 3, 5 and 10 cm, and Printed size under the code shows the size of the file you download, blank margin included. The file lands near the size you pick rather than on it, since every square takes a whole number of pixels. Each file also carries a blank margin one square wide on every side, and GS1 New Zealand’s table gives the same, 1 square, for a Data Matrix with a GS1 Digital Link (GS1 New Zealand, 2025). We name no size as the right one for your use, because no printed code has been scanned in our tests.

Can I change a Data Matrix after I print it?

No: this makes a static Data Matrix, so what you type is stored inside the code itself and can’t be changed after you print it; to change it, make a new one. Varnip does not make dynamic codes.

Is it free, and is there a watermark?

Yes: making a Data Matrix here is free, needs no sign-up or account, and puts no watermark on the file. Nothing else is drawn in the file besides the squares, the margin and the background.

Is what I type sent to Varnip?

What you type is encoded in your browser and is not sent to our servers. Varnip does count how the generators are used, such as which format was downloaded, never what you type. The Data Matrix maker is served by Varnip and loads when the page is idle, and if you change the text before it has arrived, the download buttons stay off until it is ready.

Last updated

See how we test this generator.

Which standards and sources does this page rely on?

The Data Matrix generator relies on these documents from GS1 and GS1 New Zealand for the comparison with the QR Code and the blank margin: