Open Toolkit

Make a Data Matrix code

Type the text for your label. Download a Data Matrix code, square or as a narrow rectangle, small enough for parts and packs.

Free, no sign-up, no credit card. Codes never expire, and nothing you type is sent anywhere.

0 of about 2,335 bytes. Letters and digits take 1 byte; accents and emoji take 2 to 4.

Shape

You get a plain Data Matrix code here. Medicine packs in the EU and US use GS1 Data Matrix with registered product numbers, which you can't make here.

Type text and your Data Matrix code appears here.

No barcode yet

How to make a Data Matrix code

  1. Type the text, such as a part number, lot, and date.
  2. Choose square, or rectangle for narrow labels and edges.
  3. Choose the square size. 0.5 mm suits most printers; 0.25 mm needs a sharp one.
  4. Select Test scan, then download a PNG, SVG, PDF, or EPS.

Questions

When should I use Data Matrix instead of a QR code?

For small labels on parts, electronics, and packs. A Data Matrix code is smaller than a QR code for the same short text and reads well when printed tiny. For links that people scan with phones, a QR code is the better choice.

How much text fits?

Up to about 2,300 letters or digits, or about 1,500 bytes of other text, in the largest square. Rectangles hold much less, so use them for short codes. The count under the field shows how much you've used.

Can it hold accents and other alphabets?

Yes. The text is marked as UTF-8 so readers show it correctly. Most phone apps and modern scanners read it; some older handheld scanners may not.

Is this the code on medicine packs?

Those use GS1 Data Matrix, with registered product numbers and serial numbers in a set format. You get a plain Data Matrix code here, not a GS1 one.

Do you see my text?

No. Your codes are made in your browser. Nothing you type is sent anywhere.

Something not working? Report a problem