CODE 128 Barcode Generator

Turn numbers, SKUs, serial IDs and ASCII text into high-density CODE 128 barcodes. Export crisp PNG or vector SVG free—single or batch ZIP.

Letters, numbers and standard symbols. Best for inventory, SKUs and general labels.

CODE 128 ready — download as PNG or SVG.

Vector formats (PDF / EPS)

Why CODE 128 is the default for numbers, SKUs & logistics

Unlike retail UPC-A or EAN-13 (which require fixed 12- or 13-digit registered product numbers) and older CODE 39 (which only handles uppercase letters and produces very wide bars), CODE 128 accepts full 7-bit ASCII (uppercase, lowercase, numbers, hyphens, slashes) and adds a built-in Modulo-103 checksum to catch misreads.

When your input is purely numeric, Code 128 automatically shifts into Subset C (CODE 128C), packing two digits per symbol character—cutting physical label width roughly in half for serial numbers, order IDs and carton barcodes.

Side-by-side real output of CODE 128 alphanumeric versus compact CODE 128C numeric pairs, EAN-13 and UPC-A
Notice top-right vs top-left: a 12-digit numeric string (123456789012) packs noticeably narrower in CODE 128C than a 12-character alphanumeric SKU.

CODE 128 vs CODE 39 vs EAN-13

FeatureCODE 128CODE 39EAN-13 / UPC-A
Supported dataFull ASCII + compressed numeric pairsUppercase A–Z, 0–9, - . $ / + %Fixed 12–13 / 11–12 digits only
Physical densityVery compact (best on small bins/tags)Wide bars (needs room)Standard retail width
ChecksumMandatory Modulo-103 built inOptional (usually off)Mandatory trailing check digit
Best used forWarehouses, serial numbers, cartons, shippingOlder DoD / legacy asset badgesPOS retail checkout packaging

Label & thermal printer tips

  • Avoid narrow bar scaling artifacts: on 203 DPI thermal printers (Zebra, Brother, Rollo), keep Bar width at Standard (2) or Wide (3) and download SVG when building templates at exact print dimensions.
  • Protect the left & right quiet zones: 1D laser scanners calibrate bar thickness on the empty margin before the start bars and after the stop bars. Never trim PNG margins tight to the ink.
  • Keep strings practical: values above 35–40 characters become very long for 2-inch stickers; for dense payloads or smartphone scanning, use a QR code or read our 2D Data Matrix comparison.

Related tools

Frequently asked questions

What characters can a CODE 128 barcode hold?

All 128 ASCII characters: uppercase and lowercase letters, digits 0–9, spaces and standard punctuation. Even-length numeric strings automatically use compact Code 128C pairing.

Why use CODE 128 instead of CODE 39?

CODE 128 supports lowercase letters, includes an automatic checksum digit, and takes up roughly half as much label width for numbers.

Can I turn plain numbers into a barcode here?

Yes—paste any order ID, invoice number or part code above and download PNG or SVG free.

What width and height settings work best for shipping and warehouse labels?

Use Standard or Wide bars with Standard or Tall height for 203–300 DPI label printers, and keep white quiet zones clear on both ends.

Can I generate hundreds of CODE 128 numbers from a spreadsheet?

Yes. Open the Bulk barcodes tab above (or use the dedicated Bulk Barcode Generator) to batch up to 100 codes per ZIP.