POSTNET and PLANET Decoder

Please enter your barcode below, using the following characters:
A = Ascending bar, T or S = Track (short) bar
POSTNET ZIP Code: - Delivery Point:
PLANET Service ID:
Customer ID:
Subscriber ID: Mailing ID:

Delivery point is "usually" the last two digits of the street address.

Sample Data

Here are some sample barcodes from the Neodynamic website.
  • ATTTAATTATATTAATTATTATATATTAATTATTTAATTATATATTAATTTTTTAATATTAA POSTNET 12345-6789 01
  • ATTATAAATTTTTATATAATTAATTTATATTATATTAATTTAATTTTTATAA POSTNET 20260-9900
  • AATAATTTAAAAAATTAATATAATTAATAATATATAAATATAATTAATATAATTAAAATTAATTAAATTAAA PLANET 40 12345 235636
  • AATATATTAAAAATATTTAAAAAATTATAATTTAAAAATATAATTAATATAATTAAAATTAATATAATAATA PLANET 50 20140235635

Remarks

The POSTNET and PLANET barcodes are used by the United States Postal Service. POSTNET barcodes have a variable length of 32 to 62 bars, and PLANET is 62 or 72 bars. They are height-modulated (the vertical bars are different lengths) and 2-state (there are two different kinds of bars, short and tall). Each digit of encoded data is represented by a group of five bars. POSTNET barcodes have exactly two tall bars in each group of five, while PLANET barcodes have three.
The decoder attempts to flag errors as soon as it sees them, but of course it might be wrong. The barcode includes a check digit which can sometimes detect incorrectly entered codes, but it does not provide enough information to correct errors.

More Information

Download the Decoder

Here is the Javascript code for the POSTNET barcode decoder. You can download it and do whatever you like with it. Use the HTML file below to run it locally on your computer - just save both files in the same place.
usps-postnet.js
File Size: 13 kb
File Type: js
Download File

usps-postnet.html
File Size: 3 kb
File Type: html
Download File