GS1 DataMatrix Generator (Save as SVG or PNG)
Completely free, with no extra charges. You may freely use the output commercially.
About this tool
Turn a GTIN, batch/lot number, expiry date, serial number and other data into a GS1 DataMatrix using GS1 Application Identifiers (AIs). The tool validates each AI and its value, adds FNC1 at the start and wherever a separator is required, and lets you save the code as a PNG or SVG image. All processing happens entirely in your browser (no data is sent).
Input and settings
The example contains a GTIN (01), expiry date (17), batch/lot (10) and serial number (21). Do not put line breaks or separating spaces between AIs. FNC1 is added automatically, so you do not need to type it.
Error correction uses ECC 200. The parentheses around AIs only separate the input and are not encoded in the symbol.
Preview
AIs and values entered
| AI | Value |
|---|
How to use and input examples
- Put each AI in parentheses and follow it with its value, as in
(01)09521234543213(17)271231(10)LOT123. - Check the preview and the value shown for each AI. If the GTIN length or check digit, or the characters or length allowed for an AI, are wrong, the reason is displayed.
- Adjust the shape, module size, quiet zone and colors, then select Save as PNG or Save as SVG.
- To confirm the result, open the saved image in the GS1 DataMatrix Reader.
- A GTIN (01) is 14 digits including the check digit. Pad GTIN-8, GTIN-12 and GTIN-13 with leading zeros to 14 digits. Make sure the leading zeros are not lost by converting the value to a number, for example in a spreadsheet.
- Dates such as the expiry date (17) use the six-digit
YYMMDDformat. The example271231means 31 December 2027. - The allowed characters and length depend on the AI. To encode free text, a URL or non-Latin scripts as entered, use the standard Data Matrix Generator.
- Values that contain parentheses and direct control sequences such as
^FNC1are not supported. Check the AIs and values shown on screen. - The code needs a quiet zone of at least one module on every side; the default is two. A white background and black modules are recommended for printing. Choose a size that suits your scanner and print without scaling.
- The FNC1 that identifies the symbol as GS1 DataMatrix and the separators needed between AI values are added automatically. The validation does not check whether a product is registered or whether the label meets industry-specific printing requirements.
Batch-create GS1 DataMatrix codes from CSV and print to PDF · 2D Code Workspace