GS1 data and DataBar
GS1 DataMatrix generator
Type GS1 data, such as a product number with its expiry date, batch and serial number, and get a GS1 DataMatrix.
Make your own
Sets the printed size of the downloads.
Sample
Type your own value to download it. The SVG prints at the size shown; the PNG is drawn for a 600 dpi printer. Each picture counts as 1 label. Free for up to 100 labels a month. No account needed.
Each picture counts as 1 label. Free for up to 100 labels a month. No account needed.
What GS1 DataMatrix is
A GS1 DataMatrix is an ordinary Data Matrix that starts with a special character (FNC1) telling the scanner the contents are GS1 data. The scanner then splits the contents into their parts: product number, expiry date, batch, serial number.
It is the usual code on prescription medicine packs in the European Union, where the anti-counterfeiting rules have required a 2D code with the product code, serial number, batch and expiry date since February 2019. It is also used on medical devices and surgical instruments, and more and more on food and other retail items.
What fits
GS1 data: each part is its identifier in brackets and then the value. (01) is the 14-digit product number (GTIN), (17) the expiry date as YYMMDD, (10) the batch or lot, (21) the serial number. The sample is product 09521234543213, expiring 31 December 2027, batch ABCD1234.
Getting the data right
Put the fixed-length parts first, (01) and dates such as (17), and the parts that vary in length, (10) and (21), last. A variable part followed by anything needs a separator, which takes room; the separators are added for you.
Dates are YYMMDD. When only the month matters, GS1 lets the day be 00: 271200 means December 2027. The GTIN in (01) is always 14 digits, so put zeros in front of a 12-digit UPC or a 13-digit EAN.
Size facts
The sample is 22 cells across with its 1-cell margin, so at 0.5 mm cells it is about 11 mm (0.43 in) square. With smaller cells on a sharp printer it can go smaller still; check it with the scanner that will read it.
- Shape
- A grid of small squares, called cells.
- The sample
- 20 cells across and 20 down, plus its blank margin.
- At 0.5 mm cells
- The sample is about 11 × 11 mm (0.43 × 0.43 in) with its margin.
- Rule of thumb
- Keep each cell at 0.4 mm or more. Under 0.25 mm it is too small to scan reliably.
- Blank margin
- 1 cell on every side. It is already part of what we draw.
Sizes are advice, never a block: you can print smaller, and the size line beside the preview says what to expect. Check that it scans before you print a big batch.
Questions
- GS1 DataMatrix or GS1-128?
- Both carry the same GS1 data. GS1-128 is a long row of bars that any linear scanner reads; GS1 DataMatrix fits the same data in a small square but needs a 2D (camera) scanner. Use the one your customer or regulator asks for.
- Can a phone read it?
- A scanner app on a phone can usually read it, and shows the raw numbers rather than opening a page. For a code shoppers scan with phones, use GS1 Digital Link QR Code.
- Do I need an account to make GS1 DataMatrix labels?
- No. Free for up to 100 labels a month, with no account needed. Each label you print, and each SVG or PNG you download, counts as one. What you see on screen never counts.
Related barcode types
- GS1-128 The same data as a row of bars for linear scanners.
- GS1 Digital Link QR Code A QR Code shoppers can open as a web page.
- Data Matrix The plain Data Matrix, for your own data.