How to Generate a Code 128 Barcode
Here’s how to use the free code 128 barcode generator from Camcode.
Follow these four simple steps:
- Confirm Code 128 is selected as the symbology. It is preselected here; search the 27 types if you need a different one.
- Type your letters, numbers or symbols into the barcode contents field. The generator then picks the optimal subset automatically.
- Preview the live Code 128 barcode to confirm it scans
- Then export a print-ready SVG for your label artwork.
What is a Code 128 Barcode?
Code 128 is a high-density linear (1D) barcode symbology defined in the ISO/IEC 15417 standard and developed by Computer Identics in 1981. The 128 refers to the 128 ASCII characters it can encode, not a character limit.
Code 128 is variable-length: it encodes short SKUs or long serial strings, with practical length governed by your scanner field of view and label size, not the symbology itself. It reaches its density by encoding each character in three bars and three spaces and by offering a numeric mode that packs two digits into a single symbol character. Barcodes built on GS1 standards are now scanned about 10 billion times a day worldwide.
Code 128 is one of the core linear symbologies behind that logistics volume. For how it stacks up against other symbologies, see Camcode’s complete guide to barcode types and standards.
How Many Characters Can a Code 128 Barcode Hold?
Code 128 has no fixed character limit. The 128 in the name refers to the ASCII characters it can encode, not a maximum length.
Because Code 128 is variable-length, practical capacity is limited by scanner field of view and label size rather than by the symbology. In numeric mode (subset C) it packs two digits into one symbol character, so long all-number strings such as serial numbers stay compact.

For how capacity differs across symbologies, see how much data a barcode can store.
Need Barcode or QR Code Labels?
Camcode is a developer and manufacturer of customized, durable asset tracking labels and automatic data capture tracking solutions for applications where permanent identification is critical. With over 50 years experience, we can create the perfect tracking solution for your asset, facility, maintenance, or warehouse management project. Contact us now to how you can start tracking better today.
A Worldwide Leader in Durable Labels
The makers of labels that go anywhere.
From your utility box to outer space, Camcode’s durable pre-print barcode labels track millions of assets and locations across the globe.
Why do you need durable labels? Camcode’s asset tags improve the efficiency of asset tracking systems by eliminating human error. Our proprietary manufacturing processes and coating technologies offer the ultimate durability for practically every application.
Asset Tags Made Specifically for Your Application
Camcode has the experience to provide the right labels for any application. Learn more about our label offerings for your industry, or Contact Us to get help from one of our experienced sales engineers now.
Get a Free Barcode & QR Code Label Sample Kit
Request a free asset label sample kit today and we will send you a kit to test our extremely durable labels in your own operating environment.
Frequently Asked Questions
A Code 128 barcode is a high-density, linear barcode format capable of encoding letters, numbers, and special characters. It is widely used in logistics, shipping, and inventory systems due to its compact size and high data capacity.
Code 128 supports alphanumeric characters (A–Z, 0–9), special symbols and the full ASCII character set depending on the subset used. This makes it ideal for product IDs, serial numbers and shipping labels. It has no fixed character limit; the 128 refers to the ASCII characters it encodes, not a maximum length.
Code 128 barcodes are commonly used in:
- Shipping and logistics (e.g., package tracking)
- Warehouse management
- Inventory control systems
- Healthcare and asset tracking
Code 128 is widely supported and can be scanned by most modern barcode scanners and mobile apps. Ensure your scanner is configured to read Code 128. Scan reliability depends as much on print quality and label substrate as on the scanner.
Code 128 is more compact than Code 39, supports far more characters than numeric-only barcodes and encodes data more efficiently. It is preferred when space and data density matter.
Code 128A encodes uppercase letters, digits and control characters:
- Code 128B encodes the full upper and lowercase ASCII set
- Code 128C encodes numbers only at double density (two digits per character).
Generators switch subsets automatically for the most compact barcode.
Yes. Code 128 includes a modulo-103 checksum character that the scanner calculates and verifies automatically, so a damaged barcode fails to scan rather than returning incorrect data.
Keep Operations Efficient with Barcode Asset Tracking Tags
Find exactly what you need. And, if you don’t find it, build it with Camcode. Talk to our team today.


















































