---
title: "Intelligent Mail Barcode Generator – Free USPS IMb"
description: "Free USPS Intelligent Mail barcode (IMb) generator. Enter the 20-digit tracking code and ZIP routing code to get a 4-state IMb. Download PNG, SVG or PDF."
url: https://barcodejar.com/intelligent-mail-barcode-generator
source: BarcodeJar (free barcode tools)
---

# Intelligent Mail Barcode Generator

Create a USPS Intelligent Mail barcode (IMb) from your 20-digit tracking code plus a 0, 5, 9 or 11-digit ZIP routing code. Type the digits in one run and download a print-ready barcode.

_Interactive tool: open https://barcodejar.com/intelligent-mail-barcode-generator to use it in your browser. It is free with no sign-up._

## How to create a USPS Intelligent Mail barcode

1.  Enter your data in the box above. Type the 20-digit tracking code followed directly by the routing code (ZIP, ZIP+4 or ZIP+4+delivery point), digits only with no spaces or dashes: 20, 25, 29 or 31 digits in total. No check digit to add; error correction is built in.
2.  The barcode updates live as you type. Open **Customize** to change the bar height, colors, rotation or quiet zone.
3.  Click **Download PNG** for labels and documents, or **SVG / PDF** for print and packaging design.
4.  Test it with our [online barcode scanner](https://barcodejar.com/barcode-scanner) before you print a large run.

## What is a USPS Intelligent Mail barcode?

The **Intelligent Mail barcode (IMb)** is the 65-bar, 4-state barcode the United States Postal Service uses to sort and track letters and flats. Each bar is one of four types: full, ascender, descender or tracker. It replaced the older [POSTNET](https://barcodejar.com/postnet-barcode-generator) and [PLANET](https://barcodejar.com/planet-barcode-generator) barcodes, and it is required for automation prices on letters and flats. It is also known as OneCode or USPS4CB.

The IMb encodes up to 31 digits in two parts:

| Field | Digits | What it is |
| --- | --- | --- |
| Barcode ID | 2 | Presort identification; usually 00. The second digit must be 0–4. |
| Service Type ID (STID) | 3 | Mail class and services, such as First-Class Mail with IMb Tracing or address correction |
| Mailer ID (MID) | 6 or 9 | Assigned by USPS to the mail owner or mail service provider |
| Serial number | 9 or 6 | Identifies the mail piece (9 digits with a 6-digit MID, 6 with a 9-digit MID) |
| Routing code | 0, 5, 9 or 11 | Delivery ZIP Code, ZIP+4 or ZIP+4 plus 2-digit delivery point |

The first 20 digits (Barcode ID, STID, Mailer ID and serial) form the tracking code. Error correction is calculated and built into the bars automatically.

## Where USPS Intelligent Mail is used

-   Letters and flats mailed at USPS automation prices
-   Full-Service IMb mailings with tracking (Informed Visibility)
-   Business reply and courtesy reply mail
-   Tracking outbound bills, statements and direct mail
-   Address correction services (ACS) via the STID

## USPS Intelligent Mail specifications

-   **Type:** 4-state postal barcode, 65 bars
-   **Characters:** Digits 0–9 only
-   **Length:** 20-digit tracking code + 0, 5, 9 or 11-digit routing code
-   **Check:** 11-bit CRC frame check, built in
-   **Bar pitch:** 20 to 24 bars per inch
-   **Overall length:** 2.667 to 3.225 in (about 67.7 to 81.9 mm)
-   **Other names:** IMb, OneCode, USPS4CB
-   **Standard:** USPS-B-3200

## Tips for a barcode that scans first time

-   You need a Mailer ID from USPS (through the Business Customer Gateway) to make an IMb for real mailings.
-   Make every serial number unique within 45 days for Full-Service mailings so each piece can be tracked.
-   Print at actual size. Scaling changes the bar pitch, which must stay within USPS limits.
-   Use the full 11-digit routing code (ZIP+4 + delivery point) when you have it, for the best sortation.
-   Do not put spaces or dashes between the tracking and routing codes.

## Frequently asked questions

### What is an Intelligent Mail barcode?

The Intelligent Mail barcode (IMb) is the USPS 4-state barcode printed on letters and flats. It holds a 20-digit tracking code and up to 11 digits of ZIP routing information, and it is required for automation postage prices.

### How do I make an Intelligent Mail barcode?

Build the 20-digit tracking code from a Barcode ID (usually 00), a 3-digit Service Type ID, your USPS Mailer ID and a serial number, then add the ZIP, ZIP+4 or 11-digit delivery point code. Type all the digits together in the box above and download the barcode.

### Where do I get a Mailer ID?

Mailer IDs are assigned free by USPS through the Business Customer Gateway. High-volume mailers can get a 6-digit MID; others get a 9-digit MID.

### What is the STID in an IMb?

The Service Type ID is a 3-digit code that tells USPS the mail class and which services you want, such as tracing or address correction. USPS publishes the STID table; pick the code that matches your mailing.

### Does the IMb replace POSTNET?

Yes. Since January 2013 USPS has required the Intelligent Mail barcode for automation prices, and POSTNET and PLANET are no longer accepted for those discounts.

### Can I use the IMb for packages?

No. The IMb is for letters and flats. Parcels use the Intelligent Mail Package Barcode (IMpb), which is a GS1-128 barcode.

## Related free tools

[![USPS POSTNET Generator example](/thumbs/postnet.svg)**USPS POSTNET Generator**Create USPS POSTNET barcodes free. PNG, SVG, PDF.](https://barcodejar.com/postnet-barcode-generator)[![USPS PLANET Generator example](/thumbs/planet.svg)**USPS PLANET Generator**Create USPS PLANET barcodes free. PNG, SVG, PDF.](https://barcodejar.com/planet-barcode-generator)[**Barcode Label Generator**Print barcodes on Avery and other label sheets as PDF.](https://barcodejar.com/barcode-label-generator)[**Bulk Barcode Generator**Paste a list or CSV, download hundreds as ZIP or PDF.](https://barcodejar.com/bulk-barcode-generator)[![GS1-128 Generator example](/thumbs/gs1-128.svg)**GS1-128 Generator**Create GS1-128 barcodes free. PNG, SVG, PDF.](https://barcodejar.com/gs1-128-barcode-generator)[![Royal Mail Mailmark Generator example](/thumbs/mailmark.svg)**Royal Mail Mailmark Generator**Create Royal Mail Mailmark barcodes free. PNG, SVG, PDF.](https://barcodejar.com/royal-mail-mailmark-generator)[![AusPost 4 State Customer Code Generator example](/thumbs/auspost.svg)**AusPost 4 State Customer Code Generator**Create AusPost 4 State Customer Code barcodes free. PNG, SVG, PDF.](https://barcodejar.com/australia-post-barcode-generator)
