Batch-generate Data Matrix 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 Data Matrix code for every record in a selected CSV column and arrange them in a print-ready A4 PDF. By default, column 1 supplies the caption and column 2 supplies the data encoded in each Data Matrix; 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)
London office,https://www.ixam.net/
Manchester desk,"Reception: Manchester
Second floor"
"Leeds, sales",https://example.com/?q=café

The Data Matrix data of the second record contains a line break inside one cell. 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 Data Matrix 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 Data Matrix 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%).
  • Within quoted CSV cells, line breaks, commas, quotes, whitespace, non-ASCII text such as Japanese, and emoji are encoded unchanged as UTF-8 (with ECI 26). Only rows whose Data Matrix cell is completely empty are skipped, and the count is shown.
  • Supports UTF-8 (with or without BOM), Shift_JIS/Windows-31J 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 Data Matrix 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.
  • Rectangular symbols hold less data than square ones. If a record does not fit, its record number is shown and the PDF is not saved. The preview covers the first three records; all records are checked when the PDF is created. Choose Square for long content.
  • 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.
  • This tool creates standard Data Matrix (ECC 200) codes. For GS1 Application Identifier data such as GTINs, lot numbers or expiry dates, use GS1 DataMatrix batch generation and PDF printing (Japanese). Scanners must support the UTF-8 ECI to read non-ASCII text and emoji.

Data Matrix Generator (Save as SVG or PNG) · Data Matrix Reader (Images and Camera) · Generate QR codes from CSV and print to PDF · 2D Code Workspace