Barcodes for labels, stock and products
Small shops, warehouses, libraries and makers all need barcodes, and most don’t need label software to make them. This generator draws standard one-dimensional barcodes with the open-source JsBarcode library on your device, validates the value for the type you chose and adds the check digit where the standard requires one.
How to create a barcode
- Choose the barcode type. Code 128 suits most labels and inventory. Use EAN-13 or UPC-A only for retail products with a GS1-issued number, ITF-14 for cartons, and Code 39 when an older system asks for it.
- Enter the value. Type or paste the text or number. For EAN, UPC and ITF-14 you can leave off the last check digit and it is calculated for you.
- Adjust and download. Set the bar width, height and colours, then download a PNG for documents or an SVG for print and label software.
Barcode types at a glance
| Type | Accepts | Typical use |
|---|---|---|
| Code 128 | All printable ASCII | Shipping labels, inventory, asset tags |
| EAN-13 | 12 digits + check digit | Retail products (worldwide) |
| UPC-A | 11 digits + check digit | Retail products (US and Canada) |
| EAN-8 | 7 digits + check digit | Very small packages |
| Code 39 | A–Z, 0–9, - . $ / + % space | ID badges, older industrial systems |
| ITF-14 | 13 digits + check digit | Outer cartons and cases |
Printing tips
- Keep the blank margin left and right of the bars; scanners need it to find the start.
- Print dark bars on a light background. Red bars are invisible to many red-laser scanners.
- Scale proportionally — never stretch the width alone.
- Test the printed barcode with the actual scanner or with our Barcode Scanner before printing hundreds.
For links, Wi-Fi details or anything longer than a short code, a 2D code is better: try the QR Code Generator or the Wi-Fi QR Code Generator.
Related tools and guides
- Barcode Scanner: read a barcode from a photo or camera
- QR Code Generator
- Wi-Fi QR Code Generator
- SVG to PNG: rasterise the SVG at any scale
- PNG to PDF: put labels on a printable page
Barcode generator FAQ
Is this barcode generator free?
Yes. Make as many barcodes as you like, with no sign-up and no watermark. They are generated in your browser.
Can I use these barcodes on products I sell in shops?
The barcode image is valid, but the number must be yours. Retailers expect EAN/UPC numbers licensed from GS1 (or your country's GS1 office). For internal stock, shelf labels, asset tags or shipping, Code 128 with your own numbering is fine.
Which type should I choose?
Code 128 is the safest default: compact, and it handles letters, digits and symbols. EAN-13 and UPC-A are for retail products, EAN-8 for very small packs, ITF-14 for outer cartons, Code 39 for older badge or industrial systems, and Codabar for some libraries and labs.
PNG or SVG?
SVG is vector, so it stays perfectly sharp at any print size and is preferred by label and design software. PNG is easier to drop into Word, Google Docs or a spreadsheet; use bar width 2 or more for printing.
Why does it say my value can't be encoded?
Each type accepts specific characters and lengths. EAN-13 needs 12 or 13 digits, UPC-A 11 or 12, EAN-8 7 or 8, and Code 39 only uppercase letters, digits and a few symbols. If you include the check digit and it's wrong, the value is rejected so you don't print a bad code.
How big should I print a barcode?
Keep a blank margin (quiet zone) on both sides and don't squash the bars. For retail EAN-13 the nominal size is about 37 × 26 mm; scanners usually cope with 80–200% of that. Always test a printed sample with the scanner you will use.