Tool to efficiently decode and encode French postal codes using the La Poste barcode, using bars and dots.
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 postal barcode is a coding system used by French postal company LaPoste to digitally represent postal codes. It works by using bars and dots that represent the digits of the postcode, making them easier to read by sorting machines.
The French postal barcode 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.
It is often printed on envelopes or packages, and its distinctive format makes it easy to spot visually.
Any reference to the postman's work, the sorting of mail or the emails is a clue.
The postal barcode used by La Poste (France) for sorting mail does not contain information on the date on which a piece of mail was left.
To know the date on which a letter was posted, it is the postal stamp, generally affixed to stamps, which contain the time marks (the date).
Also, if the mail uses a tracking number, temporal information may be provided by La Poste and can make it possible to know on what date the mail was scanned for the first time (but not to know on what date it was deposited, if the scan did not take place immediately).
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, breaker, 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, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.
The copy-paste of the page "French Postal Barcode" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
French Postal Barcode on dCode.fr [online website], retrieved on 2024-11-18,