Postal Business plan

USPS POSTNET Barcode Generator API

Legacy US ZIP code barcode

Sample POSTNET barcode

555551237

Generated live by the BarGen API from 555551237

POSTNET, short for Postal Numeric Encoding Technique, was the USPS barcode standard for automated mail sorting from the 1980s until it was officially retired for postal discounts in January 2013, when the Intelligent Mail Barcode took over. It encodes a 5-digit ZIP, 9-digit ZIP+4, or 11-digit delivery point code as a series of tall and short bars, with a checksum digit ensuring the ZIP code was read correctly.

BarGen generates a POSTNET symbol from a 5, 9, or 11 digit numeric string via the REST API, returning SVG or PNG output useful for reproducing legacy mail pieces, historical document systems, or reference materials.

POSTNET (Postal Numeric Encoding Technique) was the barcode used by the United States Postal Service from 1983 to 2013 for encoding ZIP codes on mail. It has been replaced by the Intelligent Mail Barcode but is still recognized by USPS equipment.

The barcode uses two bar heights (full and half) to encode numeric data. Each digit is represented by a pattern of five bars, with exactly two tall bars per digit. Frame bars at the start and end ensure proper scanning.

POSTNET can encode 5-digit ZIP codes, 9-digit ZIP+4 codes, or 11-digit Delivery Point Barcodes (DPBC). The 11-digit version includes the ZIP+4 plus a 2-digit delivery point code for the specific address.

While no longer required for postal discounts (IMB is now used), POSTNET remains widely supported for legacy systems. Some mailers continue to use it for internal tracking or when interfacing with older sorting equipment.

Common use cases

Legacy mail system reproduction

Archival and document management systems that replicate historical USPS mail pieces still generate POSTNET for accuracy.

Reference and educational material

Postal history and barcode standards documentation uses POSTNET examples to illustrate pre-2013 US mail automation.

Legacy print system compatibility

Some older mailing software and hardware pipelines still reference POSTNET output for compatibility testing against current IMb workflows.

Generate POSTNET via the REST API

curl "https://api.bargen.pro/v1/barcode/postnet?data=555551237&format=svg" \
  -H "X-API-Key: YOUR_API_KEY"

Returns the barcode as SVG; PNG, PDF and EPS are available on higher plans. See the API documentation for all options.

Frequently asked questions

Is POSTNET still used by USPS today?

No, USPS stopped accepting POSTNET for automation discount pricing in January 2013 and requires the Intelligent Mail Barcode instead, though POSTNET remains documented as a legacy standard.

What digit lengths does POSTNET support?

POSTNET encodes a 5-digit ZIP code, a 9-digit ZIP+4, or an 11-digit delivery point code, each ending in a calculated checksum digit.

Why would anyone generate POSTNET now?

It is mainly needed for reproducing historical mail pieces, testing legacy systems, or educational reference, since current USPS automation mail must use the Intelligent Mail Barcode.

Specifications

Digits
5, 9, or 11 (ZIP, ZIP+4, or DPBC)
Bar Heights
2 (full and half)
Check Digit
Sum of digits divisible by 10

Availability

Available from the Business plan.

See pricing

Start generating POSTNET barcodes

Free tier with 1,000 API calls per month. No credit card required.