Rectangular Data Matrix Generator

Create a rectangular Data Matrix code that fits narrow labels, cable tags and the edges of parts. The smallest rectangle that fits your data is picked automatically.

  • 100% free
  • No sign-up
  • No watermark
  • Works offline in your browser

Any text. Rectangular sizes hold up to 98 digits, 72 alphanumeric characters or 47 bytes, so keep the data short.

Customize size, color & style
Make many

How to create a Data Matrix Rectangular barcode

  1. Enter your data in the box above. Any text. Rectangular sizes hold up to 98 digits, 72 alphanumeric characters or 47 bytes, so keep the data short.
  2. The barcode updates live as you type. Open Customize to change the bar height, colors, rotation or quiet zone.
  3. Click Download PNG for labels and documents, or SVG / PDF for print and packaging design.
  4. Test it with our online barcode scanner before you print a large run.

What is a Data Matrix Rectangular barcode?

A rectangular Data Matrix is an ECC 200 Data Matrix printed as a rectangle rather than a square. ISO/IEC 16022 defines six rectangular sizes, from 8 × 18 to 16 × 48 modules.

The rectangle is useful when the space is long and thin, such as the edge of a circuit board, a cable marker, a test tube or a narrow label. It reads with the same scanners as square Data Matrix. If you need more rectangular sizes, see DMRE.

Where Data Matrix Rectangular is used

  • Edges of printed circuit boards
  • Cable and wire markers
  • Test tubes, vials and lab samples
  • Narrow labels on electronic components

Data Matrix Rectangular specifications

Type2D matrix, rectangular
Sizes8×18, 8×32, 12×26, 12×36, 16×36, 16×48 modules
Capacity (max)98 digits, 72 alphanumeric characters or 47 bytes
Error correctionReed-Solomon (ECC 200)
Quiet zoneAt least 1 module on all sides
StandardISO/IEC 16022

Tips for a barcode that scans first time

  • Keep the data short. The 16 × 48 rectangle is the largest, and longer data needs a square code.
  • Check that your scanner reads rectangular Data Matrix. Almost all 2D imagers do.
  • For GS1 product data in a rectangle use the GS1 rectangular Data Matrix.

Frequently asked questions

What sizes can a rectangular Data Matrix be?

ISO/IEC 16022 defines six: 8×18, 8×32, 12×26, 12×36, 16×36 and 16×48 modules. The generator picks the smallest one that holds your data.

How much can a rectangular Data Matrix hold?

The largest, 16 × 48, holds up to 98 digits, 72 alphanumeric characters or 47 bytes. For more data use a square Data Matrix.

Do scanners read rectangular Data Matrix?

Yes. Any scanner that reads Data Matrix ECC 200 reads the rectangular sizes too.

What is DMRE?

DMRE (Data Matrix Rectangular Extension, ISO/IEC 21471) adds 18 more rectangular sizes, up to 26 × 64. It is useful for longer data in a narrow space, but older scanners may not support it. Try the DMRE generator.

Square or rectangular: which should I use?

Use square for the best scan reliability and capacity. Use rectangular only when the space is long and narrow.

Can it hold a GS1 GTIN and serial number?

Yes, if you use the GS1 rectangular Data Matrix, which adds the FNC1 and Application Identifiers that GS1 requires.

Related free tools