Skip to main content
ToolCube – All tools at one place.

Data Matrix Code Generator

Make Data Matrix codes: small square 2D barcodes that hold serial numbers, batch codes and text in a few millimetres.

  • Tiny and robust
  • Reads in any direction
  • Vector for print

Loading Barcode Generator…

Guide

Where Data Matrix is used

Data Matrix is the code etched on circuit boards and machine parts, printed on medicine packs for traceability, and used on postage and small electronics. A code a few millimetres wide can hold a full serial number, and it can still be read when part of it is damaged.

Data Matrix or QR code?

Both are 2D codes. Data Matrix is more compact for short data and is the industrial standard; QR codes are what phone cameras open as links. For a website, WiFi login or contact card, use the QR Code Generator. For part numbers and serials read by industrial scanners, Data Matrix is the better fit.

Printing tips

Keep a quiet zone of at least one module around the code, use dark modules on a light background, and choose a module size your printer can reproduce (0.25 mm or more for labels). Each code is scan-tested in your browser before you download it. For simple stock codes, a Code 128 barcode is often enough.

Serial numbers and traceability

Many manufacturers print a Data Matrix with a unit's serial number, batch and expiry date so that every item can be traced. In regulated industries such as medicines, the data follows the GS1 format and is printed with a special GS1 DataMatrix setting; this tool makes standard Data Matrix codes for your own text. For your own serial labels, a format such as SN-2026-000123 is easy for people and scanners. Keep each code at least 10 mm wide for hand-held scanning, and use the bulk option to print a sheet of serial labels from a spreadsheet. Test a few printed labels with the scanner your team actually uses before printing a full run.

Everything is created in your browser. Nothing is uploaded.

FAQ

Frequently Asked Questions

Answers to common questions about Data Matrix Code on ToolCube.

How much can a Data Matrix hold?

Up to about 2,000 characters in the largest size. This tool allows 1,500 characters of Latin text.

Can phones read Data Matrix codes?

Many scanner apps can, but phone cameras open QR codes more reliably. Use a QR code for things the public will scan.

Can I use Urdu or Arabic text?

This tool keeps Data Matrix to Latin text for reliable scanning. For other languages, use the QR Code Generator.