Free barcode generator

Try an example:

Letters, numbers and symbols. Used for inventory, shipping and asset labels.

Narrow bar 0.330 mm.

Your data stays in your browser. Nothing you type is uploaded, stored or tracked.

Create barcodes for products, stock and labels: Code 128, EAN-13, EAN-8, UPC-A, UPC-E and Code 39. Check digits are calculated and verified, sizes follow GS1 guidance, and every barcode is decoded before you download it. Free SVG and PNG, with no sign-up.

Which barcode do I need?

You want to… Use Why
Sell products in shops outside North America EAN-13 (EAN-8 for very small packs) The standard retail barcode. Needs a GS1 number
Sell products in shops in the USA or Canada UPC-A (UPC-E for small packs) The North American retail barcode. Needs a GS1 number
Label stock, assets, files or parcels for your own use Code 128 Compact, any letters and numbers, read by every scanner
Match an existing system that asks for it Code 39 Older and wider, but still common in industry and government
Share a link or lots of data A QR code Barcodes hold a short code. QR codes can hold whole web addresses

Retail barcodes need a registered number

To sell through shops and marketplaces, a product needs a GTIN: a globally unique number allocated through GS1, the not-for-profit organisation that runs the system, via your national member such as GS1 UK or GS1 US. We turn your number into a correct, scannable barcode. We don’t, and can’t, issue numbers, and made-up numbers can clash with real products.

For internal use (stock rooms, libraries, asset tracking), use Code 128 with any numbering you like. No registration is needed.

Getting the size right

Retail barcodes have standard sizes. At 100% magnification the narrowest bar of an EAN-13 or UPC-A is 0.33 mm wide, and the GS1 General Specifications allow roughly 80% to 200% of that. We show the exact bar width as you change the size, and SVG downloads are drawn at true size in millimetres, so they print correctly at 100%. Don’t shorten the bars to save space: low-height barcodes can fail at the till.

Leave the blank margins (quiet zones) either side clear. The small > and < marks on EAN and UPC barcodes show where those margins end.

Things to know

Sources

  1. GS1 UK, GS1 UK (barcode numbers for UK businesses). Accessed 2026-11-29.
  2. GS1 US, Barcodes Powered by GS1 Standards. Accessed 2026-11-29.

Reviewed on by Richard Pryn.