Skip to content
QR Code Toolbox

Free forever. Unlocks every style and format.

Code 128 barcode generator

Turn any text or number into a Code 128 barcode. We pick the most compact encoding automatically, so your barcode is as short as it can be.

Code 128 barcode

Shipping, warehouses, inventory and asset tags

Letters, numbers and symbols. Shorter is easier to scan.

Style

Show the text under the bars
Standard
Transparent background For designs and packaging artwork. Print it on a light surface.

How to make a Code 128 barcode

  1. 1

    Type your text

    A SKU, serial number, tracking number or Amazon FNSKU. Letters, digits and symbols all work.

  2. 2

    Keep it short

    Every character adds width. Under 20 characters fits comfortably on a standard label.

  3. 3

    Set the height

    Taller bars are easier to hit with a handheld scanner. Standard works for most labels.

  4. 4

    Download

    PNG for label printers, PDF or EPS for print shops. Print PNGs at 100%.

What Code 128 is good for

Code 128 holds every standard keyboard character (letters, digits and punctuation) and packs numbers tightly. That’s why it’s the default barcode in logistics:

  • Shipping and tracking labels
  • Warehouse bins, shelves and pallets
  • Inventory and asset tags
  • Amazon FNSKU labels (the codes that start with X00)
  • Tickets, membership cards and ID badges

GS1-128, used on shipping labels for pallet codes, batch numbers and best-before dates, is Code 128 with special GS1 formatting. A GS1-128 generator is coming.

Code sets A, B and C (handled for you)

Code 128 has three character sets. Set A has capitals and control characters, set B has capitals and lowercase, and set C stores two digits per character, so numbers take half the space.

Many generators make you choose. We switch between sets inside the barcode automatically to get the shortest result. A 12-digit number comes out about 40% narrower than it would in set B alone, which means bigger, easier-to-scan bars on the same label.

Sizing and printing tips

  • Keep the quiet zone. Leave at least 10 bar-widths of blank space on each side. The download already includes it.
  • Bars at least 6 mm (¼ inch) tall for handheld scanners. Use the height slider if your label has room.
  • Thermal label printers (Zebra, Rollo, DYMO) print at 203 or 300 dpi. Print the PNG at 100% with “fit to page” off, so every bar lands on whole printer dots. Our PNGs are built with whole pixels per bar for exactly this reason.
  • Test it with the scanner you’ll actually use, or upload a photo to our online scanner.

Code 128 vs Code 39

Code 128Code 39
CharactersAll 128 standard ASCII characters43: A-Z, 0-9, space, - . $ / + %
WidthAbout 30% narrower for text, much narrower for numbersWider
Check characterBuilt in, alwaysOptional
Use it whenYou get to chooseA system or spec requires it

Questions

Yes. Making and downloading barcodes is free, including for commercial use. PNG downloads need no account. SVG, PDF and EPS files need a free account. There’s no watermark, ever.

All 128 standard ASCII characters: upper and lowercase letters, digits, punctuation and control characters like tab. Accented letters and emoji aren’t supported. For those, use a Data Matrix or QR code.

Yes. A check character (modulo 103) is always added at the end. It isn’t printed in the text under the bars, and scanners remove it when they read the barcode, so you never see it.

The standard has no fixed limit, but every character makes the barcode wider. Most handheld scanners are comfortable up to 20-30 characters. For long content, a Data Matrix holds much more in a small square.

Yes. FNSKU labels are Code 128. Type your FNSKU (usually starting with X00) and download it. Seller Central can also print full labels with the product title if you need them.

Mixing letters and numbers forces switches between code sets. Long runs of digits (4 or more in a row) are packed two per character, so numeric codes stay short.
QR Code Toolbox

Every QR tool you need. Free, fast, and your codes never die.

Create QR codes

  • URL QR code
  • Text QR code
  • WiFi QR code
  • vCard QR code
  • Email QR code
  • SMS QR code
  • Phone call QR code
  • WhatsApp QR code
  • Location QR code
  • Event QR code
  • UPI QR code
  • SEPA QR code
  • PayPal QR code
  • Bitcoin QR code
  • Google review QR code
  • Social media QR code
  • App Store QR code
  • PDF QR code
  • Menu QR code

Design

  • QR code with logo
  • Custom color QR code
  • Transparent QR code
  • QR code frames
  • AI art QR code

Scan & check

  • QR code scanner
  • QR safety checker
  • QR code tester
  • Dead QR code rescue
  • Extract QR from PDF

Bulk & print

  • Bulk QR code generator
  • QR code size calculator
  • QR label sheets
  • Free QR code API

Barcodes & GS1

© 2026 QR Code Toolbox Pricing Privacy Terms support@qrcodetoolbox.com

QR Code is a registered trademark of DENSO WAVE INCORPORATED.