GS1 DataBar Composite Generator (PNG and SVG)

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

About this tool

Create a GS1 DataBar Composite, which combines a linear barcode carrying the GTIN with a two-dimensional composite component carrying data such as the expiration date and batch/lot number. You can choose from seven symbologies, including Limited, and save the result as a PNG or SVG image. All processing happens entirely in your browser (no data is sent).

Input and settings

Enter all 14 digits, including leading zeros. The final check digit is also verified.

(17)271231 is an expiration date of 31 December 2027, and (10)LOT123 is the batch/lot number. The FNC1 separators are inserted automatically.

Preview

Encoded data

AIFieldValue

How to use

  1. Enter the 14-digit GTIN you actually use. Do not drop the leading zeros of the GTIN.
  2. Enter data such as (17)YYMMDD(10)batch/lot number for the composite component. Do not put spaces or line breaks between an AI and its value.
  3. Choose the DataBar symbology and image size that suit your purpose, then check the AIs and values in the preview.
  4. Save as PNG to paste the code as an image, or as SVG for enlarged printing.

Input and printing notes

The GTIN, AI (01), goes into the linear component. In this tool the linear component always holds the GTIN, even for Expanded and Expanded Stacked; specify any additional AIs in the composite component. The composite component is required, and CC-A or CC-B is chosen automatically according to the amount of data.

Commonly used AIs are (17) expiration date (six digits, YYMMDD), (10) batch/lot number (up to 20 characters) and (21) serial number (up to 20 characters). Setting DD to 00 in a date means the last day of that month. The allowed characters and lengths differ from AI to AI, and non-ASCII text such as accented letters, CJK characters or emoji cannot be encoded. The parentheses only mark the AIs in the input and are not part of the data in the barcode.

The code is output as black bars on a white background. Keep the aspect ratio and quiet zone, and choose a size at which the bars do not become too thin when printed. The generated image contains only the code and its quiet zone, without the GTIN or batch/lot number as human-readable text. If your printed label needs that text, add it when you design the label.

You can check the saved image with the GS1 DataBar Composite Reader. See the reader's description for what it can read, and also confirm the GTIN and additional data with the scanners you use in actual operation.

Batch-create from CSV and print as PDF · 2D Code Workspace · QR Code Generator

Generated with bwip-js (MIT License). The input format follows BWIPP's GS1 DataBar Composite specification.