Barcode Generator (Code 128, EAN-13)
Create Code 128, EAN-13, EAN-8, UPC-A, ITF-14, Code 39 and Codabar barcodes with check digits calculated for you, and download them as SVG or PNG.
Loading…
How to use
- Choose the barcode type. Use EAN-13 or UPC-A for retail products, ITF-14 for shipping cartons, and Code 128 for general text and numbers.
- Enter the data. For EAN-13, EAN-8, UPC-A and ITF-14 you can leave out the last digit and it is calculated; if you enter it, it is checked.
- Adjust bar width, height, margin, colors and whether the text is shown under the bars. The preview updates as you type.
- Download the barcode as SVG (sharp at any size) or as PNG at the scale you choose, or copy the SVG markup.
Frequently asked questions
- Is my data uploaded?
- No. The barcode is drawn in your browser and nothing is sent to a server.
- Which type should I use?
- Products sold in shops use EAN-13 (UPC-A in North America) or EAN-8 for small packages. Outer cartons use ITF-14. For your own labels, inventory or serial numbers, Code 128 is the most compact and accepts letters, digits and symbols.
- Can I use any EAN-13 number for a product?
- The tool draws any valid number, but numbers printed on products for sale must come from a GS1 company prefix assigned to your business. Made-up numbers may clash with real products.
- How does Code 128 choose between sets A, B and C?
- It switches automatically: runs of four or more digits at the start or end, or six or more in the middle, are packed two per symbol in set C; other characters use set B, and control characters use set A.
- My scanner cannot read the printed barcode.
- The tool always leaves about ten bar widths of empty space on the left and right (the quiet zone scanners need), even if Margin is set smaller; keep other print out of that space. Use dark bars on a light background, and print at a bar width of at least 2 px or as SVG so the bars are not blurred when scaled.