Batch-create GS1 DataMatrix codes from CSV and print to PDF

Completely free, with no extra charges. You may freely use the output commercially.

About this tool

Generate a GS1 DataMatrix for every record in a selected CSV column of bracketed AI data, and arrange the codes in a print-ready A4 PDF. The tool checks the length and allowed characters of each Application Identifier (AI) and adds FNC1 automatically. By default, column 1 supplies the caption and column 2 supplies the data encoded in each GS1 DataMatrix; you can choose different columns. Small captions are printed below the codes by default. All processing happens entirely in your browser (no data is sent).

1. Load CSV data

Select a CSV file or paste CSV into the field below. Three sample records are provided, so you can create a PDF immediately.

CSV sample (three records; data starts on the first row)
Product A,(01)09521234543213(17)271231(10)LOT123(21)SER123
Product B,(01)09521234543213(17)271231(10)LOT124(21)SER124
"Product C, prototype",(01)09521234543213(17)271231(10)LOT125(21)SER125

Column 1 is the caption and column 2 is GS1 data with each AI in parentheses. The third caption contains a comma. Enclose cells that contain commas or line breaks in "...", and write a " inside a cell as "".

2. Choose columns and print settings

Error correction uses ECC 200. A white quiet zone of two modules is added around each code.

3. Review and create the PDF

Load a CSV to see the record count and the first records.

First CSV records

Preview of the first three GS1 DataMatrix codes

Load a CSV to begin.

How to use and important notes

  1. Choose a CSV file or use the sample in the text field. Files are loaded when selected; pasted text is loaded when you select Load entered CSV.
  2. Choose the GS1 DataMatrix data column and the caption column. Column numbers start at 1. With no caption column, the records to be encoded are numbered from the top.
  3. Check Skip the first row if your file has a header row. By default, the first row is treated as data.
  4. Review the preview, choose how many codes to place on each page, and select Create and save PDF. The PDF uses A4 portrait; print at actual size (100%).
  • Write the code cell in bracketed AI notation such as (01)09521234543213(17)271231(10)LOT123. A GTIN (01) has 14 digits including the check digit, and dates such as (17) use six digits in YYMMDD format. Keep leading zeros; spreadsheet software may drop them unless the column is formatted as text. Only rows whose code cell is completely empty are skipped, and the count is shown.
  • Supports UTF-8 (with or without BOM), Shift_JIS/Windows-31J (a Japanese encoding) and UTF-16 (with BOM). If text is garbled or detected incorrectly, select the file encoding manually. CSV files must not exceed 16 MiB.
  • Captions are printed in a small font on at most two lines; long captions are truncated. The text encoded in each GS1 DataMatrix is never truncated. The browser renders captions to images with its own fonts, while the codes themselves are output as vectors that stay sharp when enlarged.
  • The preview covers the first three records; all records are checked when the PDF is created. If any row has an invalid AI, length or check digit, or does not fit in the symbol, the CSV record number and reason are shown and the whole PDF is not saved. Rectangular symbols hold less data than square ones.
  • Long data or many codes need more time and memory to create the PDF. After saving, the tool reports how many codes have modules smaller than 0.25 mm. For fine codes, reduce the number of print columns and test the printout with the actual scanner. Automatic shrinking in the printer settings can make codes harder to read.
  • The leading FNC1 and any separator FNC1 required by GS1 DataMatrix (ECC 200) are added automatically. The AI parentheses are not encoded. Values that contain parentheses and direct control instructions are not supported. The characters allowed in each AI follow the GS1 rules, so put descriptive text in the caption column instead.

Captions are short names that help people tell labels apart. If your process requires human-readable interpretation (HRI) showing the AIs and values, prepare that text in the caption column and choose a layout in which it is not truncated.

GS1 DataMatrix Generator · GS1 DataMatrix Reader · Generate QR codes from CSV and print to PDF · 2D Code Workspace