Free Code 128 Barcode Generator — Create CODE128 Online
Table of Contents
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.
| Property | Value |
|---|---|
| Character set | Full ASCII (128 characters) |
| Data type | Alphanumeric + symbols + control chars |
| Checksum | Mandatory (auto-calculated) |
| Variable length | Yes |
| Density | High — compact at any length |
| Industry use | Shipping, 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
- Open the free barcode generator tool above
- Select CODE128 from the format dropdown
- Type or paste your data in the input field (letters, numbers, or symbols)
- Adjust bar width, height, and font size if needed
- 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.
- Numbers only: Code 128C encodes pairs of digits super-efficiently — use this for numeric-only data like serial numbers
- Mixed alphanumeric: Code 128B handles letters, digits, and symbols
- Control characters: Code 128A is used for control codes like FNC1 (GS1 applications)
The generator selects the optimal character set automatically. You just provide the raw data.
Sell Custom Apparel — We Handle Printing & Free ShippingCommon Code 128 Use Cases
| Use Case | Typical Data | Example |
|---|---|---|
| Warehouse inventory | SKU or item code | WH-ITEM-00492 |
| Shipping labels | Tracking number | 1Z999AA10123456784 |
| Healthcare wristbands | Patient ID | PAT-20260409-001 |
| Asset tracking | Asset tag | ASSET-IT-0047 |
| Employee badges | Employee ID | EMP-5521 |
| Event tickets | Ticket number | EVT-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:
| Format | Best For | Notes |
|---|---|---|
| PNG | Direct printing, email, embedding in documents | Fixed resolution — download at the size you need |
| SVG | Print design, Illustrator, Inkscape, Figma, labels | Scales 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:
| Format | Best For | Data Type |
|---|---|---|
| Code 128 | Internal labels, shipping, general purpose | Full ASCII |
| Code 39 | Legacy systems, automotive, military | Uppercase + digits + 7 symbols |
| EAN-13 | Retail products (international) | 13 digits only |
| UPC-A | Retail products (North America) | 12 digits only |
| ITF-14 | Shipping cartons, outer packaging | 14 digits only |
| Pharmacode | Pharmaceutical packaging | Numeric 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 GeneratorFrequently 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.

