The Intelligent Mail barcode, for one letter at a time

The Intelligent Mail barcode is the row of short and tall bars that USPS reads on almost every letter it sorts. Big mailers use it to follow millions of pieces, and the same barcode works on one stamped envelope, as long as it's built with a real Mailer ID and the right ZIP Code. This guide explains what the bars hold, how one letter gets a barcode USPS will report on, and what its scans can tell you.

Updated October 20, 2026

USPS's example Intelligent Mail barcode and the 31 digits it holds65 bars, each full, ascender, descender or tracker. Under them, the digits split into the barcode ID 01, the service type 234, the Mailer ID 567094, the serial 987654321 and the routing code 01234 5678 91.01Barcode ID234Service type567094Mailer ID987654321Serial01234 5678 91ZIP+4 and delivery point
This is the worked example from USPS's barcode specification, USPS-B-3200. The bars don't map to the digits one by one, because the encoder mixes every digit and a check value into all 65 bars.

What the bars are

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.

Full (F)Ascender (A)Descender (D)Tracker (T)
Every bar has the short middle part. An ascender adds the top, a descender adds the bottom, and a full bar has both.

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 the 31 digits hold

FieldDigitsWhat it is for
Barcode ID2It 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 ID3It names the mail class and the services the mailer asked for, such as address corrections and Informed Visibility tracking.
Mailer ID6 or 9It names the business behind the barcode, and USPS assigns it. A 9 digit Mailer ID always starts with 9.
Serial number9 or 6The mailer chooses it so each piece is different, and it is 6 digits long after a 9 digit Mailer ID.
Routing code0, 5, 9 or 11It 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.

How one stamped letter gets 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.

  1. 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.
  2. 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."
  3. The Service Type ID asks for tracking. For a stamped First Class letter with no address corrections, that is 310 in USPS's table.
  4. 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.

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 box or when the carrier delivers 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.

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

  1. USPS, USPS-B-3200, Intelligent Mail Barcode 4-State specification, Revision H: postalpro.usps.com/mailing/intelligent-mail-barcode
  2. USPS, Domestic Mail Manual 204.1, Intelligent Mail barcodes, read October 20, 2026: pe.usps.com/text/dmm300/204.htm
  3. USPS, Domestic Mail Manual 202.5, barcode placement, read October 20, 2026: pe.usps.com/text/dmm300/202.htm
  4. USPS, Domestic Mail Manual 507.10, Informed Visibility, read October 20, 2026: pe.usps.com/text/dmm300/507.htm
  5. USPS, Service Type IDentifier (STID) Table, January 21, 2024: postalpro.usps.com/mailing/service-type-identifiers
  6. USPS, Mailer ID (MID) page, read October 20, 2026: postalpro.usps.com/mailing/mailer-id
  7. USPS, Informed Visibility Mail Tracking and Reporting release notes, September 12, 2026: postalpro.usps.com/InformedVisibility
  8. USPS, "USPS Tracking: The Basics", read October 20, 2026: faq.usps.com

Put a working barcode on your next letter

PigeonTrail prints the barcode with a checked address, and your first 100 letters each month are free.