Learn · How They Work

How Barcoded Stamps Work

From the DataMatrix code on the stamp to what it tells a collector: a step-by-step guide to how modern GB barcoded stamps work.

The Journey of a Barcode Stamp

01

Stamp is printed with a unique DataMatrix code

During production, each stamp is assigned a unique identifier. This is encoded into a DataMatrix barcode — a grid of black and white cells — and printed onto the stamp alongside the design.

02

The barcode encodes a JGB string

The DataMatrix code contains a "JGB string" — a sequence of characters that encodes the stamp's format, class, origin, supplier, pane and stamp number, notional value and barcode generation date, plus further characters used by Royal Mail.

03

Collectors can decode stamps with the app

The Modern GB Stamp Decoder app reads the barcode with your phone's camera and shows the value, colour, issue, print date and origin in plain collector terms, with the raw barcode data there if you want it.

The DataMatrix Barcode

The DataMatrix code on a barcoded stamp is a two-dimensional matrix barcode — a grid of black and white cells arranged in a square or rectangular pattern. Unlike a traditional linear barcode (the kind found on supermarket products), a DataMatrix code can encode a much larger amount of data in a smaller physical space.

On Royal Mail barcoded stamps, the DataMatrix code is typically around 5–8mm square, printed on the right-hand side of the stamp. Despite its small size, it encodes a substantial amount of information — including the unique identifier that makes each stamp individual.

What is a JGB string?

A JGB string is the sequence of characters encoded within the DataMatrix barcode on a Royal Mail stamp. It begins with the letters "JGB" followed by a series of alphanumeric characters that encode production and security data. The Modern GB Stamp Decoder App can read and interpret these strings.

What Information Does the Barcode Contain?

The DataMatrix barcode on each stamp encodes several categories of information:

  • Format and class — The kind of stamp and its postage class or value.
  • Origin — Where it came from: booklet, sheet, pane or miniature sheet.
  • Supplier, pane and stamp number — Together these make each stamp's barcode unique.
  • Notional value and barcode generation date — The tariff at the time of printing and the date encoded in the barcode. The barcode does not record the design or the issue date.
  • Further data — Further characters used by Royal Mail's own systems.