About Code 128
Code 128 is a high-density linear barcode that can encode all 128 ASCII characters — uppercase and lowercase letters, digits and symbols. It is the most versatile 1D barcode and the backbone of logistics.
The generator automatically switches between the code sets A, B and C to produce the shortest possible barcode, and adds the mandatory Modulo 103 check character for you. Its GS1 variant (GS1-128) is used on shipping labels and pallets.
Technical specifications
| Character set | Full ASCII (0–127) |
|---|---|
| Length | Variable |
| Check character | Modulo 103 (automatic) |
| Standard | ISO/IEC 15417 |
| Quiet zone | At least 10 modules on each side |
Common uses
- Shipping and courier labels
- Warehouse, inventory and asset tracking
- E-commerce order and SKU labels
- Healthcare specimen and patient labels
How to create a Code 128
- Type or paste your data into the content field.
- Adjust colors, size, human-readable text and quiet zone.
- Check the live preview — it updates instantly as you type.
- Download as PNG, JPG, SVG, PDF or EPS, or print it directly.
Why use our Code 128 generator?
Free, no watermark
Unlimited barcodes for personal and commercial use, without registration.
Print-ready vectors
SVG, PDF and EPS downloads stay sharp at any size — perfect for packaging and print shops.
Private by design
Everything is generated locally in your browser. Your data is never uploaded.
Works everywhere
Optimised for phones, tablets and desktops, and fully keyboard and screen-reader accessible.
Frequently asked questions
What is the difference between Code 128 and Code 39?
Code 128 supports all ASCII characters including lowercase letters and is much more compact. Code 39 only supports uppercase letters, digits and a few symbols, but is very simple and robust.
Is this Code 128 generator really free?
Yes. You can create and download as many codes as you need, for free, with no account and no watermark.
Can I use the codes commercially?
Yes. The generated images are yours to use on products, packaging, labels, documents and marketing. For retail product barcodes (EAN/UPC) you need valid numbers from GS1.
Which file formats can I download?
PNG and JPG for screens and office documents, and SVG, PDF and EPS vector files for professional printing.
Is my data stored or shared?
No. Codes are generated entirely in your browser with JavaScript. Nothing you type is sent to our servers.
Related tools
- EAN-13 GeneratorCreate EAN-13 barcodes for retail products worldwide, with automatic check digit calculation.Open tool
- EAN-8 GeneratorCreate compact EAN-8 barcodes for small retail packages where EAN-13 does not fit.Open tool
- UPC-A GeneratorCreate UPC-A barcodes, the standard 12-digit retail barcode in the USA and Canada.Open tool
- UPC-E GeneratorCreate zero-suppressed UPC-E barcodes for small products in the North American market.Open tool
- Code 39 GeneratorCreate Code 39 barcodes with optional Mod 43 check digit, used in automotive, defense and ID cards.Open tool
- ITF-14 GeneratorCreate ITF-14 (Interleaved 2 of 5) barcodes with bearer bars for cartons and outer packaging.Open tool