Barcodian

Data Matrix Generator

Create a square 2D Data Matrix that fits high-density data into very small spaces — common in electronics and healthcare.

Share

How to use in 3 steps

  1. 1

    Enter the data

    Type the text, number or URL to encode; Data Matrix packs a lot into small spaces.

  2. 2

    Set size and margin

    Choose the module size and the one-module quiet zone around it.

  3. 3

    Download

    Export as PNG, SVG or PDF for laser marking or a small label.

Supported formats

FormatDimensionNote
Data Matrix2D (matrix)any data
GS1 DataMatrix2D (matrix)e.g. (01)09506000134352
PDF4172D (matrix)any data
Aztec Code2D (matrix)any data
QR Code2D (matrix)any data
GS1 QR / Digital Link2D (matrix)GS1 Digital Link URL or (01)...

Example input / output

Input

SN:AB12-CD34-EF56

Output

Data Matrix (ECC 200) · square matrix

Technical notes

Data Matrix is a barcode that carries data in a dense 2D matrix of black-and-white squares. Because it fits a large amount of data even at very small sizes, it's preferred in electronics, medical devices, pharmaceuticals and direct part marking (DPM).

Modern Data Matrix codes use ECC 200 error correction (Reed-Solomon based), so the data can be recovered even if part of the code is scratched, worn or soiled. The code aligns using the solid 'L' finder pattern on two edges and the dotted timing pattern on the opposite edges.

Data Matrix codes can be square or rectangular, and the matrix grows as content lengthens. It reads more reliably in smaller physical areas than QR, an advantage on tiny parts; however, it isn't as widely supported 'out of the box' by phone cameras as QR.

GS1 DataMatrix is a variant that adds Application Identifier data — GTIN, lot, expiry — to the same square structure; to parse such element strings, see the GS1-128 parser. Generation runs in your browser and your data is never uploaded.

Frequently asked questions

Both are 2D, but Data Matrix reads more reliably at very small sizes and is common in industrial/DPM use; QR is more widely supported by phone cameras and has larger data capacity.