What is an Intelligent Mail barcode?
An Intelligent Mail barcode, or IMb, is the row of 65 short and tall bars that sits above the address on most business mail. USPS's Domestic Mail Manual describes it as "65 vertical bars, each representing one of four possible states: full bar, ascender, tracker, and descender." Those bars carry up to 31 digits, which USPS splits into a 20 digit tracking code and a routing code of up to 11 digits.
USPS's sorting machines read the barcode on every pass, which is how a letter that carries one gets a scan at each plant. The bars are printed at about 22 to the inch, so the whole barcode is roughly 3 inches long.
What do its digits hold?
Its digits, up to 31, split into five fields: a 20 digit tracking code made of the barcode ID, the service type, the Mailer ID and a serial number, followed by a routing code of up to 11 digits that holds the address's ZIP Code, or its ZIP+4 and delivery point. The barcode decoder shows these fields for any barcode you type in.
| Field | Digits | What it is for |
|---|---|---|
| Barcode ID | 2 | It carries a presort level for flats, so on almost every letter it is 00. Its second digit can only be 0 to 4. |
| Service Type ID | 3 | It names the mail class and the services the mailer asked for, such as address corrections and Informed Visibility tracking. |
| Mailer ID | 6 or 9 | It names the business behind the barcode, and USPS assigns it. A 9 digit Mailer ID always starts with 9. |
| Serial number | 9 or 6 | The mailer chooses it so each piece is different, and it is 6 digits long after a 9 digit Mailer ID. |
| Routing code | 0, 5, 9 or 11 | It holds the destination ZIP Code, the ZIP+4, or the ZIP+4 plus the 2 digit delivery point. |
The first four fields make up the 20 digit tracking code, and together they point to one mailpiece. The encoder then turns all of the digits into bars along with an 11 bit check value, and it spreads every digit across the whole barcode. That is why one misread bar makes the check fail instead of quietly changing a digit, and why a decoder needs all 65 bars to read any of it. Our free Intelligent Mail barcode decoder reads the bars or the digits and names each field.
What is the Intelligent Mail package barcode (IMpb)?
The Intelligent Mail package barcode, or IMpb, is the barcode USPS uses on packages, and it works differently from the IMb on a letter. It is a single row of thin and thick bars on the shipping label, printed with the package's tracking number, and USPS sets out its rules in Publication 199. Because that number is a USPS Tracking number, anyone who has it can look the package up on usps.com. A package gets scans from the moment USPS accepts it, and the carrier usually scans it when it is delivered.
| Intelligent Mail barcode (IMb) | Intelligent Mail package barcode (IMpb) | |
|---|---|---|
| Where it goes | It goes on letters, postcards and flats, above the address or along the bottom edge. | It goes on the shipping label of a package. |
| What it looks like | It has 65 bars of four kinds, which are full bars, ascenders, descenders and short trackers. | It is one row of thin and thick bars with the tracking number printed under it. |
| Who sees the scans | The business that owns the Mailer ID sees them through Informed Visibility. | Anyone with the tracking number sees them on usps.com. |
| Scan at delivery | There is none, so the delivered status is USPS's estimate from the carrier's route. | The carrier usually scans the package at the door or the mailbox. |
A stamped First Class letter has no USPS Tracking number to put in an IMpb, because USPS says letters "are not eligible for USPS Tracking service." Certified Mail adds a tracking number to a letter for $5.55 on top of the postage, and an order that a marketplace wants carrier tracking on usually goes as a package with a label.
How does one stamped letter get a barcode USPS reports on?
A barcode only turns into scans you can see when four things line up, and the same four apply to one letter as to a million.
- The barcode carries a Mailer ID that belongs to you or to the service printing it. USPS gives one 9 digit Mailer ID to a business location with no volume requirement, through its Business Customer Gateway.
- The Mailer ID is signed up for Informed Visibility, USPS's free mail tracking service, which the Domestic Mail Manual says "is available at no charge without a subscription."
- The Service Type ID asks for tracking. For a stamped First Class letter with no address corrections, that is 310 in USPS's table.
- The routing code matches the address. The manual says an outgoing piece "must bear an Intelligent Mail barcode that correctly corresponds to the delivery address," so the ZIP+4 and delivery point come from USPS's own address data, and the serial must be one no other piece is using.
The barcode goes either in the address block, just above the name, or in the barcode clear zone along the bottom right edge, and the letter has to be machinable so the machines can read it. With all of that in place, a single envelope with a Forever stamp is scanned and reported the same way a bank statement is. PigeonTrail handles the Mailer ID, the serials, the address check and the printing, so a seller only adds the stamp.
PigeonTrail draws each barcode on its server for one letter and prints it with the address on a #10, #9, #6 3/4, A7 or 6 x 9 envelope, on address labels, or on a packing slip that shows through a #10 window envelope. If you'd like to see what a printed barcode holds, paste its digits or bars into the IMb decoder. If you address envelopes yourself, our free envelope template puts the address where USPS's machines read it and keeps the barcode strip along the bottom clear, though it doesn't print a barcode.
Why a free barcode generator won't show you scans
A free generator draws bars for whatever digits you type, and USPS will happily read them, but the scans go to the owner of the Mailer ID in the barcode. USPS's release notes from September 2026 say that only "mailers who own a particular" Mailer ID, or who were given access to it, can receive its piece data through Informed Visibility. A made up Mailer ID sends the scans nowhere, and someone else's sends them to that business. The barcode works for tracking only when you can receive the data behind it.
What the scans show, and what they don't
Each time a sorting machine reads the barcode, USPS records the time and the plant, so you can follow a letter from the plant near you to the plant near the person you wrote to. USPS records no scan when you drop the letter in a mailbox or when the carrier puts it in the mailbox of the person you wrote to, so the first scan comes at the plant that cancels it. A letter's delivered event is USPS's estimate from the carrier's route, and the manual says this service "does not provide a delivery scan or proof of delivery and not every piece is guaranteed such data or complete data." Our guide to what each USPS scan means walks through every event.
The barcode isn't a USPS tracking number either. USPS's tracking page doesn't take it, because, as USPS puts it, "First-Class Mail postcards, letters and flats are not eligible for USPS Tracking service." The scans reach the barcode's owner through Informed Visibility instead.
Questions
What is an Intelligent Mail barcode?
It is USPS's 65 bar barcode for letters and flats. It holds a 20 digit tracking code that names the mailer and the piece, and a routing code with the destination ZIP Code, which USPS's sorting machines read on every pass.
What is the difference between an IMb and an IMpb?
An IMb is the 65 bar, four state barcode on letters and flats, and its scans go to the mailer through Informed Visibility. An IMpb is the barcode on a package label, and its tracking number works on usps.com for anyone who has it.
Can I track a letter with an Intelligent Mail barcode?
Yes, if the barcode uses a Mailer ID whose scans you receive through USPS Informed Visibility. Each sorting machine that reads it records a scan, so you can follow the letter from plant to plant.
Is an Intelligent Mail barcode a tracking number?
No. USPS's tracking page doesn't look up letters, so the scans go to the barcode's owner through Informed Visibility instead of to usps.com.
What is a Mailer ID?
It is a 6 or 9 digit number USPS assigns to the business behind a barcode. The business gets one 9 digit Mailer ID with no volume requirement through USPS's Business Customer Gateway.
How do I decode an Intelligent Mail barcode?
Type the 65 bars as the letters A, D, F and T, or the digits printed under the barcode, into our free IMb decoder. It shows the barcode ID, service type, Mailer ID, serial and ZIP Code.
Do I need a barcode to mail a letter?
No. A letter with the right postage and a readable address goes through without one. The barcode only matters if you want to see the letter's scans.
Sources
- USPS, USPS-B-3200, Intelligent Mail Barcode 4-State specification, Revision H: postalpro.usps.com/mailing/intelligent-mail-barcode
- USPS, Publication 199, Intelligent Mail Package Barcode (IMpb) Implementation Guide, read November 23, 2026: postalpro.usps.com/pub199
- USPS, Domestic Mail Manual 204.1, Intelligent Mail barcodes, read October 20, 2026: pe.usps.com/text/dmm300/204.htm
- USPS, Domestic Mail Manual 202.5, barcode placement, read October 20, 2026: pe.usps.com/text/dmm300/202.htm
- USPS, Domestic Mail Manual 507.10, Informed Visibility, read October 20, 2026: pe.usps.com/text/dmm300/507.htm
- USPS, Service Type IDentifier (STID) Table, January 21, 2024: postalpro.usps.com/mailing/service-type-identifiers
- USPS, Mailer ID (MID) page, read October 20, 2026: postalpro.usps.com/mailing/mailer-id
- USPS, Informed Visibility Mail Tracking and Reporting release notes, September 12, 2026: postalpro.usps.com/InformedVisibility
- USPS, "USPS Tracking: The Basics", read October 20, 2026: faq.usps.com