Code 128 font encoder

Typing plain text in a Code 128 font gives a barcode that won't scan. Paste your text here to get the font-ready version with the start, checksum and stop characters added, then use it in Excel, Word or any app.

Updated

Code 128 font encoderRuns in your browser
Mode

Letters, digits, spaces and symbols. The start, checksum and stop characters are added for you.

ÌBarcodeFontQÎ

Preview in Libre Barcode 128 Text. This is exactly what you'll see after applying the font.

Need the font? Free Code 128 fonts for Windows and Mac, licensed for commercial use:

How to use a Code 128 barcode font

  1. Download and install a Code 128 font. "Code 128 with text" prints the readable value under the bars.
  2. Type your value into the encoder above and click Copy.
  3. Paste the result into your document or spreadsheet.
  4. Select it and change the font to Libre Barcode 128 or Libre Barcode 128 Text.
  5. If the fonts do not appear or you are using the web version of excel, try entering the font's complete name and then pressing ENTER.
  6. Set the size to at least 36 pt, and leave some empty space on both sides of the barcode.

Code 128 font in Excel

To turn a whole column of values into barcodes, use the List for Excel mode:

  1. Select your values in Excel (for example A2:A200) and copy them.
  2. In the encoder, choose List for Excel and paste them into the left box.
  3. Click Copy all, click the first cell of an empty column (for example B2) and paste.
  4. Select that column and set the font to Libre Barcode 128 Text. Widen the column and increase the row height so each barcode fits.

The encoded values don't update by themselves. If a value in column A changes, encode it again. If your data changes often, use a formula instead: the Code 128 Excel formula encodes each value automatically in Excel 2013 or newer. The encoder still makes slightly shorter barcodes for long numbers.

Code 128 font in Word

Paste the encoded text, select it and apply the font. One thing to watch: Word's AutoCorrect can change characters as you type, for example turning straight quotes (" ') into curly ones. A single changed character breaks the barcode. Paste the encoded text rather than typing it, or turn off "Replace as you type" in Word's AutoCorrect options. For mail merge, encode your data list first and merge the encoded values.

Why plain text doesn't scan

A barcode font only draws bars for the characters it's given. A Code 128 barcode needs three things your text doesn't contain:

For example, BarcodeFont becomes ÌBarcodeFontQÎ. Ì is the start character, Q is the checksum and Î is the stop character. The checksum depends on every character, so it has to be calculated for each value. That's what the encoder does.

Why the encoded text looks strange

The extra characters like Ì, Î and Ç are how barcode fonts represent special Code 128 symbols. Two more things you may notice:

Code 128 font not scanning?

Code 128 or Code 39?

Code 128 produces shorter barcodes and supports lowercase letters and all common symbols, but every value needs encoding. Code 39 is wider and supports fewer characters, but you only add an asterisk on each side, which is easy to do with a formula. For most inventory and shipping labels, Code 128 is the better choice. For quick spreadsheets that change often, Code 39 is simpler. Both fonts are on the barcode fonts page, and if you need a barcode image instead of a font, use the barcode generator.