Skip to content
100% local

Codabar barcode generator

Generate a scannable Codabar (NW-7) barcode from digits and a few symbols.

Output

Codabar barcode generator

Type a value and this tool draws it as a Codabar barcode — the symbology still used on library cards, blood bank labels, air-express waybills and some older ID badges. Codabar (also called NW-7 or 2-of-7) only encodes digits 0–9 and six punctuation characters (- $ : / . +), which is why the barcode is easy to print reliably on the low-cost printers those industries have relied on for decades.

Every Codabar symbol needs a start and a stop letter — A, B, C or D — framing the payload at each end. By default this tool adds the letter you choose in "Start/stop letter" automatically, so you only type the data itself. Turn on "Keep start/stop letters in text" if you would rather type the full framed value yourself (for example "A12345B") and have it validated as-is. "Input format" lets the value come in as plain text, as pairs of hex digits, or as a list of byte numbers — handy when a payload originates from another system as raw bytes rather than typed characters.

Flip "Direction" to decode a bar pattern back into its original value — paste the 0/1 sequence this tool produced in binary output format and it reconstructs the text, again respecting whether you want the start/stop letters kept or stripped. Any character outside the Codabar alphabet is rejected immediately, with the exact character named in the message, so a typo is easy to spot rather than silently dropped. Bar height, bar width and the quiet zone around the code are all adjustable, and the barcode updates as you type.

Everything runs locally in your browser — the value you type, and the barcode it becomes, are never uploaded anywhere. Copy the result, download it as a .txt file, or send the output back into the input to keep working on it.

FAQ

What characters can a Codabar barcode hold?
Only the digits 0–9 and six symbols: - $ : / . + — plus the start and stop letters A, B, C and D that frame every code.
Do I need to add the start and stop letters myself?
No. Pick a letter in "Start/stop letter" and it is added automatically. Turn on "Keep start/stop letters in text" only if you want to type the full framed value yourself.
Can this tool read a barcode image back into text?
It decodes the bar pattern this tool generates (the 0/1 sequence from "Bar pattern" output format), not a photograph or scan of a printed barcode.
What's the input format option for?
It lets you type the value directly, or supply it as hex digit pairs or a list of byte numbers — useful when the payload comes from another tool as raw bytes.
Is my text uploaded anywhere?
No. The barcode is generated entirely in your browser — nothing you type ever leaves your device.