Intelligent Mail barcode generator

Make USPS Intelligent Mail barcodes (IMb) for letters and flats. Enter the 20-digit tracking code and the delivery ZIP, and download the 65-bar barcode at the size USPS specifies.

20-digit tracking code, then the delivery ZIP: 5, 9 or 11 digits (or none)

Change the bar width, height and text here. The barcode on the left is drawn at the size it will print, so at 100% zoom it should match a ruler held to the screen.

PNG and JPG files store their resolution, so Word, Canva and label software place them at this size.

Colours

Dark bars on a light background scan best. Most scanners use red light, so red, orange and yellow bars read as blank.

What is the 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 shapes: full height, ascending, descending or a short tracker. Mailers need it for automation prices, and it replaced the older POSTNET barcode in 2013.

Bars65, each in one of 4 states
Data20-digit tracking code + 0, 5, 9 or 11-digit routing code
LengthAbout 3 inches; USPS-B-3200 sets the exact tolerances
Read byUSPS mail processing equipment (not phone cameras)

What goes in the 31 digits

FieldDigitsWhat it is
Barcode ID2Usually 00; the second digit must be 0–4
Service Type ID3The mail class and services, like First-Class with tracing
Mailer ID6 or 9Assigned to you by USPS; 9 digits if it starts with 9
Serial number9 or 6Your number for this mailpiece; fills the tracking code to 20 digits
Routing code0, 5, 9 or 11The delivery ZIP, ZIP+4, or ZIP+4 plus delivery point

You get a Mailer ID from the USPS Business Customer Gateway. For Full-Service mailings, serial numbers must stay unique for 45 days.

How to make one

  1. Type the 20-digit tracking code, then the routing ZIP. Spaces and dashes are ignored. The tool checks the length and splits the number into its fields so you can check it.
  2. Download SVG or PDF and place it on the mailpiece without stretching. The size is fixed by USPS, so there's no bar width to choose.
  3. Follow the USPS placement rules for your mail class, and print with good contrast on a light background.

Phone cameras and the barcode checker can't read the 4-state Intelligent Mail barcode; it's designed for USPS sorting machines. USPS offers its own tools for testing IMb quality.

Pallet racking in a distribution warehouse
Pallet racking in a distribution warehouse.

Questions

  • Through the USPS Business Customer Gateway. USPS assigns 6-digit IDs to large mailers and 9-digit IDs to everyone else.

  • Only to claim automation or Full-Service prices, or to track letters and flats through the mailstream.

  • No. It's a 4-state code read by USPS machines, not a code phone cameras can decode.