postalref

Intelligent Mail Barcode

The Intelligent Mail barcode is a 65-bar USPS barcode used to sort and track letters and flats. One barcode can carry requests for many services at once. Mailers must print it on letters and flats prepared for automation prices.

Updated October 31, 202627 sources

What it is

The Intelligent Mail barcode is a height-modulated barcode. It encodes up to 31 digits of mailpiece data into 65 vertical bars. Each bar is one of four types: full, tracker, ascender or descender. It is also known as the USPS 4-State Customer Barcode.

The barcode replaced two older barcodes. It combines the data of the POSTNET and PLANET Code barcodes, plus other data, into one barcode. The POSTNET barcode stayed acceptable for automation prices only until May 2011.

Mailers can use the barcode on automation-rate First-Class Mail, Standard Mail, Periodicals and Bound Printed Matter letters and flats. Mailers apply most of these barcodes. USPS also defines formats of the barcode that only USPS prints.

Mailers use the barcode in one of three ways: non-automation, basic automation or Full-Service. Business Mail Entry Units began accepting letters with the barcode in September 2006. In May 2007, USPS allowed it on automation-rate flats.

The barcode also carries requests for OneCode ACS, a version of Address Change Service. OneCode ACS gives mailers of letters and flats electronic or automated address corrections, and it is the foundation of Full-Service ACS. It needs a Basic barcode whose Service Type Identifier requests an address correction service.

A look-alike exists. The Flat Mail Identification Code Sort program uses another 4-state barcode as an ID tag on non-barcoded flats only.

How it works

A mailer turns five data fields into one digit string, then into bars. An encoder converts the digits into a 65-character string. A special font turns that string into the printed bars.

The path from data to a printed barcode.

  1. Download and install the barcode encoder and font.
  2. Apply for a Mailer ID, which every barcode needs.
  3. Fill in the five fields of the barcode.
  4. Join the five fields into a string of 20 to 31 digits.
  5. Encode the string to 65 characters and print it with the barcode font.
  6. Print samples to check the print quality.

The barcode always has 65 bars, whatever the length of the ZIP Code in it. The data fields carry no checksum. The encoding process adds error detection and correction.

The five fields

The barcode holds a 20-digit tracking code and a routing code of up to 11 digits. The tracking code has four fields and the routing code is the fifth.

FieldDigitsWhat it holds
Barcode Identifier2The presort level printed on the optional endorsement line
Service Type Identifier3The class of mail and the services requested
Mailer ID6 or 9The mail owner or mail preparer
Serial Number9 or 6A number the mailer defines
Routing Code0, 5, 9 or 11The delivery ZIP Code in the address

The Barcode Identifier is a 2-digit field for the presort identification on the optional endorsement line, a printed line that shows the sort level. It is usually 00 when the mailpiece has no such line. Its second digit must be 0 to 4.

The Service Type Identifier marks the piece as Full-Service, Basic or Non-Automation. It also decides what happens to mail that is undeliverable as addressed. The class of mail, the address correction service and the tracking service decide which value a mailer uses. USPS publishes a table that shows which value to use for each combination.

Service Type Identifiers from the USPS STID table. Filter by class of mail, address correction group, service level or tracking option.

