Tool to generate / decode Codabar barcodes. Codabar is a barcode standard created by Pitney Bowes Corp also known as NW-7, Monarch or Code 2 of 7.
Barcode Codabar - dCode
Tag(s) : Character Encoding, Image Processing
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 Codabar Barcode format is used to code mainly numbers. However, it contains 9 other symbols: -$:/+.ABCD
Each character is coded with 7 bands, of simple width (1 = narrow) or large width (2 = thick) alternately starting with a bar and ending with a vacuum.
0 | 1111122 | 1 | 1111221 |
---|---|---|---|
2 | 1112112 | 3 | 2211111 |
4 | 1121121 | 5 | 2111121 |
6 | 1211112 | 7 | 1211211 |
8 | 1221111 | 9 | 2112111 |
- | 1112211 | $ | 1122111 |
: | 2111212 | / | 2121112 |
. | 2121211 | + | 1122222 |
A | 1122121 | B | 1212112 |
C | 1112122 | D | 1112221 |
Example: The value 0 will be drawn 101010001110 with 1 a black bar, and 0 a white bar / empty space.
A complete barcode, begins and ends with a letter, this allows several combinations of letters possible in order to distinguish different products or applications.
The Codabar standard does not include a checksum.
The deciphering of the Codabar Code consists in the binary reading of the bands, the detection of narrow and thick ones then in their translation via the coding table.
Example: A message 10001011101 translates 1211211 (1 = narrow, 2 = thick) and corresponds to the number 7
The Codabar barcode has a graphic form composed of lines of 2 different widths (thin and thick).
The Codabar barcode has a variable length.
dCode retains ownership of the "Barcode Codabar" source code. Any algorithm for the "Barcode Codabar" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Barcode Codabar" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Barcode Codabar" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Barcode Codabar" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Barcode Codabar on dCode.fr [online website], retrieved on 2025-04-16,