Australia Post 4-State Barcode Decoder

Please enter your barcode below, using the following characters:
A = Ascending bar, D = Descending bar, F = Full bar, T or S = Track (short) bar
Format Control Code:  
Sorting Code:
Customer Information Field:
Numeric   Alphanumeric   Unknown
Valid format codes: 11 = Standard Customer Barcode, 45 = Reply Paid Barcode, 59 = Customer Barcode 2, 62 = Customer Barcode 3

Sample Data

Here are some sample barcodes from the Guide to Printing the 4-State Barcode.
  • ATFAFAAFTFADAATFADADAATTADAFATAATDDAT 11-39549554
  • ATADTFADDFAAAFTFFAFAFAFFFFFAFFFFFTTDDTTAFADAFFFTTAAT 59-56439111-ABA 9

Remarks

This barcode is used by Australia Post. It has a variable length of 37 to 67 bars, and is height-modulated (the vertical bars are different lengths) and 4-state (there are four different kinds of bars). Each encoded digit is represented by a group of two adjacent bars. Part of the barcode is customer-defined; the person who prints it out can decide what to put there. The specification document defines an encoding for storing alphanumeric characters in three bars each, or users can make up their own encoding. No matter what information is included, the entire barcode is protected by a sophisticated Reed-Solomon error correcting system.

More Information

Download the Decoder

Here is the Javascript code for the Australia Post 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.
auspost4.js
File Size: 19 kb
File Type: js
Download File

auspost4.html
File Size: 2 kb
File Type: html
Download File