Skip to content
StylQR home

Rectangular Data Matrix Generator

Create rectangular Data Matrix codes that fit on strips where a square code will not: cable markers, test tubes, PCB edges and shelf rails. Enter your text or serial number and download a print-ready ECC 200 symbol.

  • 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.

Any text.

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 Data Matrix Rectangular?

Rectangular Data Matrix is the same ECC 200 code as square Data Matrix, laid out in a wide, short grid. ISO/IEC 16022 defines six rectangular sizes — 8 × 18, 8 × 32, 12 × 26, 12 × 36, 16 × 36 and 16 × 48 modules — each with the familiar L-shaped finder on two edges and a clock track on the other two.

The smallest size is just 8 modules high, so a short code can be printed on a band a few millimetres tall. The example 1234567890 fits the 8 × 18 symbol, because digits are packed two per codeword. The largest standard size holds up to 98 digits, 72 alphanumeric characters or 47 bytes.

Every size carries Reed–Solomon error correction, so the code still reads with some damage. For longer data in a flat shape, the Data Matrix Rectangular Extension (DMRE, ISO/IEC 21471) adds sizes such as 8 × 64 and 26 × 64; switch it on with the dmre advanced option.

Specification

Data Matrix Rectangular at a glance

Type
2D matrix (Data Matrix ECC 200, rectangular)
Characters
Full ASCII and binary data
Capacity
Up to 98 digits, 72 alphanumeric or 47 bytes (16 × 48)
Sizes
8 × 18 to 16 × 48 modules; DMRE up to 26 × 64
Error correction
Reed–Solomon, fixed per size
Nominal module size
0.5 mm default
Quiet zone
1 module on all sides
Standard
ISO/IEC 16022; DMRE in ISO/IEC 21471

How to create a Data Matrix Rectangular barcode

Four steps from data to a print-ready file.

  1. 1

    Step 1

    Enter your Data Matrix Rectangular data. Any text.

  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 Data Matrix Rectangular is used

Real-world applications for this symbology.

  • Cable and wire markers

    Flag labels and heat-shrink sleeves where only a thin strip is visible.

  • Lab tubes and vials

    Sample IDs printed along the side of tubes, slides and small vials.

  • Circuit boards

    Serial numbers along the edge of a PCB or on narrow components.

  • Shelf-edge labels

    Location or item codes on shelf rails and bin fronts with little height.

  • Pharmaceutical packs

    Fitting a 2D code onto a narrow carton flap or blister edge.

Printing Data Matrix Rectangular that scans first time

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

  • Force a particular shape with the advanced option version=12x36 (or any other rectangular size) so every label in a run is identical.

  • Keep data short: the rectangular sizes top out quickly, and a square Data Matrix holds far more.

  • Check that your scanner supports DMRE before using the dmre option — older readers only know the six original sizes.

  • Run the long side of the code along the length of a tube or cable, not around it, so it does not bend out of view.

  • Press Test scan to confirm the code reads before you print a batch.

Data Matrix Rectangular questions, answered

When should I use rectangular instead of square Data Matrix?

When the space is much wider than it is tall, such as a cable tag or tube. For the same data, a square code is usually more compact overall.

Do scanners read rectangular Data Matrix?

Yes. The six ISO/IEC 16022 rectangular sizes are part of ECC 200, so any 2D imager that reads Data Matrix reads them. DMRE sizes need a newer reader.

What is DMRE?

Data Matrix Rectangular Extension, standardised as ISO/IEC 21471. It adds extra rectangular sizes, especially longer 8-, 12- and 16-row codes, for more data in a flat shape.

Can I use GS1 data in a rectangular code?

Use the GS1 DataMatrix type for GTIN, batch and expiry data, and add version=16x48 (or another rectangular size) in the advanced options.

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.