Skip to content
All tools

Barcode Generator

Planning & Utilities

Free barcode generator. Create Code 128, UPC-A, EAN-13, EAN-8, Code 39 and ITF-14 barcodes online and download as PNG or SVG — no signup, no install.

Updated Jul 30, 2026 Maintained by BoldlyType editors

Barcode Generator

Code 128, Code 39, EAN, UPC and ITF-14 — download as SVG or PNG.

How barcodes actually encode data

A barcode is a visual stand-in for a string of characters, and the symbology you pick decides what that string can hold. Code 128 encodes the full ASCII set and is one of the most compact 1D formats, which makes it the default for SKUs and internal labels; UPC-A and EAN-13 are fixed-length retail codes that need a real product number plus a calculated check digit. The detail most people miss is the quiet zone — barcodes need blank margin on both sides, or a scanner reads a partial code or nothing at all, so don't crop the downloaded image tight to the bars. This free generator builds all six common 1D formats (Code 128, Code 39, EAN-13, EAN-8, UPC-A and ITF-14) right in your browser and lets you download the result as a vector SVG or a PNG — nothing you type is uploaded or stored.

Barcode generator tips

  • Use Code 128 for general text and SKUs — it's compact and accepts letters, numbers and symbols; save UPC-A and EAN-13 for genuine retail product numbers.
  • Leave the quiet zone intact on both sides — scanners need that blank margin or they misread the code. Don't crop the downloaded image tight to the bars; for retail UPC/EAN, keep a left margin of roughly 9 to 11 narrow-bar widths.
  • Keep solid black bars on a plain white background; low contrast or coloured bars wreck scan reliability fast.
  • For UPC and EAN you can enter just the real product digits and let the generator add the final check digit (11 for UPC-A, 12 for EAN-13, 7 for EAN-8, 13 for ITF-14). If you paste the full-length number instead, include the correct check digit — the tool encodes what you type and won't catch a wrong one.
  • Download SVG when you'll resize or print — it stays sharp at any size; choose PNG when you need a ready-to-drop raster image for a doc or listing, and size it generously so the thin bars stay crisp.

Barcode Generator — common questions

Latest questions readers ask us about this topic.

How do I make a barcode for free?

Type the value you want to encode, pick a symbology (Code 128 works for most text and SKUs), and the barcode renders instantly as you type. Download it as an SVG or PNG and you're done — no account, no watermark, and nothing you enter ever leaves your browser.

Which barcode type should I use?

Code 128 suits most needs — it encodes letters, numbers and symbols in a compact width. Choose UPC-A or EAN-13 only for retail products sold in stores, since those formats require valid, registered product numbers with a fixed digit count. Code 39 is common for industrial and ID labels, and ITF-14 is used on shipping cartons.

How many digits does a UPC or EAN barcode need?

UPC-A uses 12 digits and EAN-13 uses 13, both ending in a check digit the generator calculates for you — so you can enter just the 11 or 12 real digits and let it add the last one. EAN-8 uses 8 digits and ITF-14 uses 14. If you paste a full-length number, make sure its check digit is correct, because the tool encodes exactly what you type.

Can I download the barcode as a PNG or SVG?

Yes — a vector SVG that stays razor-sharp at any size, or a PNG rendered at 3x scale on a white background. Use the SVG when you'll resize or print at a real label size; the PNG is a fixed raster, so size it generously and check the thin bars before a full print run. Both download with one click, free.

Can I use these barcodes on products I sell?

The barcode image this tool draws is free to generate and use. But the number you encode is your responsibility: to sell through major retailers, the number inside a UPC-A or EAN-13 must be a GTIN built on a GS1 Company Prefix licensed to you (in the US, GS1 US also issues individual GTINs). This tool draws the barcode — it doesn't assign or check ownership, so don't encode a number that belongs to another company. For internal use like inventory, asset tags or event tickets, no registration is needed.

What's the difference between a barcode and a QR code?

A traditional barcode is 1D — a row of lines that holds a short number or code, ideal for products and SKUs. A QR code is 2D and holds far more, like a full URL or contact card. If you need to encode a link, use a QR code generator instead; for a product or inventory code, a 1D barcode is the right tool.

What resolution should I download a barcode at for printing?

For anything printed, download the SVG — it's vector, so the bars stay razor-sharp at any size and never pixelate. If you need a raster, the PNG here is rendered at about 3x; aim for 300 DPI or more at the final print size so the narrowest bar stays clean. The PNG comes on a solid white background, not transparent — that white is the contrast a scanner needs, so keep it, and don't shrink a retail code below about 80% of its standard width.

Why won't my barcode scan?

Usually it's missing quiet zones, poor contrast, or being printed too small. Keep blank margins on both sides, use black bars on white, and print large enough that the thin bars stay crisp and distinct. Test it with a barcode scanner app before committing to a full print run.

The sub-questions readers ask next — answered, with where to go.

Pick the format your channel expects — UPC-A for US retail, EAN-13 for most of the world — enter the product number, and the barcode renders with its check digit added automatically. Download the PNG or SVG and place it on your packaging or label. To sell in stores, the number itself must be a GTIN built on a GS1 Company Prefix licensed to you; the generator draws the code, it doesn't assign you an owned number.

Barcode Generator

Two routes. For a single image, generate it here and paste the SVG or PNG into your document or cell. For a whole column that updates as the numbers change, install a Code 128 or Code 39 barcode font, put the value in the cell, and set that cell's font to the barcode font (Code 128 needs a check-digit helper, so a font package with a built-in formula is easiest; Code 39 just wraps the value in asterisks). For UPC and EAN in a document, the image route is more reliable than a font.

This generator makes one barcode at a time, which is ideal for a single SKU, asset tag or test code. To produce many at once, keep your codes in an Excel or Google Sheets column and mail-merge a barcode font into an Avery label template, or use a dedicated batch/CSV tool or your label printer's own software for large recurring runs. For a handful of codes, generating and downloading each one here is quick and free.

Print large enough that the narrowest bar stays crisp. A retail UPC-A or EAN-13 is about 1.47 inches wide at 100% (nominal) size; GS1 allows 80% to 200% magnification, but 80% is the minimum that passes verification — not a guaranteed-still-scans floor — so going below it will fail retail verification even if a phone app reads it. Preserve the quiet-zone margins when you resize, and never stretch the height on its own.

Phones can read 1D barcodes like Code 128, UPC and EAN — but not always with the built-in camera. The iPhone's native Camera app reads QR codes only, so use a free scanner app or Google Lens for 1D codes. Download the PNG or SVG, display or print it, and test with an actual scanner app before a full run.

Barcode Generator

Explore the topic cluster

A wider set of tools and guides on this topic.