How to Generate a Barcode Online: Formats, Sizes, and Best Practices
Why Barcodes Still Matter
Despite QR codes being everywhere, 1D barcodes are still the workhorse of retail, logistics, libraries, healthcare and inventory. Scanners are faster on them, label printers are cheaper, and the tooling around them has been standardized for forty years. If you ship a product, run a warehouse, manage assets or print event tickets, you're going to need barcodes.
Picking the Right Format
This is the single most common mistake — people use whatever the tool defaults to and end up with a barcode that doesn't fit their use case.
If you don't know which one to pick and your use case is internal, **just use CODE 128**.
How to Generate a Barcode in 30 Seconds
Our [Barcode Generator](/barcode-generator) is built around a live preview:
Sizing for Print
Scanners are surprisingly forgiving, but there are limits. Some rules of thumb:
If you're printing on thermal label printers (Zebra, DYMO, Brother), use the SVG export and let your label software handle the resolution — it'll always look perfect.
Common Mistakes to Avoid
**Using EAN/UPC for internal stuff.** EAN and UPC numbers are owned by GS1 — registering a unique prefix costs money. If you use random 13-digit numbers as EAN-13 for internal use, you might accidentally clash with a real product when those tags leak into a retail system. Use CODE 128 for anything that isn't going through a retail checkout.
**Cropping the quiet zone.** When you paste a barcode into a label template and trim the whitespace to "make it fit", you destroy the quiet zone and the barcode stops scanning. Always leave space.
**Printing at the wrong scale.** Scaling a PNG up makes the bars blurry. Use SVG when you need any size other than the original PNG resolution.
**Not testing.** Before printing 5,000 labels, generate one barcode, print it on your actual printer with your actual stock, and scan it with your actual scanner. Five minutes of testing prevents a 5,000-label reprint.
Barcode vs QR Code
Use a **barcode** when the data is short (a SKU, a tracking number, a 12-digit product code) and the scanner is industrial (a checkout scanner, a warehouse gun, a label scanner). Use a **[QR code](/qr-code-generator)** when the data is longer (a URL, a vCard, a Wi-Fi config), when you want a phone camera to scan it, or when you need the visual style of a square block.
Conclusion
A good barcode is invisible — it just works, every time, on every scanner. The fastest way to get there is to pick the right format for your context, keep the quiet zone intact, and print at a sensible size. Our tool handles the rendering and validation; the rest is just paper and ink.