IDAutomation.com, Inc. IDAutomation.com, Inc.
IMb Structure

Intelligent Mail Barcode Structure, Fields and Specifications

The 65-bar, 4-state IMb: data fields, routing code, mailer ID, symbol size and USPS requirements.

Today, the USPS IMb barcode, also known as the USPS Intelligent Mail Barcode, is required to qualify for automation discounts and properly route mail in the USA. See the Intelligent Mail barcode fonts.

65 bars, four states, 31 digits

The barcode is a USPS-developed method to encode ZIP Code information that automated sorting machines can read. It also encodes tracking information.

  • Barcode Identifier: 2 digits, the second 0 to 4; use 00 for OneCode Confirm and ACS
  • Service Type Identifier: 3 digits that define full-service or basic mail and the address correction desired
  • Mailer ID: 6 or 9 digits; Serial Number: 9 digits, or 6 when the Mailer ID has 9 digits
  • Routing Code: 0, 5, 9 or 11 digits for the ZIP, ZIP+4 or delivery point
Intelligent Mail barcode structure: 65 four-state bars with full bar, ascender, descender and tracker, and the barcode ID, service type, mailer ID, serial number and routing code fields

Example data string

The 31-digit example from BarcodeFAQ is split here into its fields: barcode identifier, service type, 6-digit mailer ID, 9-digit serial number and 11-digit routing code.

DataToEncode = 0123456709498765432101234567891
01    234   567094   987654321   01234567891
BID   STID  MID      Serial      Routing code

Symbol size and tolerances

Symbol size and tolerances
PropertyIDAutomation fontUSPS tolerance
X dimension0.017 in.0.015 to 0.025 in.
Space between bars0.026 in.0.012 to 0.040 in.
Tall bar0.135 in.0.125 to 0.165 in.
Tracker (short) bar0.041 in.0.039 to 0.057 in.
Bars per inch2322 to 24

Source: BarcodeFAQ. Test random samples; the Print Quality Assessment tool in the IDAutomation 2D scanner grades symbols and reports dimension errors.

Placement and clear zone

A clear zone of 1/8 inch beside the leftmost and rightmost bars and 1/25 inch above and below the barcode is kept free of dark fibers and background patterns on card, letter and flat-size pieces barcoded in the address block.

  • Background reflectance of at least 50% in the red and 45% in the green portion of the spectrum is required in the barcode area
  • Use opaque materials so printing does not show through
  • Verify printed pieces with a barcode reader before sending them to the post office
Mail piece layout showing an address block set in OCR-A, a Facing Identification Mark and an Intelligent Mail barcode surrounded by a clear zone
Full-Service Intelligent Mail offers mailers elimination of permit fees, address correction and visibility and tracking of mailings. The USPS lists certified software vendors and mail service providers on PostalPro (opens in a new tab). Reply mail pieces using origin Informed Visibility do not require a Mailer ID.

Frequently asked questions

How many bars and digits are in an IMb?

An Intelligent Mail barcode consists of 65 vertical bars, each representing one of four states: full bar, ascender, tracker and descender. The 65 bars encode a string of 31 digits: a 20-digit tracking code and an 11-digit routing code.

What can the routing code contain?

The routing code may contain a ZIP Code, a ZIP+4 code or a delivery point code. When used for automation price eligibility on letters, the routing code must contain a delivery point code that accurately matches the delivery address.

What is the Mailer ID?

The Mailer Identifier (MID) is a field within the barcode that identifies mailers. MIDs are assigned by the USPS to a mail owner, mailing agent or other service provider who requests one. It is 6 or 9 digits.

Where are the full specifications?

Complete specifications are in USPS-B-3200 and the Intelligent Mail Barcode Technical Resource Guide, available on PostalPro.

What changed recently?

Effective January 18, 2026, the USPS revised DMM section 204.1.0 to clarify Intelligent Mail barcode standards.

Read the USPS barcode standards

Domestic Mail Manual section 204 defines Intelligent Mail barcode standards.

DMM 204