Code 128 Generator
Encode letters, numbers and symbols in a compact barcode.
- 100% Free
- No Sign Up
- Works in Your Browser
Code 128 generator
Code 128 for letters, numbers and symbols
Letters, digits, punctuation and spaces (any ASCII or Latin-1 character), up to 80.
Put a tree, a shape or your own picture inside the bars.
SVG and PDF are vectors: sharp at any size, best for print.
Made in your browser. Nothing is uploaded.
More Barcode Tools
View all tools- Barcode generatorMake UPC, EAN, Code 128 and 2D barcodes
- UPC barcode generatorUPC-A barcodes for US and Canadian retail
- EAN-13 barcode generatorEAN-13 barcodes for retail worldwide
- EAN-8 barcode generatorShort EAN-8 barcodes for small packs
- ISBN barcode generatorBookland EAN barcodes for book covers
- Barcode scannerScan barcodes with your camera
- Design barcode generatorBarcodes with art in the bars, scan-checked
- Check digit calculatorGS1 check digits for UPC, EAN and GTIN
- Bulk barcode generatorHundreds of barcodes from a list or CSV
Every barcode you need, made right in your browser.
No software. No uploads. No signup.
Browse all 24 tools- Barcode tools
- 24
- Reference guides
- 7
- Files uploaded
- 0
How to use the code 128 generator
Three steps, all in your browser.
- 1
Enter your data
Type or paste the number or text to encode. Errors are explained.
- 2
Adjust the barcode
Change the options if you need to. The preview updates as you type.
- 3
Download
Save the result and print it. Test a printed sample before a big run.
Code 128 Generator: what to know
Code 128 is the workhorse barcode for anything that isn't a retail product: shipping labels, inventory and asset tags, documents, tickets and work orders. It encodes all 128 ASCII characters, so upper and lower case letters, digits and punctuation all work, and it's denser than older symbologies such as Code 39.
Code 128 has three code sets, A, B and C, and switches between them inside one barcode. Set C stores two digits per symbol character, so long numbers become about half the length. The generator picks the shortest combination for your data and adds the mandatory mod 103 check character before the stop pattern; scanners check it and don't show it.
If a customer or carrier asks for GS1-128 rather than plain Code 128, use the GS1-128 generator instead: it's the same symbology but starts with an FNC1 character and organizes the data in GS1 Application Identifiers.
Popular uses
- Warehouse bin, shelf and pallet location labels
- Asset tags for equipment, IT and tools
- Order, invoice and document numbers on paperwork
- Membership cards, tickets and wristbands
Tips for the best result
- Numbers with an even count of digits encode most compactly in code set C.
- Leave a quiet zone of at least 10 times the narrowest bar on each side.
- Keep data short where you can: every character makes the barcode wider at the same bar width.
Read how JustYourBarcode works and our privacy details. Numbers, pictures, CSV files and camera frames are processed in your browser and are never sent to our server. A barcode doesn't register a product number: retail UPC and EAN numbers come from GS1.