How to Generate Barcodes Free (Code 128 Guide) | iLoveIMG

Saqib Javed Sep 26, 2026 5 min read

Quick answer: open a free Barcode Generator, pick the barcode type (Code 128 for inventory and shipping), enter your numbers or code, and download a print-ready image. It takes under a minute and works for asset tags, warehouse labels and product codes.

Barcodes look like 1990s technology, but they’re still the workhorse of inventory, shipping and retail — cheap to print, fast for laser scanners, and readable on anything. This guide covers which barcode type fits your job, how to generate one free, and the printing rules that make the difference between a code that scans every time and one that fails at the worst moment.

In this guide

Which barcode type you need

“Barcode” is a family of formats, and using the wrong one means scanners ignore it:

Type Encodes Typical use
Code 128 Letters and digits, compact Inventory, asset tags, shipping labels
EAN-13 / UPC-A Fixed-length product numbers Retail products with GS1-issued numbers
Code 39 Letters and digits, larger Legacy industrial and government systems
QR code URLs and long text, 2D Smartphone scanning, marketing, manuals

The rule of thumb: internal tracking → Code 128 (compact, laser-scanner friendly), retail products → EAN/UPC (requires GS1-issued numbers — never invent these), smartphone content → QR. GS1’s “Sunrise 2027” initiative is pushing 2D codes into retail checkout globally, but linear barcodes remain the standard for warehouse and logistics labels.

How to generate a barcode free

  1. Open the generator. Go to the free Barcode Generator and pick your barcode type from the list — Code 128 for most internal uses.
  2. Enter your code. Type the exact value (a SKU, asset number or serial). What you type is exactly what the barcode encodes — a typo means a barcode that scans as the wrong code.
  3. Set the size and download. Generate the image and download it — print-ready, no watermark, and it runs entirely in your browser.

For labeling a whole series — 50 asset tags, a batch of product codes — generate them in sequence and lay them into your label template, or batch the values if your workflow supports it.

Printing rules that make codes scan

A barcode that doesn’t scan is worse than no barcode. Three printing rules prevent that:

  • Contrast: dark bars on a light background. The scanner reads the difference. Inverted codes (white bars on black) fail on most laser scanners, and printing colored bars on colored paper is the classic failure.
  • Quiet zones: blank space on both sides. The empty margin before and after the bars is part of the standard — typically at least 10× the narrowest bar width. Labels that cram text or borders against the bars scan erratically.
  • Size and stretch: never resize non-uniformly. Stretching a barcode wider or taller than its generated proportions breaks the bar-width ratios the scanner decodes. Print at the generated size or scale proportionally.

And always test-scan one printed label with the actual scanner that will use it — phone apps scan differently from warehouse lasers, and paper quality (glossy vs matte) changes reflectivity.

Linear barcode versus QR code: different jobs comparison

Barcode vs QR code

They solve different problems, and the choice is simpler than it looks. Linear barcodes (Code 128, EAN) encode a short reference — a SKU, an asset number — that your system looks up. Scanners are cheap, printing is trivial, and the codes survive rough handling. QR codes encode actual content — a URL, contact card, Wi-Fi credentials — and any smartphone scans them without dedicated hardware.

Use linear barcodes when the code points into your system (inventory, checkouts, asset tracking). Use QR codes when the code points to content for a human (a manual, a menu, a payment link). Many operations use both on the same label: barcode for the system, QR for the human. Our QR Code Generator handles that side if you need both.

FAQ

How do I generate a barcode for free?

Open the free Barcode Generator, choose the type (Code 128 for most uses), enter your value, and download the barcode image. No signup, no watermark, and it works in any browser.

What barcode type should I use for inventory?

Code 128 is the standard for internal inventory and asset tracking — it encodes letters and digits compactly and scans fast with common laser scanners. Use EAN-13 or UPC-A only for retail products with official GS1-issued numbers.

Can I create my own UPC barcode?

No — UPC and EAN numbers come from GS1, the global standards body, and inventing one creates codes that collide with real products. For internal use, Code 128 with your own numbering scheme is free and immediate.

Why won’t my barcode scan?

The usual culprits: insufficient contrast (light bars or colored paper), missing quiet zones (text touching the bars), non-uniform resizing, or printing too small. Regenerate at a larger size, keep the margins clear, and test with the actual scanner type.

Can a barcode contain a website URL?

Linear barcodes can technically encode short text, but URLs are what QR codes are built for — they hold more data and every smartphone scans them natively. For linking to a website, generate a QR code instead.

Do barcodes expire or stop working?

No — a barcode is just printed data. It works forever as long as the printing stays legible and the system behind it still recognizes the code. That permanence is why they outlast every wireless tagging technology.

Saqib Javed
Saqib Javed