Search for a tool
Barcode POSTNET

Tool to generate/decode POSTNET barcodes. POSTNET (Postal Numeric Encoding Technique) is a barcode standard used in the United States for mail routing.

Results

Barcode POSTNET -

Tag(s) : Character Encoding, Image processing

Share
dCode and you

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!

Thanks to your feedback and relevant comments, dCode has developped the best Barcode POSTNET tool, so feel free to write! Thank you !

# Barcode POSTNET

## Barcode POSTNET Generator

 Checksum Add the control character Already included in the coded value Ignore (no control)
 Output format Image Binary Data 0=Empty and 1=Black bar Checksum value

### Options

 Output format Numerical Value of the Barcode Image

Tool to generate/decode POSTNET barcodes. POSTNET (Postal Numeric Encoding Technique) is a barcode standard used in the United States for mail routing.

### How to encrypt using Barcode POSTNET cipher?

The POSTNET Barcode format allows coding only numbers. It generally contains the ZIP postal code (5 digits) and sometimes 4 additional digits (ZIP+4) for the Delivery point (DP) which corresponds to an even more precise mail collection point.

Each digit is coded in 5 bits, represented by short or long bars. The POSTNET correspondence table is:

 0 1 11000 00011 00101 00110 01001 01010 01100 10001 10010 10100

A complete POSTNET barcode begins and ends with a bit 1 (long line), it also includes a check digit before the final 1.

### How to decrypt Barcode POSTNET cipher?

The decryption of the POSTNET Code consists of reading binary short (= 0) and long (= 1) bands and then translating them via the coding table.

Example: A message 1 00011 00101 00110 1 translates to 123

POSTNET checksum is missing in this example

### How to calculate the checksum characters?

The POSTNET code uses a basic checksum: add all the digits and keep the digit of units $N$. The checksum is $10 - N \mod 10$.

Example: The number 789 has for sum of digits $7 + 8 + 9 = 24$, the unit digit is $4$. The checksum is $10 - 4 = 6$.

### How to recognize POSTNET Barcode?

The POSTNET barcode has a graphic form made up of long and short lines.

The POSTNET barcode has a variable length.

The POSTNET barcode begins and ends with a long line.

The binary reading of the POSTNET barcode has a length equal to 2 modulo 5 (because 2 bits 1 are added at the beginning and at the end and all the other characters are on 5 bits).

## Source code

dCode retains ownership of the source code of the script Barcode POSTNET online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be released for free. To download the online Barcode POSTNET script for offline use on PC, iPhone or Android, ask for price quote on contact page !