Service Type IDentifier (STID) Table, effective January 21, 2024
STIDMail classGroupOptionService levelInformed Visibility Mail Tracking & Reporting
300First-Class Mail®No Address Corrections – No Printed EndorsementsBasic or NonautomationWithout IV® MTR
310First-Class Mail®No Address Corrections – No Printed EndorsementsBasic or NonautomationWith IV® MTR
260First-Class Mail®No Address Corrections – No Printed EndorsementsFull-ServiceWithout IV® MTR
270First-Class Mail®No Address Corrections – No Printed EndorsementsFull-ServiceWith IV® MTR
700First-Class Mail®Manual Corrections **Basic or NonautomationWithout IV® MTR
040First-Class Mail®Manual Corrections **Basic or NonautomationWith IV® MTR
230First-Class Mail®OneCode ACS®Address Service Requested Opt 1Basic or NonautomationWithout IV® MTR
220First-Class Mail®OneCode ACS®Address Service Requested Opt 1Basic or NonautomationWith IV® MTR
080First-Class Mail®OneCode ACS®Address Service Requested Opt 2Basic or NonautomationWithout IV® MTR
140First-Class Mail®OneCode ACS®Address Service Requested Opt 2Basic or NonautomationWith IV® MTR
504First-Class Mail®OneCode ACS®Change Service Requested Opt 1 ♻Basic or NonautomationWithout IV® MTR
502First-Class Mail®OneCode ACS®Change Service Requested Opt 1 ♻Basic or NonautomationWith IV® MTR
082First-Class Mail®OneCode ACS®Change Service Requested Opt 2 ♻Basic or NonautomationWithout IV® MTR
240First-Class Mail®OneCode ACS®Change Service Requested Opt 2 ♻Basic or NonautomationWith IV® MTR
341First-Class Mail®OneCode ACS®Return Service Requested Opt 2Basic or NonautomationWithout IV® MTR
340First-Class Mail®OneCode ACS®Return Service Requested Opt 2Basic or NonautomationWith IV® MTR
345First-Class Mail®OneCode ACS®Temp-Return Service Requested Opt 2Basic or NonautomationWithout IV® MTR
344First-Class Mail®OneCode ACS®Temp-Return Service Requested Opt 2Basic or NonautomationWith IV® MTR
320First-Class Mail®Full-Service ACS™Address Service Requested Opt 1Full-ServiceWithout IV® MTR
314First-Class Mail®Full-Service ACS™Address Service Requested Opt 1Full-ServiceWith IV® MTR

1 to 20 of 230 codes in the Service Type IDentifier (STID) Table, effective January 21, 2024.

The Mailer ID is a number USPS assigns to a mail owner or mail preparer. Six-digit Mailer IDs begin with 0 through 8, and nine-digit ones begin with 9.

The Serial Number takes the digits the Mailer ID leaves: 9 digits with a 6-digit Mailer ID, 6 with a 9-digit one. With the Mailer ID and class of mail, it can identify a single mailpiece. The Full-Service option requires that each mailpiece be uniquely identified. Basic automation prices do not require a unique Serial Number.

The Routing Code holds a 5-digit ZIP Code, a ZIP+4 code or an 11-digit delivery-point code. Automation discounts need a delivery-point ZIP Code from CASS-certified software. A mailer may leave the Routing Code empty and use the barcode only for tracking.

USPS gives an example of the whole string.

FieldExample value
Barcode Identifier00
Service Type Identifier270
Mailer ID123456
Serial Number200800001
Routing Code98765432101
Full string0027012345620080000198765432101

The example's Service Type Identifier, as the STID table lists it.

Service Type IDentifier (STID) Table, effective January 21, 2024, 270

Mail class
First-Class Mail®
Group
—
Option
No Address Corrections – No Printed Endorsements
Service level
Full-Service
Informed Visibility Mail Tracking & Reporting
With IV® MTR

Placement and size

On letters, the barcode goes in the address block or in the barcode clear zone. On flats, it can go anywhere on the address side at least 1/8 inch from any edge. Only one Intelligent Mail barcode can go in the same area.

The print specification lets mailers choose the barcode's height and width within limits.

MeasureLimit
Overall height0.125 inch to 0.165 inch
Pitch22 ±2 bars per inch
Clear zone0.028 inch above and below, 0.125 inch on each end

Encoder software and fonts

USPS provides Intelligent Mail barcode files, fonts and encoders for download. They are for Full-Service mailers who print their own barcodes. USPS makes them available at no charge, with a web-based encoder-decoder tool. The tool converts a barcode into its digits, or digits into a barcode.

