How to Generate a Barcode (Code 128, EAN & UPC)
Barcodes turn a number or short text into a scannable pattern for products, inventory, assets, and shipping. Generating one is quick — the main decision is which format (symbology) to use, since each is designed for a different job.
Generate one now
Use our barcode generator: pick a format, type your value, adjust the size, and download a crisp PNG or a scalable SVG for print. It runs entirely in your browser.
Which barcode format should I use?
- Code 128 — the most versatile 1D barcode; encodes any text and numbers. Great for internal inventory, assets, and general labels.
- EAN-13 — the 13-digit retail barcode used on products worldwide.
- UPC-A — the 12-digit retail barcode common in North America.
- Code 39 — older, widely supported; used in logistics and ID cards.
- ITF-14 — for shipping cartons and cases.
- Data Matrix / PDF417 — 2D codes that hold much more data in a small space.
PNG or SVG?
Choose SVGfor anything you'll print — it's vector, so it stays razor-sharp at any size, which matters for reliable scanning. Use PNG for quick on-screen use or when a tool only accepts raster images.
Tips for scannable barcodes
- Keep a clear white margin (quiet zone) around the barcode — don't crop it tight.
- Make sure your value matches the format's rules (EAN-13 needs 12–13 digits, UPC-A needs 11–12).
- Print with good contrast — dark bars on a white background scan best.
FAQ
Do I need to pay or register?
Generating a barcode is free. However, selling a product in retail usually requires an officially registered number (a GS1-issued UPC/EAN) — the generator makes the image, not the ownership of the number.
What's the difference between a barcode and a QR code?
A barcode is usually 1D and stores a short number; a QR code is 2D and can hold URLs and much more text. Use QR for links, barcodes for product/inventory numbers.
Is my data uploaded?
No — barcodes are generated locally in your browser.
