What Data Matrix is
Data Matrix is a compact 2D matrix symbology standardized as ISO/IEC 16022 (ECC 200), storing numeric, alphanumeric, or binary data in a small square or rectangular grid.
Generate it now
A short value like the seeded example fits the smallest square version automatically; type a longer payload now and watch it step up to a bigger fixed version or switch to a rectangle.
Valid input
Data Matrix (ECC 200) encodes text and binary data with Reed-Solomon error correction; bwip-js rejects data exceeding the chosen symbol size's capacity.
Key options
Supported options include version (fixed symbol size) and format (square vs. rectangular).
Output and printing
Export SVG for the sharp edges small part-marking applications need, or PNG for digital use.
Common uses
Data Matrix is standard for parts, electronics, manufacturing, and direct part marking where label space is very small.
Example
The seeded example, "This is Data Matrix!", is short enough that bwip-js auto-selects the smallest square version that fits it -- type a longer payload and watch the preview step up to a larger fixed version (or switch "Symbol shape" to rectangle) as capacity runs out.
Size guidance
Data Matrix requires only a narrow quiet zone and scales down further than most linear symbologies, which is why it dominates small part marking.
Troubleshooting
If data does not fit, choose a larger fixed version or switch to Data Matrix Rectangular Extension for narrow layouts.
Related formats
Related formats: Data Matrix Rectangular, Data Matrix Rectangular Extension, and GS1 Data Matrix.
FAQ
What error correction does Data Matrix use?
ECC 200 Reed-Solomon error correction, built into the ISO/IEC 16022 standard.
What happens if I don't pick a version?
bwip-js auto-selects the smallest square version that fits your data; set the version option only when your marking equipment or label die-cut requires a specific fixed module count.