Skip to content
StylQR home

GS1 DataMatrix Generator

Create GS1 DataMatrix codes for medicine packs, medical devices and industrial parts. Enter GS1 Application Identifiers such as (01) GTIN, (17) expiry, (10) batch and (21) serial, and each one is validated as you type.

  • Free & unlimited
  • Validated live
  • Print-ready SVG, PDF & PNG
  • Nothing uploaded
1

Enter your data

Checked live against the official rules for this barcode type.

GS1 Application Identifiers in brackets.

Add a GS1 Application Identifier

Dates are YYMMDD. Fixed-length AIs first, variable ones (batch, serial) last.

2

Design your barcode

Pick a label template or adjust size, text, colors and style.

Start from a template

One click styles the label. Your data and size stay as they are.

Check your data

Tap to preview

Preview & download

Loading barcode engine…

Format

Resolution

Print labels

A vector PDF filled with your barcode — print on label stock, stickers or plain paper.

Square cells with dashed cut guides; choose 2–6 columns.

Labels per row

What is GS1 DataMatrix?

GS1 DataMatrix is a Data Matrix ECC 200 code that starts with the FNC1 character, which tells scanners the content follows GS1 Application Identifier rules. It packs a GTIN and supporting data into a small square that fits on cartons, vials and devices.

Data is entered as AIs in brackets, for example (01)09521234543213(17)261231(10)ABC123(21)SN0001. Fixed-length AIs such as (01) and (17) need no separator; variable-length AIs such as (10) and (21) are separated automatically with FNC1.

It is the required format for the EU Falsified Medicines Directive (product code, serial, batch and expiry), widely used for UDI on medical devices, and part of GS1’s move to 2D barcodes at retail checkouts.

Specification

GS1 DataMatrix at a glance

Type
2D matrix (Data Matrix ECC 200 with FNC1)
Data
GS1 Application Identifiers, e.g. (01), (10), (17), (21)
Capacity
Up to 3,116 digits or 2,335 alphanumeric characters
Check digit
GTIN modulo-10 check digit + Reed–Solomon error correction
Module size
0.5 mm default; GS1 healthcare range about 0.25–0.6 mm
Quiet zone
1 module on all sides
Standard
ISO/IEC 16022, GS1 General Specifications

How to create a GS1 DataMatrix barcode

Four steps from data to a print-ready file.

  1. 1

    Step 1

    Enter your GS1 DataMatrix data. GS1 Application Identifiers in brackets.

  2. 2

    Step 2

    Check the live validation — check digits are added for you and any problem is explained in plain words.

  3. 3

    Step 3

    Pick a label template or adjust bar width, height, text, colours and style. The printed size updates as you go.

  4. 4

    Step 4

    Press Test scan, then download a PNG at up to 1200 DPI, vector SVG or PDF — or print it on label sheets.

Built for people who print barcodes

Details most barcode generators charge for — all free in the studio above.

  • Check digits, fixed for you

    Type 12 digits and the EAN-13 check digit is added. Type a wrong one and you get the correct digit with a one-click fix.

  • Frames & label templates

    Banners, tickets, hang tags, shelf prices, coupons and more — ready-made labels that never cover the bars.

  • Sized in millimetres

    Set the bar width and height and see the finished printed size update live, in mm or inches.

  • Crisp at any DPI

    PNG at 300, 600 or 1200 DPI with every bar a whole number of pixels, plus vector SVG and exact-size PDF.

  • Scanner-safe colours

    Warnings for red bars laser scanners cannot see, low contrast, thin bars and tight quiet zones.

  • GS1 helper

    Insert Application Identifiers like GTIN, expiry, batch and serial with one click — validated by the official rules.

  • Avery label sheets

    Fill Avery 5160, L7160 and 22805 sheets, sticker sheets or a label grid with one click.

  • Save, open & share

    Keep a barcode as a design file, reopen it later, share a link, and undo or redo any change.

Where GS1 DataMatrix is used

Real-world applications for this symbology.

  • Medicine serialisation

    EU FMD and other national rules requiring a unique serial on every pack.

  • Medical device UDI

    Unique Device Identification for the US FDA and EU MDR labelling.

  • Surgical instruments

    Direct part marking on reusable instruments for traceability.

  • Industrial parts

    GTIN and serial numbers on components and spare parts.

  • Retail 2D codes

    Products carrying batch and expiry for fresh-food traceability at the checkout.

Printing GS1 DataMatrix that scans first time

Small details that make the difference between a code people ignore and one they scan.

  • For EU FMD packs, encode (01) product code, (21) serial, (10) batch and (17) expiry, plus any national reimbursement number.

  • Print the same data in human-readable form next to the code, as most regulations require.

  • Put fixed-length AIs first to keep the code as small as possible.

  • Use the bulk generator to create a unique serial number for every pack in a batch.

  • Verify print quality on the production line; GS1 recommends a minimum ISO grade of 1.5 (C).

GS1 DataMatrix questions, answered

What is the difference between Data Matrix and GS1 DataMatrix?

GS1 DataMatrix starts with an FNC1 character and contains GS1 Application Identifiers, so scanners can separate the GTIN, batch, expiry and serial. Plain Data Matrix holds free text.

Is GS1 DataMatrix required for medicines?

In the EU, prescription medicines must carry a 2D Data Matrix with product code, serial, batch and expiry under the Falsified Medicines Directive. Many other countries have similar rules.

How do I type the data?

Write each AI in brackets followed by its value, such as (01)09521234543213(17)261231(10)ABC123. The brackets are not encoded; separators are added automatically.

Where do I get a GTIN?

From your local GS1 member organisation. StylQR encodes GTINs but does not issue them.

Every other barcode type

Retail, logistics, 2D, healthcare and postal symbologies — validated with the official rules and ready to print.

The barcodes people make most.