About this tool
Choose a barcode type, type your value and the barcode draws instantly. Code 128 accepts almost any text and numbers, which makes it a good default for inventory, asset tags and shipping labels. EAN and UPC are the retail product codes.
Download the result as a PNG for documents or an SVG for printing at any size. The tool checks the value for you and tells you if it does not fit the type.
Code 128 barcode generator
Choose CODE128 for general labels. It accepts letters, numbers and common symbols, so it suits inventory, asset tags and shipping labels.
How to use it
- Pick the barcode type that your system or shop needs.
- Type your value. The tool shows an error if the length or characters are not valid for that type.
- Adjust the bar width and height, then download PNG or SVG.
Good to know
- Retail barcodes such as EAN-13 and UPC-A have an official number structure, and a registered company prefix is needed for real products on sale. This tool only draws the barcode for the digits you enter.
- EAN-13 and UPC-A add the final check digit for you if you enter one digit fewer than the full length.
- Always scan a printed barcode with the scanner you plan to use before printing in bulk.
- The barcode drawing code is loaded from a library the first time you use this page, so you need an internet connection.
Key features
- Supports common barcode formats with validation of the number of digits.
- Preview, then download as PNG or SVG.
Limitations
- Each format has strict length and character rules; invalid input is reported instead of producing a fake code.
- Retail barcodes (EAN/UPC) need numbers issued by the official numbering body to be valid in shops.
Privacy and security
Runs in your browser and your file is not uploaded. The first time you use this tool, your browser downloads JsBarcode (an open-source library) from a public CDN to draw the barcode; the library provider may see your IP address, but never your file. Your text stays on your device.
Frequently asked questions
How do I make a Code 128 barcode?
Choose CODE128 as the type, type your value and download the barcode.
Which barcode type should I use?
Use Code 128 for inventory, assets and shipping because it takes any text. Use EAN-13 or UPC-A when a retailer asks for a product code.
Can I use these barcodes on products I sell in shops?
Retail barcodes are linked to numbers issued to your company by the standards body. Check with the issuing organisation before you use an EAN or UPC on products you sell.
Why does it say my value is invalid?
Each type has rules. EAN-13 needs 12 or 13 digits, EAN-8 needs 7 or 8, UPC-A needs 11 or 12, and Code 39 allows only capital letters, digits and a few symbols.
Can I print the barcode?
Yes. Download the SVG for the sharpest print at any size.
More tools you may need
Related guides
Last reviewed: 2026-11-22. Found a mistake? Tell us. See our tool accuracy policy.