Intelligent Mail Barcode Generator

Create a USPS Intelligent Mail barcode (IMb) from your 20-digit tracking code plus a 0, 5, 9 or 11-digit ZIP routing code. Type the digits in one run and download a print-ready barcode.

  • 100% free
  • No sign-up
  • No watermark
  • Works offline in your browser

Type the 20-digit tracking code followed directly by the routing code (ZIP, ZIP+4 or ZIP+4+delivery point), digits only with no spaces or dashes: 20, 25, 29 or 31 digits in total. No check digit to add; error correction is built in.

Customize size, color & style
Make many

How to create a USPS Intelligent Mail barcode

  1. Enter your data in the box above. Type the 20-digit tracking code followed directly by the routing code (ZIP, ZIP+4 or ZIP+4+delivery point), digits only with no spaces or dashes: 20, 25, 29 or 31 digits in total. No check digit to add; error correction is built in.
  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 before you print a large run.

What is a USPS Intelligent Mail barcode?

The Intelligent Mail barcode (IMb) is the 65-bar, 4-state barcode the United States Postal Service uses to sort and track letters and flats. Each bar is one of four types: full, ascender, descender or tracker. It replaced the older POSTNET and PLANET barcodes, and it is required for automation prices on letters and flats. It is also known as OneCode or USPS4CB.

The IMb encodes up to 31 digits in two parts:

FieldDigitsWhat it is
Barcode ID2Presort identification; usually 00. The second digit must be 0–4.
Service Type ID (STID)3Mail class and services, such as First-Class Mail with IMb Tracing or address correction
Mailer ID (MID)6 or 9Assigned by USPS to the mail owner or mail service provider
Serial number9 or 6Identifies the mail piece (9 digits with a 6-digit MID, 6 with a 9-digit MID)
Routing code0, 5, 9 or 11Delivery ZIP Code, ZIP+4 or ZIP+4 plus 2-digit delivery point

The first 20 digits (Barcode ID, STID, Mailer ID and serial) form the tracking code. Error correction is calculated and built into the bars automatically.

Where USPS Intelligent Mail is used

  • Letters and flats mailed at USPS automation prices
  • Full-Service IMb mailings with tracking (Informed Visibility)
  • Business reply and courtesy reply mail
  • Tracking outbound bills, statements and direct mail
  • Address correction services (ACS) via the STID

USPS Intelligent Mail specifications

Type4-state postal barcode, 65 bars
CharactersDigits 0–9 only
Length20-digit tracking code + 0, 5, 9 or 11-digit routing code
Check11-bit CRC frame check, built in
Bar pitch20 to 24 bars per inch
Overall length2.667 to 3.225 in (about 67.7 to 81.9 mm)
Other namesIMb, OneCode, USPS4CB
StandardUSPS-B-3200

Tips for a barcode that scans first time

  • You need a Mailer ID from USPS (through the Business Customer Gateway) to make an IMb for real mailings.
  • Make every serial number unique within 45 days for Full-Service mailings so each piece can be tracked.
  • Print at actual size. Scaling changes the bar pitch, which must stay within USPS limits.
  • Use the full 11-digit routing code (ZIP+4 + delivery point) when you have it, for the best sortation.
  • Do not put spaces or dashes between the tracking and routing codes.

Frequently asked questions

What is an Intelligent Mail barcode?

The Intelligent Mail barcode (IMb) is the USPS 4-state barcode printed on letters and flats. It holds a 20-digit tracking code and up to 11 digits of ZIP routing information, and it is required for automation postage prices.

How do I make an Intelligent Mail barcode?

Build the 20-digit tracking code from a Barcode ID (usually 00), a 3-digit Service Type ID, your USPS Mailer ID and a serial number, then add the ZIP, ZIP+4 or 11-digit delivery point code. Type all the digits together in the box above and download the barcode.

Where do I get a Mailer ID?

Mailer IDs are assigned free by USPS through the Business Customer Gateway. High-volume mailers can get a 6-digit MID; others get a 9-digit MID.

What is the STID in an IMb?

The Service Type ID is a 3-digit code that tells USPS the mail class and which services you want, such as tracing or address correction. USPS publishes the STID table; pick the code that matches your mailing.

Does the IMb replace POSTNET?

Yes. Since January 2013 USPS has required the Intelligent Mail barcode for automation prices, and POSTNET and PLANET are no longer accepted for those discounts.

Can I use the IMb for packages?

No. The IMb is for letters and flats. Parcels use the Intelligent Mail Package Barcode (IMpb), which is a GS1-128 barcode.

Related free tools