Free Online Barcode Generator

This barcode generator produces scannable 1D symbols — Code 128 for arbitrary text and EAN/UPC for retail product numbers — as PNG or SVG.

Your data is processed entirely in your browser and never sent to any server.

Instant results 100% private No signup needed

Any ASCII text. Best for general use.

How to Use This QR Tool

  1. Pick the format that matches your use case.
  2. Enter the value — text for Code 128, digits for EAN/UPC.
  3. Invalid lengths or check digits surface as inline errors you can fix and retry.
  4. Click Download PNG for raster printing or SVG for vector artwork.

What Is a Barcode Generator?

1D barcodes are the parallel-line codes you see on retail packaging, inventory tags, shipping labels, and ID badges. Different formats trade character set against density:

• Code 128 encodes any ASCII text and dominates internal inventory and logistics labelling — variable length, three sub-modes (A, B, C) the encoder auto-selects. • EAN-13 / EAN-8 are the global retail standards on supermarket products outside North America. • UPC-A is the 12-digit North American sibling of EAN-13.

This tool validates the input for each format (length, digit-only where required, check digit for EAN/UPC) and renders the symbol locally with a pure-JavaScript encoder — nothing leaves the browser. For UPC-E specifically, use the dedicated UPC tool which exposes the compressed variant.

Frequently Asked Questions

What barcode formats are supported?
Code 128, EAN-13, EAN-8, and UPC-A. UPC-E lives in its own dedicated tool.
What's the difference from QR codes?
Barcodes are one-dimensional and store less data; QR codes are 2D and store more. Use barcodes for products and inventory.
Can I use these for retail?
EAN and UPC are valid retail formats, but you need a GS1-assigned company prefix to register with major retailers.

Published by the WeGotEveryTool team. We build and test every tool in-house and update pages when the underlying spec, formula, or recommendation changes.

Reviewed: May 2026. Disclaimer: this tool is provided as-is for general informational use. For decisions with material consequences (medical, legal, financial, security) verify results against a qualified professional source.

Related QR Codes