Barcode Tools
Code 128 Barcode Generator
Generate Code 128 barcodes from any printable ASCII text. Widely used in shipping, logistics and inventory systems. Adjust bar width, height, and margins, then download as PNG or SVG.
Supports all printable ASCII characters (space through ~). No limit on length.
🔒 All processing happens locally in your browser. No data is uploaded.
About Code 128
Code 128 is one of the most widely used linear barcodes in the world. Unlike EAN or UPC which are digit-only, Code 128 encodes full ASCII text — making it suitable for part numbers, serial numbers, URLs, and any alphanumeric data. It automatically selects the most efficient encoding subset (A, B, or C) to minimize barcode length.
FAQ
What is Code 128 used for?
Shipping labels, inventory management, product tracking, library systems — any application needing alphanumeric barcodes.
Does Code 128 need a check digit?
Yes, but it's calculated automatically by the library — you don't need to compute it yourself.
What's the difference between Code 128 and Code 39?
Code 128 is more compact (fits more data in less space) and supports lowercase letters. Code 39 is simpler but uses only uppercase and a limited character set.