Specification USPS-B-3200 defines the algorithm that turns the 31 digits into 65 bars. The encoder takes two inputs: a 20-digit tracking code and a routing code of none, 5, 9 or 11 digits. It returns a status and a 65-character string of the letters F, A, D and T, for a full bar, ascender, descender or tracker. The font turns that string into the printed bars.

The encoder comes as one package for each operating system, a standard ZIP file. Each package holds a user guide on installing and using its files.

PartWhat USPS supports
Encoder languagesC, Java 2, COBOL and PL/1
Platformsz/OS, VSE/ESA, OS/400, AIX, Linux, Solaris, HP/UX, Mac and Windows
Font printing environmentsAFP, HP PCL, PostScript, Xerox Metacode and TrueType

USPS licenses the software, documentation and fonts for use in the mailing industry without a royalty or other fee. The license lasts while the user holds a copy, or for the life of the longest copyright if that is shorter. USPS may change the license within reason at its discretion.

Redistribution of the Software, Documentation, and/or Font must contain (a) the copyright notice set forth below, (b) this list of conditions, and (c) the disclaimer noted below.

Anyone who passes the software, documentation or fonts on to others must include the copyright notice, the license's conditions and its disclaimer.

Intelligent Mail for Small Business Mailers

Intelligent Mail for Small Business Mailers is a free online tool that produces presorted Intelligent Mail barcodes for mailpieces and tray labels. It also submits an electronic postage statement to the acceptance unit. It is a Full-Service mailing solution for small business mailers who prepare their own mailings.

The tool is for First-Class Mail and USPS Marketing Mail permit holders mailing cards, letters and flats. It qualifies mailings of fewer than 50,000 pieces entered at a Business Mail Entry Unit for automation Full-Service discounts. It is not designed for Mail Service Providers who prepare mail for others.

A mailer needs three things first: a postage permit, a registration on the Business Customer Gateway with a linked permit, and an address list. The list is a Microsoft Excel or CSV file. The tool runs in a web browser, with no special software to install.

How a mailer prepares a mailing with the tool.

  1. Open the tool from the Mailing Services menu in the Business Customer Gateway.
  2. Set up the mailing and upload the address list.
  3. The tool confirms that the addresses are valid delivery points.
  4. The tool presorts the mailing for the presort discounts the list qualifies for.
  5. Print addresses with unique barcodes on labels, envelopes or insert pages, with barcoded tray labels.
  6. Submit the postage statement electronically.

The tool is built to meet Full-Service requirements. It puts a unique Intelligent Mail barcode in the address block. To use Mail Merge with the tool, a mailer needs the barcode font. The tool cleanses the address list and can find duplicate addresses, but this is not a Move Update method.

Full-Service mailings from the tool get the $0.003 per piece Full-Service discount. Address Change Service is available on Full-Service pieces. Users of the tool may qualify for the Seamless Acceptance program.

Rules

The Intelligent Mail barcode must contain a proper routing ZIP Code™ and a valid Mailer ID (MID) to satisfy the criteria for automation prices.

A barcode on mail claiming automation prices must hold a correct routing ZIP Code and a valid Mailer ID. Without both, the piece does not meet the criteria for those prices.

Mailers printing the Intelligent Mail barcode solely to qualify for automation prices must populate the Service Type ID field with one of the following values: 700 for First-Class Mail, 702 for Standard Mail, 704 for Periodicals, or 706 for Bound Printed Matter.

A mailer who uses the barcode only for automation prices must put the Service Type Identifier for its class of mail in the barcode. The value depends on the class.

When mailers prepare flat-size pieces using IMbs to meet automation-price eligibility requirements, the IMbs on any pieces bearing printed OELs must contain the barcode identifier corresponding to the printed OEL used.

On automation flats with a printed optional endorsement line, the Barcode Identifier must match that printed line.

The Routing Code, if populated, must never be padded with zeros, spaces or nulls that are not part of the valid ZIP Code.

A Routing Code that is filled in must hold only the ZIP Code's own digits. A mailer must never add zeros, spaces or nulls to it.

For each of the required fields in the Tracking Code, the mailer shall add leading or trailing zeroes to achieve the correct field length.

