---
title: "Rectangular Data Matrix Generator – Free PNG & SVG"
description: "Free rectangular Data Matrix generator. Create narrow 8×18 to 16×48 ECC 200 codes for small labels and curved parts. Download PNG, SVG, JPG or PDF instantly."
url: https://barcodejar.com/rectangular-data-matrix-generator
source: BarcodeJar (free barcode tools)
---

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

_Interactive tool: open https://barcodejar.com/rectangular-data-matrix-generator to use it in your browser. It is free with no sign-up._

## 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](https://barcodejar.com/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](https://barcodejar.com/data-matrix-generator) 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](https://barcodejar.com/data-matrix-rectangular-extension-barcode-generator).

## 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

-   **Type:** 2D matrix, rectangular
-   **Sizes:** 8×18, 8×32, 12×26, 12×36, 16×36, 16×48 modules
-   **Capacity (max):** 98 digits, 72 alphanumeric characters or 47 bytes
-   **Error correction:** Reed-Solomon (ECC 200)
-   **Quiet zone:** At least 1 module on all sides
-   **Standard:** ISO/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](https://barcodejar.com/gs1-data-matrix-rectangular-barcode-generator).

## 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](https://barcodejar.com/data-matrix-generator).

### 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](https://barcodejar.com/data-matrix-rectangular-extension-barcode-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](https://barcodejar.com/gs1-data-matrix-rectangular-barcode-generator), which adds the FNC1 and Application Identifiers that GS1 requires.

## Related free tools

[![Data Matrix Generator example](/thumbs/datamatrix.svg)**Data Matrix Generator**Create Data Matrix barcodes free. PNG, SVG, PDF.](https://barcodejar.com/data-matrix-generator)[![Data Matrix Rectangular Extension Generator example](/thumbs/datamatrixrectangularextension.svg)**Data Matrix Rectangular Extension Generator**Create Data Matrix Rectangular Extension barcodes free. PNG, SVG, PDF.](https://barcodejar.com/data-matrix-rectangular-extension-barcode-generator)[![GS1 Data Matrix Rectangular Generator example](/thumbs/gs1datamatrixrectangular.svg)**GS1 Data Matrix Rectangular Generator**Create GS1 Data Matrix Rectangular barcodes free. PNG, SVG, PDF.](https://barcodejar.com/gs1-data-matrix-rectangular-barcode-generator)[![GS1 Data Matrix Generator example](/thumbs/gs1datamatrix.svg)**GS1 Data Matrix Generator**Create GS1 Data Matrix barcodes free. PNG, SVG, PDF.](https://barcodejar.com/gs1-datamatrix-generator)[![MicroPDF417 Generator example](/thumbs/micropdf417.svg)**MicroPDF417 Generator**Create MicroPDF417 barcodes free. PNG, SVG, PDF.](https://barcodejar.com/micropdf417-generator)[![Rectangular Micro QR Code (rMQR) Generator example](/thumbs/rectangularmicroqrcode.svg)**Rectangular Micro QR Code (rMQR) Generator**Create Rectangular Micro QR Code (rMQR) barcodes free. PNG, SVG, PDF.](https://barcodejar.com/rectangular-micro-qr-code-generator)[**Online Barcode Scanner**Scan any barcode with your phone or webcam camera.](https://barcodejar.com/barcode-scanner)
