POSTNET
| Value | Encoding |
| 0 | ||╷╷╷
|
| 1 | ╷╷╷||
|
| 2 | ╷╷|╷|
|
| 3 | ╷╷||╷
|
| 4 | ╷|╷╷|
|
| 5 | ╷|╷|╷
|
| 6 | ╷||╷╷
|
| 7 | |╷╷╷|
|
| 8 | |╷╷|╷
|
| 9 | |╷|╷╷
|
POSTNET is a barcode symbology that is used by the United States Postal Service to assist in directing mail. The ZIP Code or ZIP+4 code is encoded in this unique symbology that encodes data in half- and full-height bars. Most often, the delivery point is added, usually being the last two digits of the address or PO box number.
The barcode starts and ends with a full bar (often called a guard rail) and has a check digit after the ZIP or ZIP+4. The check digit is calculated as follows:
- Add up all the data being encoded. If you are sending a letter to somewhere in Young America, Minnesota, you might be sending to 55555-1234, which would have the sum of 35
- Find the number that would need to be added to this number to make it evenly divisible by 10, in this case 5, which is your check digit.
| denotes a full bar and ╷ denotes a half bar.Each individual digit is represented by a set of five bars, two of which are full bars. The full bars represent "on" bits in a pseudo-binary code in which the places represent, from left to right: 7, 4, 2, 1, 0. (Though in this scheme, zero is encoded as 11.)