QRCodeChamp Logo
File Sharing

Postal Barcode Generator

Postal and courier codes: USPS, Royal Mail, Australia Post, PostNL, DPD and more.

USPS Intelligent Mail (IMb)

31 characters
Valid USPS Intelligent Mail (IMb)Allowed: 20, 25, 29 or 31 digits

Live preview

USPS Intelligent Mail (IMb) barcode for 0123456709498765432101234567891
Download format

Postal barcodes help mail carriers sort letters and track parcels. Many are 4-state codes, where each bar is full height, short, or extends only up or only down, instead of using bar widths. This category covers codes for the US, UK, Australia, Japan, the Netherlands and Germany, plus international tracking numbers.

Use the barcode your postal operator or carrier asks for, with the data format they give you. For US letters use Intelligent Mail (IMb), for US parcels IMpb, and for international registered mail a UPU S10 number. POSTNET and PLANET are older US codes kept for legacy systems.

14 barcode types in Postal Codes

Which Postal Codes barcode should I use?

Barcode typeAllowed dataBest for
USPS Intelligent Mail (IMb)20, 25, 29 or 31 digitsUS letters & flats
USPS POSTNET5/9/11 digitsUS mail (legacy)
USPS PLANET11/13 digitsUS mail tracking (legacy)
USPS IM Package (IMpb)AI 420 + 92 routingUS parcels
Royal Mail 4-State (RM4SCC)A-Z 0-9UK mail
Royal Mail Mailmark 2DMailmark data stringUK business mail
Australia Post 4-StateFCC + DPID (+ customer info)Australian mail
Japan Post Customer CodePostcode + addressJapanese mail
KIX (PostNL)A-Z 0-9Netherlands mail
Deutsche Post Identcode11 digitsGerman parcels
Deutsche Post Leitcode13 digitsGerman parcels routing
DAFT (custom 4-state)D A F T lettersCustom 4-state
UPU S10 (intl. tracking)2 letters + 8 digits + check + countryInternational registered mail
DPD Parcel LabelDPD 28-char formatDPD parcels

How 4-State Postal Barcodes Encode Data

Most mail barcodes use bar height instead of width. Each bar is one of four states: full height, ascender (top half plus the middle), descender (bottom half plus the middle) or tracker (only the short middle part). Each bar therefore carries two bits, which keeps the code short enough to fit an address block.

POSTNET and PLANET are older two-state codes that use only tall and short bars. DAFT lets you enter the four states directly as the letters D, A, F and T, for systems that define their own 4-state content.

Postal Barcodes by Country and Carrier

  • United States: Intelligent Mail barcode (IMb) on letters and flats, 65 bars with a 20-digit tracking code and a routing ZIP code of up to 11 digits; IMpb on parcels, printed as GS1-128 with AI (420) for the destination ZIP
  • United Kingdom: Royal Mail 4-State Customer Code (RM4SCC) for postcode and delivery point, and Mailmark, including the 2D Data Matrix version
  • Australia: Australia Post 4-State with an 8-digit Delivery Point Identifier and Reed-Solomon error correction
  • Japan: Japan Post Customer Barcode with postal code and address number
  • Netherlands: KIX for PostNL, based on RM4SCC without the check character, encoding postcode and house number
  • Germany: Deutsche Post Identcode and Leitcode, both based on Interleaved 2 of 5

International and Courier Tracking Codes

UPU S10 numbers identify international registered and tracked items: two service letters, eight serial digits, a check digit calculated with fixed weights (8, 6, 4, 2, 3, 5, 9, 7) modulo 11, and a two-letter ISO country code, such as RR123456785GB. They are printed as Code 128.

Courier labels such as DPD use their own structured Code 128 strings. The data comes from the carrier's system or label software; generating a code with a made-up number will not register a shipment.

Printing Postal Barcodes to Spec

Unlike EAN or Code 128, postal 4-state codes have fixed bar pitch and bar heights set by the postal operator. Do not stretch them to fill a space; set the size to match the operator's specification and check it with a ruler on a printed proof. Keep the clear zone around the code free of text and graphics, and make sure it shows fully through any envelope window.

QRCodeChamp can export each code as a vector SVG, EPS or PDF, which keeps bar heights exact when you place the code in mail merge or label software.

Common Postal Barcode Mistakes

  • Creating an IMb without a Mailer ID from USPS, or reusing serial numbers within the period USPS requires them to be unique
  • Using POSTNET or PLANET, which no longer qualify for USPS automation prices
  • Encoding the wrong delivery point data for RM4SCC or KIX, so mail sorts to the wrong address
  • Printing a UPU S10 number with a wrong check digit
  • Scaling a 4-state code so the bars fall outside the operator's height tolerance

How to Create a Barcode in 3 Steps

STEP : 1

Choose a barcode type

Select a category on the left (e.g. Linear Codes), then the exact type like Code-128.

STEP : 2

Enter data & customise

Type your data — we check it live and add check digits. Adjust size, font and colors.

STEP : 3

Download or print

Get PNG, JPG, SVG, PDF or EPS, or print a full sheet of labels in one click.

Why Use QRCodeChamp Barcode Generator

125+ barcode types

Linear, 2D, GS1, postal, healthcare and payment codes.

Live validation

Friendly errors with one-click fixes and automatic check digits.

Print-ready PDF

Exact mm sizes, label sheets (Avery, A4, 4×6 thermal).

Bulk barcodes

Paste a list or generate number sequences.

Choose the Type of Barcode You Need

Not sure which barcode to use? Start with what you need it for — we’ll pick the right type.

Postal Codes FAQs

A 4-state barcode uses four bar shapes (full, ascender, descender and tracker) instead of different bar widths. Postal operators use it because it packs routing data into a short, low-height strip.

Yes, if you have a Mailer ID and follow USPS rules for the tracking code and serial numbers. The generator draws the barcode from your data; USPS assigns the Mailer ID and decides eligibility for discounts.

IMb is a 4-state barcode for letters and flats. IMpb is the package barcode for parcels, printed as GS1-128 with the destination ZIP code and a tracking number.

The eight serial digits are multiplied by 8, 6, 4, 2, 3, 5, 9 and 7, summed and divided by 11. The check digit is 11 minus the remainder, with 10 becoming 0 and 11 becoming 5.

KIX uses the same bar patterns as RM4SCC but has no start, stop or check characters. It encodes a Dutch postcode, house number and suffix for PostNL.