How to create a Royal Mail Mailmark barcode
- 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.
- The barcode updates live as you type. Open Customize to change the bar height, colors, rotation or quiet zone.
- Click Download PNG for labels and documents, or SVG / PDF for print and packaging design.
- Test it with our online 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 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 is still found on legacy mail.