Code 128 Barcode Generator
Type any text or number. Download the barcode as SVG or PNG at the size you will print.
https://flxcode.com/code-128-barcode-generator/
Letters, digits and keyboard symbols, up to 80 characters. Long runs of digits are packed to save width.
Size and print
100% is the 0.33 mm module. Retail symbols allow 80 to 200%.
The width of the narrowest bar.
PNG is drawn at this resolution with whole pixels per module, so edges stay sharp, and carries its real size in mm. SVG has the real size in mm too.
This draws the image. It does not register a number: GS1 issues the company prefix that retail numbers start with.
Example preview
Example- Printed size
- 58.1 mm × 18.6 mm, quiet zones included
- Module width (X)
- 0.330 mm
- Bar height
- 15.00 mm
- Quiet zone
- 3.30 mm left, 3.30 mm right (10 and 10 modules)
- At 300 dpi
- 3.9 printer dots per module
The preview is scaled to fit. The files keep the real size.
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.
Problem or idea? Email us
How to make a Code 128 barcode
- Type the text or number. Keep it under 80 characters.
- Open Size and print. Set the module width and the bar height, and your printer resolution.
- Download SVG for print or PNG for a document.
- Print a test and scan it with the scanner that will be used.
How it saves width
Code 128 has three character sets. A is capital letters and control characters, B is upper and lower case, and C is pairs of digits. The generator works out the cheapest way to cover your text, so 12345678 uses 4 symbols for the digits where Code 39 needs 8 characters.
Limits
- ASCII only. Accented letters and other alphabets are not supported.
- Plain Code 128. GS1-128 and function codes are not supported.
- Black bars on white only. Scanners expect dark on light.
- The self-check uses the scanner built into your browser where there is one. It is not a test of your printer.
Need a retail number? The barcode generator makes EAN-13, UPC-A, EAN-8, Code 39 and ITF-14 as well, and the UPC barcode generator is made for UPC-A.
Nothing you type is stored or uploaded. We count events without cookies and never send the text (details).
FAQ
What can a Code 128 barcode hold?
Any of the 128 ASCII characters: upper and lower case letters, digits, punctuation and control characters. It cannot hold accented letters or other alphabets. Here the limit is 80 characters.
Why is it shorter than Code 39?
Code 128 has three character sets. Set C stores two digits in one symbol, so a run of digits takes half the width. The generator picks the sets that give the fewest symbols and switches between them as the text changes.
Is there a check digit I need to type?
No. A check symbol is added at the end for you. It is worked out from every symbol before it, and the scanner uses it to reject a misread. It is not printed as text.
How big should it be?
Code 128 has no fixed size. Pick the module width, which is the narrowest bar, and the bar height. 0.33 mm and 15 mm is a good start for labels. Under about 0.19 mm you need a good printer and scanner. The quiet zone is 10 modules on each side and is included in the file.
Is this the same as GS1-128?
No. GS1-128 is Code 128 with a function code and application identifiers for supply chain data. This page makes plain Code 128 only.
SVG or PNG?
SVG for print, because it is exact and has the real size in millimetres. PNG for a document, drawn at your printer resolution with whole pixels per module.
More from FLXCode
Barcode GeneratorNew
Make EAN-13, UPC-A, EAN-8, Code 128, Code 39 and ITF-14 barcodes with real print sizes. SVG and PNG, no sign-up.
UPC Barcode GeneratorNew
Make a UPC-A barcode from 11 or 12 digits. The check digit is worked out for you. SVG and PNG at real print size.
QR Code GeneratorNew
Make a QR code for a link, text, Wi-Fi or contact. Static, so it never expires. No sign-up.
Wi-Fi QR Code GeneratorNew
Make a QR code that lets guests join your Wi-Fi, and print it as a card or sign. Made in your browser.