Each required tracking code field must reach its full length. The mailer must add leading or trailing zeros to get there.

Mailers as well as the Postal Service shall perform routine physical inspection and testing of Intelligent Mail barcodes to ensure the quality of labels produced.

Both mailers and USPS must inspect and test printed barcodes as a routine. The goal is labels of the required quality.

What goes wrong

Registered Mail cannot get automation prices because of the way USPS handles it. Business Reply Mail cannot use an 11-digit delivery-point code in the Routing Code.

A Periodicals publisher can receive PS Form 3579 manual address correction notices. This happens when no barcode is present or readable and the publication has no history of a Full-Service ACS value in the barcode. Using some Service Type Identifiers wrongly can cause unexpected costs to the mailer.

Terms

Intelligent Mail BarcodeIMb, 4CB, Intelligent Mail barcode (piece level barcode), 4CB, 4-CB, USPS4CB, USPS 4-State Customer Barcode, 4-state customer barcode
The IMb is a height-modulated barcode that encodes up to 31 digits of mailpiece data into 65 vertical bars using a 4-state symbology.
Intelligent MailIM
A Postal Service initiative for improving both mailpiece visibility and acceptance/delivery processes on letters, flats, packages, and mail aggregates.
Service Type IdentifiersSTID, STIDS, STI, Service Type IDs, Service Type ID(s)
A unique three-digit code embedded in the Intelligent Mail® barcode (IMb®) that indicates the service type for an individual mailpiece.
Mailer IdentifierMID, Mailer IDs, Mailer Identification, Mailer Identification Number, USPS Mailer ID
MID is a unique 6- or 9-digit number that identifies the mailer or the mailer’s client.
IMb TracingConfirm, Intelligent Mail barcode (IMb) Tracing (formerly CONFIRM), OneCode Confirm
IMb Tracing is a service that provides real-time tracking information for automation-compatible letters and flats, giving advance notice for both incoming and outgoing mail.
OneCode ACSOCD, OneCode ACS feature
The foundation for today’s Full Service ACS, OneCode ACS allows customers mailing letters or flats to receive electronic or automated address corrections.
Full-Service Intelligent MailFS, Full-Service, Full-Service Intelligent Mail option
One of two Intelligent Mail offerings that requires a maximum 31-digit Intelligent Mail barcode comprising five fields: the Barcode ID, Service Type Identifier, Mailer ID, Serial Number, and Routing Code. The Full-Service Intelligent Mail option requires unique mailpiece barcodes, the use of Intelligent Mail barcodes on tray labels or container placards, electronic documentation, and the use of Facility Access and Shipment Tracking to schedule appointments for the entry of mailings.
Intelligent Mail Package BarcodeIMpb
An IMpb is the USPS-developed barcode that can be read by automated parcel-processing equipment and scanning devices and consists of a data string that generally follows the GS1-128 specification.
Intelligent Mail Barcode (IMb) Encoder Software and Fonts
The Postal Service provides Intelligent Mail® barcode files, fonts and encoders, available for download.
Intelligent Mail for Small Business MailersIMsb, Intelligent Mail Small Business Tool, Intelligent Mail for Small Business, IMsb for Small Business Mailers, Intelligent Mail Small Business, IMsb Tool
is a Full-Service mailing solution specifically designed for small business mailers who wish to prepare their own mailings.

Documents

Contacts

For questions about the barcode, USPS lists the phone number 1-877-640-0724 and the email onecodesolution@usps.gov. Mailers without a Mailer ID can contact a Mailpiece Design Analyst at 1-877-672-0007 or MDA@usps.gov. Questions about the Barcode Identifier go to IntelligentMailSupport@usps.gov. The ACS Department answers questions about how to use Service Type Identifiers, at ACS@usps.gov or 877-640-0724. For help with the Intelligent Mail for Small Business Mailers tool, the Mailing and Shipping Solutions Center answers at MSSC@usps.gov or (877) 672-0007.

Sources