Batch-create GS1 DataBar Composite codes from CSV and print to PDF

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

About this tool

Generate GS1 DataBar Composite codes in bulk from CSV records that hold a GTIN plus GS1 AI data such as the expiration date and batch/lot number, and arrange them in a print-ready A4 PDF. By default, column 1 is the caption, column 2 is the GTIN and column 3 is the data for the composite component. All processing happens entirely in your browser (no data is sent).

1. Load CSV data

Select or drag and drop a CSV file, or paste the text. Three sample records are provided, so you can create a PDF immediately.

Data starts on the first row. Enclose captions that contain commas or line breaks in double quotes. GTINs are read as text, so leading zeros are kept.

2. Choose columns and print settings

3. Review and create the PDF

Load a CSV to begin.

First five CSV records

Preview of the first three codes

How to use and important notes

  1. Select a CSV file, or paste CSV into the text field and select Load entered CSV. Files are loaded automatically when selected or dropped.
  2. Choose the caption, GTIN and composite data columns. Column numbers start at 1. Turn on the skip option if the first row contains column names.
  3. Choose the symbology and the number of print columns, then check the input in the preview of the first three codes. The linear component carries the GTIN, and the composite component carries AI data in parentheses.
  4. Select Create PDF to check every record, then select Save PDF when it is ready. Invalid records are listed with their number and the cause. Fix them and load the CSV again.
  • GTINs have 14 digits. When you export the CSV from spreadsheet software, format the column as text so that leading zeros are not lost. Records whose GTIN and composite data columns are both empty are skipped and counted. If only one of them is empty, the record is reported as an error.
  • An example of composite data is (17)271231(10)LOT123: (17) is the expiration date in YYMMDD format, (10) is the batch/lot number and (21) is the serial number. The length and allowed characters of each AI are checked, and FNC1 and CC-A or CC-B are chosen and inserted automatically. Captions can use any script, but non-ASCII characters, line breaks and emoji cannot be stored in the composite component.
  • CSV files can be up to 16 MiB with up to 5,000 records to generate. UTF-8, Shift_JIS / Windows-31J and UTF-16 are supported. Commas and line breaks in quoted cells are kept. Long text is shortened in the preview, but the data encoded in the barcodes is never shortened.
  • The codes are drawn as vectors with a white quiet zone. Captions are limited to two lines and rendered as images using the browser’s fonts. Changing the input or settings discards a created PDF, and stops creation if it is in progress.
  • Print at actual size (100%). If the narrowest bar becomes smaller than 0.25 mm, the result message tells you. Reduce the number of columns to print larger codes, and check the GTIN and additional data with the scanner you actually use.

GS1 DataBar Composite Generator · GS1 DataBar Composite Reader · 2D Code Workspace · Batch-create QR codes from CSV

Generation uses bwip-js (MIT License).