# Data Matrix Generator

Generate a Data Matrix code from text, a URL or a serial number for small parts, electronics, medical devices and pharmaceutical packs. Data Matrix stores up to about 2300 characters in a compact square with strong error correction. The tool picks the smallest symbol size that fits your data and draws it as a PNG image or an SVG file with adjustable scale.

## Frequently asked questions

### What can I encode in a Data Matrix code?

Any text, including letters, digits, punctuation, line breaks and accented characters, which are encoded as UTF-8. Up to 3116 digits or about 2300 letters fit in the largest symbol, and the tool accepts up to 3116 characters.

### Which Data Matrix version does the tool generate?

It generates ECC 200, the current Data Matrix standard with Reed Solomon error correction. The older ECC 000 to 140 versions are obsolete and not supported by modern readers.

### How is the symbol size chosen?

The tool picks the smallest square symbol that holds your data, from 10 by 10 up to 144 by 144 modules, and chooses the most compact encoding mode for each part of the text. More data means more modules, not lower error correction.

### What does the scale control?

Each module is drawn 2 pixels per scale step, so at the default scale 3 a module is 6 pixels wide. The scale accepts 1 to 10. Data Matrix codes have no bar height or printed text, so those controls are not offered.

### Which format should I choose for the Data Matrix code?

SVG is a vector file that stays sharp at any size, which suits print artwork and design software. PNG is a raster image that works everywhere, including office documents and label printers. Both have a white background and a white margin around the symbol.

### Can phones read Data Matrix codes?

Most barcode scanner apps and many phone camera apps read Data Matrix, but some camera apps only open QR codes. Industrial and healthcare scanners read Data Matrix reliably, even when printed very small.

### Can I encode GS1 data for pharmaceuticals?

This tool encodes your text as plain data and does not add the FNC1 marker that GS1 DataMatrix requires. For pharmaceutical serialization use software that produces GS1 DataMatrix with application identifiers.

### Why was my text rejected?

The text may exceed the capacity of the largest Data Matrix symbol, or the image would be larger than 4000 pixels on a side at the chosen scale. Shorten the text or lower the scale.

### How much white margin does the code need?

Data Matrix needs a quiet zone of at least one module on every side. The tool adds a white margin of several modules, so the code scans as delivered.

### Is my text stored?

No. The text is used only to draw the code you download.

Your ad here?

[Email us](mailto:hi@dennn.is?subject=Advertising%20on%20OneClick%20Pro)

[Ad The agent-ready plugin suite for WordPress.](https://sleekwp.com/?ref=oneclickpro)
