---
title: "Royal Mail Mailmark Generator – Free 2D Mailmark Code"
description: "Free Royal Mail Mailmark 2D barcode generator. Encode formatted Mailmark data in a Data Matrix code (types 7, 9 and 29). Download PNG, SVG or PDF files."
url: https://barcodejar.com/royal-mail-mailmark-generator
source: BarcodeJar (free barcode tools)
---

# Royal Mail Mailmark Generator

Generate a Royal Mail 2D Mailmark barcode from formatted Mailmark data. The output is a Data Matrix code in the Mailmark layout, as used on UK business mail.

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

## How to create a Royal Mail Mailmark barcode

1.  Enter your data in the box above. Enter at least 45 characters of fixed-format Mailmark data starting with "JGB ", padded with spaces where fields are empty, optionally followed by your own customer data. This page makes the rectangular type 29 (16×48) symbol.
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 Royal Mail Mailmark barcode?

**Royal Mail Mailmark** is the barcode system Royal Mail uses for business mail in the UK. It identifies each item, the sender and the service, and allows tracking through the network. It comes in a 4-state linear form and a 2D form; this generator makes the **2D Mailmark**, a [Data Matrix](https://barcodejar.com/data-matrix-generator) code in one of three sizes: type 7 (24×24), type 9 (32×32) or type 29 (16×48 rectangular).

The 2D Mailmark data is a fixed-format string: the UPU country identifier "JGB ", the information type, version and class, a 7-digit Supply Chain ID, an 8-digit Item ID, the destination postcode and delivery point suffix, a return-to-sender flag and postcode, and reserved space, for 45 characters in total. Optional customer content can follow. The exact field layout is set out in Royal Mail's Mailmark specifications, and your Supply Chain ID comes from Royal Mail.

## Where Royal Mail Mailmark is used

-   UK business and advertising mail with Mailmark discounts
-   Tracking individual letters through the Royal Mail network
-   Mail produced by printers and mailing houses
-   Testing Mailmark layouts

## Royal Mail Mailmark specifications

-   **Type:** 2D Data Matrix (ECC 200)
-   **Sizes:** Type 7 (24×24), type 9 (32×32), type 29 (16×48)
-   **Data:** At least 45 characters of fixed-format Mailmark data
-   **Prefix:** "JGB " (UPU country identifier)
-   **Error correction:** Reed-Solomon, built in
-   **Issuer:** Royal Mail

## Tips for a barcode that scans first time

-   Get your Supply Chain ID and the Mailmark technical specification from Royal Mail before producing live mail.
-   Keep every field at its fixed length, padding with spaces where a field is not used.
-   Make each Item ID unique for the period Royal Mail requires, so items can be tracked.
-   Test print and scan before sending a mailing to Royal Mail.

## Frequently asked questions

### What is a Mailmark barcode?

Mailmark is the Royal Mail barcode for business mail. It identifies the sender, the item and the service, and lets Royal Mail and the sender track each item.

### Does this make the 4-state or 2D Mailmark?

This generator makes the 2D Mailmark, a Data Matrix code. The 4-state linear Mailmark is a separate format.

### What does "JGB " mean at the start?

It is the UPU country identifier for Great Britain, including the trailing space. Every 2D Mailmark data string starts with it.

### Why does it say my data is too short?

The fixed part of the Mailmark string must be at least 45 characters. Pad unused fields with spaces so each field keeps its set length.

### Where do I get a Supply Chain ID?

Royal Mail issues Supply Chain IDs to mailers and mailing houses using Mailmark. Contact Royal Mail or your mailing house.

### Is Mailmark replacing RM4SCC?

For business mail, yes. Royal Mail has moved its business mail services to Mailmark. The older [RM4SCC](https://barcodejar.com/royal-mail-barcode-generator) is still found on legacy mail.

## Related free tools

[![Royal Mail 4 State Customer Code Generator example](/thumbs/royalmail.svg)**Royal Mail 4 State Customer Code Generator**Create Royal Mail 4 State Customer Code barcodes free. PNG, SVG, PDF.](https://barcodejar.com/royal-mail-barcode-generator)[![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 Generator example](/thumbs/datamatrixrectangular.svg)**Data Matrix Rectangular Generator**Create Data Matrix Rectangular barcodes free. PNG, SVG, PDF.](https://barcodejar.com/rectangular-data-matrix-generator)[![USPS Intelligent Mail Generator example](/thumbs/onecode.svg)**USPS Intelligent Mail Generator**Create USPS Intelligent Mail barcodes free. PNG, SVG, PDF.](https://barcodejar.com/intelligent-mail-barcode-generator)[![Royal Dutch TPG Post KIX Generator example](/thumbs/kix.svg)**Royal Dutch TPG Post KIX Generator**Create Royal Dutch TPG Post KIX barcodes free. PNG, SVG, PDF.](https://barcodejar.com/kix-code-generator)[**Barcode Label Generator**Print barcodes on Avery and other label sheets as PDF.](https://barcodejar.com/barcode-label-generator)
