Barcode Generator

DataMatrix barcode generator

Compact 2D code used on industrial parts, electronics and medicine traceability.

Terms of use: this site only turns the data you type into a barcode; it does not create, verify, register or store that data, and nothing is sent to any server. The content you enter and the use of the generated barcodes are solely the user's responsibility, including the right to use GTIN/EAN numbers (licensed by GS1), the accuracy of the information and compliance with applicable law. Links with dangerous schemes and typical attack patterns (scripts, SQL injection) are blocked, but this does not replace your own checks. By using the generator you accept these terms.

DataMatrix options
Size
Appearance

Preview

PDF and AI are vector files in CMYK, with black as C0 M0 Y0 K100. PNG, JPG and SVG are RGB.

Test every barcode before use. The user is solely responsible for the accuracy of the barcode.

DataMatrix specification

DataMatrix (ECC 200) is a very compact square or rectangular 2D code. It is used for direct part marking (laser engraving), electronics and medicine traceability — GS1 DataMatrix is the standard for serialized medicine packs under the EU Falsified Medicines Directive and the US DSCSA.

  • Content types: text, link, phone, SMS, e-mail, Wi-Fi, location, contact (vCard or MeCard) and bookmark. For GS1 data (GTIN, batch, expiry), use the GS1-128 generator with GS1 DataMatrix output.
  • Square (10×10 to 144×144 modules) or rectangular (8×18 to 16×48) shape, chosen automatically according to the amount of data.
  • Capacity: up to 3,116 digits, 2,335 alphanumeric characters or 1,556 bytes.
  • Reed-Solomon error correction: the code can be read even when partially damaged.
  • Text with accents carries the ECI indicator of the chosen encoding (UTF-8 or ISO-8859-1). Quiet zone: at least 1 module; the default here is 2.

How to use

  1. Type the content. To create several barcodes, put one per line.
  2. Adjust size, height, margin and colors. The preview follows every change.
  3. Download each barcode in the format you need, or all of them as a ZIP.

In PDF, SVG and AI the size is set by the module X — the width of the narrowest bar, in millimetres. The default for this symbology is 0.5 mm. PNG and JPG use the chosen pixel resolution. If your printer warns about ink spread, increase the bar width reduction.

Frequently asked questions

What is a DataMatrix barcode?

DataMatrix (ECC 200) is a very compact square or rectangular 2D code. It is used for direct part marking (laser engraving), electronics and medicine traceability — GS1 DataMatrix is the standard for serialized medicine packs under the EU Falsified Medicines Directive and the US DSCSA.

What can a DataMatrix barcode contain?

Content types: text, link, phone, SMS, e-mail, Wi-Fi, location, contact (vCard or MeCard) and bookmark. For GS1 data (GTIN, batch, expiry), use the GS1-128 generator with GS1 DataMatrix output.

How do I create a DataMatrix barcode for free?

Type the data in the generator on this page, adjust size and colors, and download the barcode as PNG, JPG, SVG, PDF or Adobe Illustrator (AI). PDF and AI are vector files in CMYK with 100% K black, ready for print. Everything runs in your browser: nothing is uploaded and no sign-up is needed.

What size should a printed DataMatrix barcode be?

The vector size is defined by the module X (narrowest bar). This generator uses 0.5 mm by default for DataMatrix; you can change it before downloading.

Share this page

Like it? Support the site

Keeping the generator free has costs. Any amount helps.