Code 128 Barcode Generator
This free Code 128 barcode generator encodes any ASCII text into a print-ready barcode. Code 128 is the workhorse of shipping labels, asset tracking and internal logistics because it packs data compactly and handles the full character set - letters, digits and symbols. Type your data above, and download the result as a high-resolution PNG or a vector SVG. Generation runs locally in your browser: no signup, no watermark, no upload.
What a Code 128 barcode can hold
- Full ASCII support - A-Z, a-z, 0-9, punctuation and control characters.
- Flexible length - from 1 character to dozens; the barcode just gets wider.
- Automatic check character - a modulo-103 check character is computed and encoded for you automatically.
- Three internal subsets - Code 128 A, B and C are switched automatically to pack your data as densely as possible.
A real Code 128 barcode generated by this site: THEBARCODEMAKER-128
Typical uses for Code 128
- Shipping labels and waybills (courier tracking numbers)
- Asset tags, equipment IDs and serial numbers
- Warehouse bin labels and internal inventory codes
- Membership and library cards
Code 128 vs GS1-128
GS1-128 is not a separate symbology - it is Code 128 carrying GS1 Application Identifier data such as batch numbers and expiry dates, with special separator characters between fields. If you need to print GS1-128 logistics labels for retail partners, use the GS1 data you have been assigned and encode it with a tool that understands Application Identifiers. For everything else - tracking numbers, asset tags, internal codes - the plain Code 128 generator above is exactly right.
Printing tips
- Keep a quiet zone - leave at least 10× the narrowest bar width of blank space on both sides; the SVG export makes adding margins easy.
- Print dark bars on light backgrounds - scanners read the contrast, not the color.
- Verify after printing - test one label with your real scanner before rolling out a batch.
Code 128 FAQ
What data can a Code 128 barcode contain?
The full ASCII range: letters, digits, punctuation and control characters. Length is flexible - shorter data produces a narrower barcode.
Does Code 128 have a check digit?
Yes, a mandatory modulo-103 check character is computed and encoded automatically. It is not shown as human-readable text.
Is Code 128 the same as GS1-128?
No. GS1-128 is Code 128 carrying GS1 Application Identifier data (like batch numbers and expiry dates). Plain Code 128 encodes your text as-is.
Can scanners read Code 128 without the text line?
Yes. The human-readable text is optional and has no effect on scanning - switch it off with the Show text toggle.
Need a different symbology? Back to the online barcode generator with all 13 formats, or try the EAN-13 generator for retail products.