Tool to decode/encode a postal code with a French LaPoste barcode. The french postal barcode is a code using bars and dots, used to digitally read postcodes when sorting mail with processing machines from the french LaPoste company.
French Postal Barcode - dCode
Tag(s) : Image Processing, Character Encoding
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!
The French postal barcode (by LaPoste) uses bars and dots (or space), which are read from right to left. It encodes the numbers for the Postal/ZIP code or code Cedex (routing code) and (sometimes) the street number (distribution code). It is located, on most automated mails, usually at the opposite of the stamp.
The code is a substitution using this table:
0 | ..|||| |
1 | .|.||| |
2 | .||.|| |
3 | .|||.| |
4 | |..||| |
5 | |.|.|| |
6 | |.||.| |
7 | ||..|| |
8 | ||.|.| |
9 | |||..| |
Example: 75001 is coded .|.||| ..|||| ..|||| |.|.|| ||..||
To decode, substitute the vertical bars by the corresponding numbers and read from right to left.
Example: .|||.| .||.|| .|.||| is read 123
The message consists of sticks and dots (or spaces) by groups of 6: 4 lines and 2 dots, for a french postal code it is at least 30 chars in total.
Any reference to the postman's work, the sorting of mail or the emails is a clue.
dCode retains ownership of the "French Postal Barcode" source code. Except explicit open source licence (indicated Creative Commons / free), the "French Postal Barcode" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or the "French Postal Barcode" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, or API access for "French Postal Barcode" are not public, same for offline use on PC, tablet, iPhone or Android !
The copy-paste of the page "French Postal Barcode" or any of its results, is allowed as long as you cite the online source
Reminder : dCode is free to use.