Barcode Sensei

Make a Code 128 barcode

Code 128 packs letters, digits and symbols into a short barcode, and is used on shipping labels, tickets and asset tags.

Make many Code 128 barcodes at once, from a list or a CSV file.

Letters without accents, digits, spaces and symbols.

The narrowest bar's width. For a label printer's small labels, pick 0.25 mm: 2 dots at 203 dpi, about 3 at 300 dpi.

Looks right.

About Code 128

For your own things, such as shipping labels, tickets, asset tags and the shelves, parts and orders of your stock, the barcode to use is Code 128. It packs letters, digits and symbols into a short barcode. It takes letters without accents, digits, spaces and symbols such as #, / and +, up to 80 characters here, and keeps capitals and small letters as you type them.

Its size is the width of its narrowest bar. We start at 0.33 mm, where our sample, Order 12345, prints 54.45 by 29.37 mm with its quiet zones. Pick 0.25 mm for a label printer's small labels, where a narrow bar is 2 dots at 203 dpi and nearly 3 at 300 dpi, or 0.5 mm for a code read from further away. The quiet zone is a clear margin of 10 times the narrowest bar on each side, and our downloads include it.

Every Code 128 carries a check character, worked out from all the others: each character's value is weighted by its place, and the remainder after dividing the total by 103 picks it. A scanner works it out again and refuses a read that doesn't match, so a smudged bar is caught rather than misread. We add it for you, and it isn't printed in the text under the bars.

Code 128 isn't for products sold in shops, which need an EAN-13 or a UPC-A with a number from GS1. GS1-128 is a Code 128 too, holding GS1's application identifiers, such as a GTIN with its batch and dates, for cases and pallets.

Questions people ask

What can a Code 128 barcode hold?

Letters without accents, digits, spaces and symbols such as #, / and +, up to 80 characters here. Capitals and small letters make different codes, so type it as the system that reads it expects.

Can I use Code 128 on products sold in shops?

No. A product sold in shops needs an EAN-13 or a UPC-A, with a number that comes from GS1. Code 128 is for your own labels, stock and parcels.

What size should a Code 128 barcode be?

Start at 0.33 mm, the size we pick for you. Go down to 0.25 mm for a label printer's small labels, or up to 0.5 mm for a code read from further away, and scan one before you print many.

What's the difference between Code 128 and GS1-128?

GS1-128 is a Code 128 whose data follows GS1's rules, with application identifiers such as (01) for a GTIN and (10) for its batch. For your own codes, plain Code 128 is the one.