Code 128 Barcode Generator

The most useful barcode for your own numbers: SKUs, bins, assets, orders. Letters, digits and symbols in a compact code that every scanner reads.

Barcode type

The most flexible 1D barcode. Use it for SKUs, inventory, asset tags and shipping.

Size & style
Checking…
—

🔒 Made in your browser. Your numbers never leave this page. Print PDFs at Actual size / 100%.

How to use it

  1. Type your SKU, order or asset number. Upper and lower case, digits and symbols all work.
  2. Set the bar width for your printer: 13 mil for most labels, 10 mil for small tags on a good printer.
  3. Download, or switch to Bulk / Label sheet to print many at once.

Why Code 128 is the default for internal barcodes

Code 128 can encode every character on a keyboard and squeezes runs of digits into half the space by pairing them (Code Set C). That makes it shorter than Code 39 for the same data, so it fits on small labels. It also includes a check character, so a misread is caught instead of entering the wrong SKU.

Use it for anything that stays inside your business: SKUs, bin locations, work orders, serial numbers, library cards, asset tags. You don't need GS1 or any registration. Amazon's FNSKU labels are Code 128 too.

Code sets A, B and C

Code 128 switches between three character sets. A covers upper case and control characters, B covers upper and lower case, and C packs two digits per symbol. The generator picks the shortest combination automatically, so you don't need to choose.

Keep it scannable

  • Shorter is better. Every character adds width. If a value gets long, consider Data Matrix.
  • Height matters. Make bars at least 0.25 in tall, or about 15% of the barcode's width, whichever is more.
  • Thermal printers: at 203 DPI, choose bar widths that are whole printer dots (about 10 or 15 mil) for the crispest result.
  • Keep the quiet zone of 10 bar widths empty on both sides.

Code 128 vs GS1-128

GS1-128 is Code 128 with a special start character and GS1 Application Identifiers like (01) GTIN and (10) lot. Use GS1-128 when a trading partner asks for it on cartons or pallets; use plain Code 128 for everything else.

FAQ

Code 128: common questions

What can a Code 128 barcode contain?

Any ASCII character: A–Z, a–z, 0–9 and symbols. Avoid accented letters and emoji.

Do I need to register Code 128 numbers?

No. Code 128 is for your own numbers (SKUs, assets, orders). Only retail GTINs need GS1.

How long can it be?

There's no fixed limit, but every character adds width. Under about 20 characters fits most labels.

Is Code 128 the same as an FNSKU?

An FNSKU is a 10-character Amazon code printed as Code 128. Use our FNSKU label tool to print them on Avery sheets.

Make your first barcode in 10 seconds.

Free, no sign-up, and it's ready to print.

Start generating ↑