DEV Community

Michael Lip
Michael Lip

Posted on • Originally published at zovo.one

Generating Barcode Labels Without Enterprise Software: A Practical Guide

Every small business, warehouse, or home office eventually needs barcode labels. Inventory management, asset tracking, product packaging, shipping -- barcodes are everywhere. And the typical advice is to buy expensive label-making software or subscribe to a service that charges per label.

For most use cases, that is wildly overkill.

Barcode formats you actually need to know

There are dozens of barcode symbologies, but in practice you will encounter a handful:

UPC-A (12 digits): The standard retail barcode in North America. Every product on a grocery store shelf has one. If you are selling products in physical retail, you need UPC codes from GS1.

EAN-13 (13 digits): The international equivalent of UPC. Used everywhere outside North America and increasingly used universally.

Code 128: A high-density alphanumeric barcode. Common in shipping, logistics, and internal inventory systems. It encodes the full ASCII character set, making it versatile for serial numbers, part numbers, and batch codes.

Code 39: An older alphanumeric format. Less dense than Code 128 but still widely used in government, military, and automotive industries. Its advantage is simplicity -- it can encode letters and numbers without a checksum.

QR Code: Technically a 2D barcode. Encodes URLs, text, contact info, or any data up to about 3KB. Used for marketing, mobile payments, and inventory links.

ITF-14 (14 digits): Used on shipping cartons and outer packaging. The thick bars and wide tolerances make it readable even on corrugated cardboard.

What makes a scannable label

Generating a barcode image is easy. Generating one that reliably scans is harder. The critical factors:

Quiet zones: The blank space on either side of the barcode. UPC-A requires a minimum quiet zone of 9 module widths on the left and 9 on the right. Without adequate quiet zones, scanners cannot identify where the barcode starts and ends.

Module width (X dimension): The width of the narrowest bar. For retail UPC, minimum X dimension is 0.264mm. Smaller than this and scanners at standard distances fail to read it.

Print quality: Inkjet printers can produce adequate barcodes on glossy label stock, but laser printers are more consistent. Thermal transfer printers (like Zebra or DYMO) produce the best results because the bars are perfectly solid with no ink bleeding.

Contrast: Black bars on white background is the standard for good reason. The scanner reads the contrast between bars and spaces. Dark blue on white works. Red bars do not, because many barcode scanners use red laser light, making red bars invisible.

Bar height: Taller bars are easier to scan because the scanner beam has more vertical area to cross. The minimum height for a UPC-A is 69% of the symbol width.

Label layout considerations

Beyond the barcode itself, a useful label typically includes:

  • Human-readable text below the barcode (the number or code)
  • A product name or description
  • A secondary identifier (SKU, location code, or lot number)
  • The label size matched to your label stock (Avery 5160, 5163, 5167 are common formats)

The layout needs to fit your label stock dimensions while maintaining minimum barcode sizes and quiet zones. This is where manual creation in a design tool becomes tedious -- you are constantly measuring and adjusting.

Batch generation

The real time savings come from batch generation. If you need 500 labels with sequential serial numbers (ASSET-0001 through ASSET-0500), creating them one at a time is impractical. You need a tool that takes a range or a CSV of values and generates all labels in a printable format.

For my own inventory tracking, I generate labels from a spreadsheet of SKUs. Upload the list, select the barcode format and label layout, generate a PDF, and print. What used to take hours of manual work now takes minutes.

I put together a barcode label maker that generates labels in common formats with proper quiet zones, sizing, and batch support. No software to install, no account to create.


I'm Michael Lip. I build free developer tools at zovo.one. 500+ tools, all private, all free.

Top comments (0)