Create a Data Matrix barcode for compact two-dimensional text and identifier symbols. Enter a suitable value, inspect the generated preview and save an SVG or PNG image. The tool is free to use without creating an account.
Data Matrix Generator
Compact two-dimensional symbols
When to use Data Matrix
Data Matrix stores data in a two-dimensional pattern of modules. It is useful when a compatible imaging scanner needs to read a short identifier or text from a compact symbol. An ordinary linear-only laser scanner may not read it. Confirm the supported barcode types in your equipment before choosing Data Matrix solely because the preview occupies less horizontal space than a one-dimensional barcode.
Input rules and supported data
Enter the text or identifier exactly as it should be decoded. Avoid unintentional leading or trailing spaces when copying data. This page generates an ordinary Data Matrix symbol; it does not provide a dedicated GS1 DataMatrix input workflow. If your receiving specification requests GS1 application identifiers and FNC1 handling, confirm that requirement instead of assuming any square barcode provides the same data structure.
How to create your Data Matrix image
- Copy the intended identifier or text into the input field, keeping meaningful zeros and punctuation.
- Choose a scale appropriate for a clear preview. For linear formats, choose the bar height as well.
- Select the generate button and read any input message before using the displayed image.
- Download the result and check the decoded contents with equipment that supports this barcode format.
Worked example
Example input: DM-TEST-2026. This short reference is useful for confirming that a compatible imaging scanner reads a Data Matrix symbol and returns the expected text. More data can produce a denser symbol. Before using a longer production value, check the actual printed result and available label area.
Choosing SVG, PNG or a printed copy
Choose SVG when placing the image into a design or print workflow that accepts vector artwork. Choose PNG for software that expects a raster image. Keep the complete symbol and its surrounding clear area in either format. The readable caption is useful for a person checking the label, but the scanner reads the encoded pattern. After changing the input, generate a fresh image rather than reusing an earlier download.
Preserve the relative dimensions of the modules and the surrounding border. A larger preview can help you inspect the pattern, but it does not prove the final printed symbol will scan. Test a sample at the actual output size on the intended material. Reflections, blurred edges, low contrast and an uneven surface can prevent an otherwise valid symbol from being read.
Troubleshooting this format
For a symbol that generates but will not scan, first confirm Data Matrix support in the scanner. Next check focus, reflections, label contrast and whether the image was resized unevenly. If the decoded text is correct but the application rejects it, compare the expected data structure and identifier record rather than repeatedly increasing the image size.
Frequently asked questions
Is Data Matrix the same as a QR code?
No. Both are two-dimensional formats, but their patterns, encoding rules and scanner support differ. Choose the format your receiving equipment and software expect.
Will a linear-only barcode scanner read Data Matrix?
A device needs support for two-dimensional image-based decoding. Check the scanner’s specification and enabled formats before relying on a Data Matrix label.
Does this page generate GS1 DataMatrix labels?
This page is an ordinary Data Matrix generator. A GS1 DataMatrix workflow needs explicit GS1 structure and validation, so do not assume the two are interchangeable.
Data handling and related tools
Barcode rendering happens in your browser after the required rendering library loads. The website and its content delivery providers still receive normal page requests, so this is not a claim that the whole website has no network activity. Avoid confidential test data and review the privacy policy for service details.
Use the barcode scanner to check supported images, or browse the complete barcode tool directory for a different format. For technical encoder information, see the BWIPP symbology reference.