Blog
Wild & Free Tools

Free Code 128 Barcode Generator — Create CODE128 Online

Last updated: February 26, 2026 6 min read

Table of Contents

  1. What Is Code 128?
  2. How to Generate a Code 128 Barcode
  3. Code 128 Character Limits and Data Rules
  4. Common Code 128 Use Cases
  5. PNG vs SVG: Which Download Format to Use
  6. Code 128 vs Other Barcode Formats
  7. Frequently Asked Questions

Code 128 is the most versatile 1D barcode format in existence. It encodes all 128 ASCII characters, scales to any length, and is accepted by every major barcode scanner on the planet. If you need a barcode for shipping, inventory, retail, healthcare, or manufacturing — Code 128 is almost certainly what you want.

This free generator creates print-ready Code 128 barcodes directly in your browser. No file upload, no account, no watermark. Enter your data, adjust the dimensions, and download as PNG or scalable SVG in seconds.

What Is Code 128?

Code 128 is a high-density linear barcode symbology developed in 1981. Unlike simpler formats like Code 39, it uses three character sets (A, B, and C) to encode the full ASCII range including lowercase letters, numbers, and control characters.

PropertyValue
Character setFull ASCII (128 characters)
Data typeAlphanumeric + symbols + control chars
ChecksumMandatory (auto-calculated)
Variable lengthYes
DensityHigh — compact at any length
Industry useShipping, logistics, inventory, retail, healthcare

The checksum digit is calculated automatically — you never need to compute it yourself. Just enter your data and the barcode is generated with the correct check character.

How to Generate a Code 128 Barcode

  1. Open the free barcode generator tool above
  2. Select CODE128 from the format dropdown
  3. Type or paste your data in the input field (letters, numbers, or symbols)
  4. Adjust bar width, height, and font size if needed
  5. Click Download PNG for print-ready use, or Download SVG for scalable vector output

The barcode previews live as you type. No submit button, no waiting — the image updates instantly in your browser.

Code 128 Character Limits and Data Rules

Code 128 has no fixed maximum length, but practical scanner limits apply. Most scanners reliably read barcodes up to 48 characters. Beyond that, the barcode becomes physically very wide and scanning accuracy drops.

The generator selects the optimal character set automatically. You just provide the raw data.

Sell Custom Apparel — We Handle Printing & Free Shipping

Common Code 128 Use Cases

Use CaseTypical DataExample
Warehouse inventorySKU or item codeWH-ITEM-00492
Shipping labelsTracking number1Z999AA10123456784
Healthcare wristbandsPatient IDPAT-20260409-001
Asset trackingAsset tagASSET-IT-0047
Employee badgesEmployee IDEMP-5521
Event ticketsTicket numberEVT-2026-8831

For product retail barcodes (shelf-ready products), EAN-13 or UPC-A are the industry standard. For internal labeling, Code 128 is almost always the right choice.

PNG vs SVG: Which Download Format to Use

The generator offers both PNG and SVG output. The right choice depends on how you plan to use the barcode:

FormatBest ForNotes
PNGDirect printing, email, embedding in documentsFixed resolution — download at the size you need
SVGPrint design, Illustrator, Inkscape, Figma, labelsScales to any size without pixelation — preferred for label design

If you are placing a barcode on a label that will be printed at multiple sizes, always use SVG. For a one-time print job at a fixed size, PNG is perfectly fine.

Code 128 vs Other Barcode Formats

Not sure if Code 128 is right for your project? Here is how it compares to the other formats supported by this tool:

FormatBest ForData Type
Code 128Internal labels, shipping, general purposeFull ASCII
Code 39Legacy systems, automotive, militaryUppercase + digits + 7 symbols
EAN-13Retail products (international)13 digits only
UPC-ARetail products (North America)12 digits only
ITF-14Shipping cartons, outer packaging14 digits only
PharmacodePharmaceutical packagingNumeric only

See the full barcode format comparison guide for a deeper breakdown of when to use each symbology.

Try It Free — No Signup Required

Runs 100% in your browser. No data is collected, stored, or sent anywhere.

Open Free Barcode Generator

Frequently Asked Questions

Is Code 128 the same as a UPC barcode?

No. UPC-A and EAN-13 are retail-specific formats with fixed digit lengths and a GS1 registration system. Code 128 is a general-purpose format for any alphanumeric data. Retailers scan products at checkout using EAN/UPC; warehouses and logistics use Code 128 for internal tracking.

Does Code 128 require a registered number?

No. Unlike UPC/EAN barcodes that require a GS1 company prefix, Code 128 barcodes can encode any data you choose. They are ideal for internal inventory and labeling systems where you control the scanner.

Can I generate Code 128 barcodes for free without a watermark?

Yes. This tool is completely free and produces clean barcodes with no watermarks. Download as PNG or SVG with no hidden fees or account required.

Kevin Harris
Kevin Harris Finance & Calculator Writer

Kevin is a certified financial planner passionate about making financial literacy tools free and accessible. He covers personal finance calculators, investment tools, and budgeting guides.

More articles by Kevin →
Launch Your Own Clothing Brand — No Inventory, No Risk