Intelligent Mail barcode generator

The Intelligent Mail barcode is the row of tall and short bars along the bottom of a US letter. Each of its 65 bars has one of four states (full, ascender, descender or tracker), and together they carry up to 31 digits: a 20-digit tracking code that you build and a delivery ZIP of 0, 5, 9 or 11 digits. Type the digits in that order, with spaces or dashes if they help you read them. Before drawing anything, the generator checks the length and the one digit USPS restricts.

750 × 77 px in the PNG

Size units

Specification

Character set
digits
Length
20, 25, 29 or 31 digits
Check digit
an 11-bit CRC over the whole number, added by the encoder

Where it is used

  • Letters and flats mailed at automation prices, where the barcode is a condition of the discount
  • Following individual mail pieces through USPS processing, with each piece carrying a unique serial number and the scans reported back through Informed Visibility
  • Business reply envelopes printed in advance, where the barcode on the envelope is the mailer's own

How it compares

Against POSTNET: POSTNET carried only the ZIP code in tall and short bars and stopped qualifying for automation prices in January 2013. The Intelligent Mail barcode carries the ZIP and the tracking code in one symbol, which is why it needs four bar states instead of two. Against a parcel label: the Intelligent Mail package barcode on a parcel is a GS1-128 with its own application identifiers, read by a different system. Letters and flats take the 4-state bars; parcels don't. Against the digits printed under it: they're optional and for people only, since USPS equipment reads the bars.

Common mistakes

  • Making up a Mailer ID. The six or nine digits after the Service Type ID are issued by USPS to your account. A barcode with an invented or borrowed MID prints and scans, but the mail doesn't qualify for the price you're paying, and the tracking data goes to whoever owns that number.
  • Reusing serial numbers. For Full-Service mail each piece needs a serial that's unique for your Mailer ID within 45 days, and a mail merge that restarts at 000001 every campaign breaks that the second time it runs.
  • Losing the leading zero of a ZIP. A ZIP like 01234 in a spreadsheet turns into 1234, the routing part shrinks to four digits, and the total no longer matches any of the four allowed lengths. The generator refuses it, which beats a barcode that routes the letter somewhere else.
  • Putting a 5 or higher in the second digit. The second digit of the Barcode ID only runs from 0 to 4. The generator catches it, because the symbol drawn from such a number looks perfectly normal and is still invalid.

Frequently asked questions

What goes into the 20-digit tracking code?
Two digits of Barcode ID, 00 for most mail; three digits of Service Type ID, which say which mail class and which services you want; your Mailer ID, six or nine digits; and a serial number that fills the rest, nine digits after a 6-digit MID and six after a 9-digit one.
Where do I get a Mailer ID?
From USPS, through the Business Customer Gateway. Mailers sending more than 10 million pieces a year can get a 6-digit MID, which leaves more room for serial numbers; everyone else gets nine digits.
How big should the barcode be?
USPS fixes it, which is why there's no height or bar width setting here: 65 bars at 20 to 24 per inch, roughly 3 inches long and between 0.125 and 0.165 inches tall. Print it at 100% and don't scale it to fit the artwork.
Can a phone scan an Intelligent Mail barcode?
Not with an ordinary barcode app. 4-state postal codes aren't on their format lists, and this site's scanner doesn't read them either. USPS processing equipment does, and Informed Visibility reports those scans back to the mailer.