Barcodes

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.

Your codes are made in your browser. 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

This makes plain Data Matrix codes. Medicine packs in the EU and US use GS1 Data Matrix with registered product numbers, which this page doesn't make.

Type text and your Data Matrix code appears here.

No barcode yet

Drawn with JsBarcode and bwip-js (licences).

How to make a Data Matrix code

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

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. We mark the text 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. This page makes plain Data Matrix codes, not GS1 ones.

Do you see my text?

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

QR Code is a registered trademark of DENSO WAVE INCORPORATED. Codes are read back with ZXing-C++ and zxing-wasm (licences).