Loading Barcode Mint…

Barcode Mint

Free Online Barcode & QR Code Generator

2D Code

Royal Mail Mailmark 2D Generator

Create a scannable Royal Mail Mailmark 2D barcode for UK letters and large letters that need item-level tracking.

Open the generator ↓
Preview
100%

01

Symbology

Code 128
All 106 →
02

Data

03

Properties

Properties

2
100
18
10
04

Bulk & batch generate

🔒 Pro

Turn a CSV — or a numbered sequence — into hundreds of barcodes at once, exported as a ZIP of images or a print-ready PDF sheet. Launching with Pro.

Launching soon

Pricing — join the early list

The browser generator stays free forever. Paid plans are for teams who need bulk output and developers who need the REST API at scale — commercial license included. Tell us what you'd use; early-list members get first access and launch pricing.

For the generator

Free $0/forever

What you're using right now

  • 100+ barcode & QR symbologies
  • Live preview & customization
  • PNG & SVG export, no login
  • Copy to clipboard
Available now ✓

For developers — REST API

Priced by requests. Commercial license and self-serve keys included; usage dashboard at launch.

Small $19/mo$190/yr 500 req / mo
Large $499/mo$4,990/yr 50K req / mo
Enterprise Custom Contact us

Get early access + launch pricing

Which features would you actually use? (optional — it helps us decide what to build first)

No spam — one email when it launches. The free tool isn't going anywhere.

What is Royal Mail Mailmark 2D?

Royal Mail Mailmark 2D is a Data Matrix barcode that Royal Mail uses to sort, route and track letters and large letters across the UK postal network. It replaced the older 4-state Mailmark barcode on many mail streams because a 2D Data Matrix can hold far more information in the same footprint and stays readable even with minor print defects. Mailmark 2D is the format required for mailings that need full item-level track-and-trace, such as Mailmark Tracked and Mailmark Tracked 24/48 services.

Unlike a plain Data Matrix generated for general use, a Mailmark 2D symbol carries a strictly defined data structure that Royal Mail's sorting machinery expects. Getting that structure wrong means the mail item either gets rejected at induction or routed incorrectly, so mailers work from Royal Mail's published Mailmark specification rather than free-text input.

How the data is structured

A Mailmark 2D payload is built from fixed and variable fields defined by Royal Mail and the Universal Postal Union (UPU), including:

Because these fields are position- and length-defined, Mailmark 2D data is typically generated by print/mailing software that already holds the customer's Royal Mail licence details, rather than typed by hand.

Technical specifications

Royal Mail Mailmark 2D is carried in a Data Matrix symbol (ISO/IEC 16022, ECC 200 Reed–Solomon error correction), encoding a fixed-format record defined jointly by Royal Mail and the Universal Postal Union's S25 Format Control Code standard. The payload mixes numeric and alphanumeric fields — UPU FCC, Mailmark barcode ID, version ID, class, supply chain ID, item ID, and postcode/delivery point data — each with a strictly defined position and length rather than free-text input. Royal Mail specifies minimum X-dimension (module size) and quiet-zone requirements to ensure reliable reads at the sortation speeds used by its automated equipment; there is no separate human-readable check digit exposed to mailers, since data integrity relies on the Data Matrix's own error correction plus Royal Mail's back-end validation of the supply chain ID and item ID against the mailer's registered licence.

Where Mailmark 2D is used

Mailmark 2D appears almost exclusively in UK business mail production, including:

You won't typically see Mailmark 2D on international mail leaving the UK, or on mail handled outside Royal Mail's network — it is specific to UK domestic sortation and Royal Mail's own tracking infrastructure.

How to generate a Mailmark 2D barcode in Barcode Mint

Barcode Mint renders the Mailmark 2D symbol as a Data Matrix once you supply a correctly formatted payload string. To create one:

Always validate a sample run against Royal Mail's Mailmark test tools or your mailing software's built-in validator before a live mailing — an incorrectly structured Mailmark 2D symbol can cause an entire batch to be rejected at the mail centre.

Print and scan best practices

Mailmark 2D is read by high-speed optical sorting equipment, so print quality matters more than it would for a barcode scanned by hand. Keep contrast high (black symbol on white or light background), maintain the specified quiet zone around the Data Matrix, and avoid printing over folds, perforations or envelope windows where distortion or occlusion could prevent a clean read. Test print samples at your actual production print resolution and stock before running a full mailing, since low-resolution or low-DPI printers can blur the fine modules of a dense Data Matrix symbol.

Mailmark 2D vs related postal codes

Compared with Royal Mail 4-State (RM4SCC) and Mailmark 4-State, which encode a limited set of height-modulated bars carrying mainly postcode and a short reference, Mailmark 2D's Data Matrix format holds substantially more structured data — full item-level IDs, supply chain identifiers, and class information — in support of Mailmark's item-level tracking services. Compared with a generic Data Matrix generated for general use, a Mailmark 2D symbol looks identical as a barcode but is meaningless to Royal Mail's sortation systems unless its payload follows the exact UPU/Royal Mail field structure and comes from a mailer with a valid Mailmark licence and supply chain ID.

Common uses

Frequently asked questions

What is a Royal Mail Mailmark 2D generator used for?

A royal mail mailmark 2d generator produces the Data Matrix barcode Royal Mail uses to sort, route and track UK letters and large letters, encoding fields like mail class, supply chain ID and item serial number.

Is Mailmark 2D the same as Mailmark 4-state?
Both are Royal Mail Mailmark formats, but Mailmark 4-state is a linear height-modulated barcode with limited data capacity, while Mailmark 2D is a Data Matrix that can carry richer tracking data, including full item-level identifiers.
Can I create a Mailmark 2D barcode without a Royal Mail licence?

You can render the Data Matrix symbol itself with any correctly formatted data string, but to use it on live mail with Mailmark postage and tracking you need a Royal Mail Mailmark licence and an approved supply chain ID.

What data goes into a Mailmark 2D barcode?
It includes the UPU Format Control Code, Mailmark version and barcode ID, mail class, supply chain ID, a unique item ID, and postcode/delivery point data used for automated sortation.
Can Barcode Mint batch-generate Mailmark 2D barcodes for a mailing run?

Yes — use the bulk CSV to ZIP/PDF tool to generate a unique Mailmark 2D symbol per row, which is how large transactional and direct mail runs assign a distinct item ID to every piece.

Related barcode types

Browse all 106 barcode & QR types →