Home AlveaHubsfree, no sign-up, works offline

Free Barcode Generator — CODE128, EAN-13, UPC-A & More

Generate barcodes in eight formats — CODE128, EAN-13, EAN-8, UPC-A, CODE39, ITF-14, Pharmacode, and MSI — right in your browser, then download as SVG or PNG. Everything runs locally; no barcode data is ever sent to a server.

About this tool

This tool renders barcodes using the JsBarcode library running entirely in your browser. It supports eight symbologies, each with its own rules for allowed characters and digit length. You can adjust bar width, height, and whether the human-readable value appears beneath the bars, then download the result as a lossless SVG (for professional printing) or a high-resolution PNG.

How to use

  1. Choose a barcode format from the dropdown (e.g. CODE128 for general use, EAN-13 for retail products).
  2. Enter the value to encode. The preview updates automatically.
  3. Adjust bar width, height, or text display as needed.
  4. Click PNG or SVG to download the barcode.

When to use this tool

  • Labeling retail products with EAN-13 (Europe) or UPC-A (USA) for POS or inventory systems.
  • Printing CODE128 or CODE39 labels for internal inventory, asset tags, or shipping documents.
  • Generating ITF-14 codes for shipping cartons, or Pharmacode for pharmaceutical packaging.

Frequently asked questions

Which barcode formats are supported?

CODE128, EAN-13, EAN-8, UPC-A, CODE39, ITF-14, Pharmacode, and MSI.

Which format should I use for retail products?

EAN-13 for Europe and most of the world; UPC-A for the USA and Canada.

Why do I get an "invalid value" error?

Each format has strict rules. EAN-13 requires 12–13 digits; UPC-A requires 11–12 digits; CODE39 accepts uppercase letters, digits, and limited symbols. Check the value against the selected format's requirements.

What is the difference between SVG and PNG?

SVG stays sharp at any size — ideal for professional printing. PNG is a high-resolution raster image easier to use in documents and editors that don't support SVG.

Is my barcode data sent to a server?

No. All generation happens in your browser. Nothing is transmitted.

Does this work offline?

Yes. Once the page has loaded, all barcode generation runs locally.

Can I print directly from the browser?

Download the SVG or PNG and print from an image viewer or design application for best results.

Is this tool free?

Yes, completely free with no sign-up required and no usage limits.

Everything is generated locally in your browser — no data is ever sent to a server.