Barcode Generator

Create barcodes in CODE128, EAN, UPC and more. Customize the size and colors, then download as a PNG image or scalable SVG. Free and private — everything happens in your browser.

Customize

Enter a value to generate your barcode.

What is a barcode?

A barcode is a machine-readable pattern of parallel lines and spaces that encodes data — usually a product number or identifier. A scanner reads the widths of the bars and converts them back into the original value. Barcodes power retail checkouts, warehouse logistics, asset tracking, libraries and more. This tool creates 1D (linear) barcodes in all the common symbologies.

How to use this barcode generator

  1. Pick a format. CODE128 handles almost anything. Use EAN-13 or UPC-A for retail products and ITF-14 for shipping cartons.
  2. Enter your value. The preview updates live. If the value doesn't fit the format's rules, the hint tells you what's expected.
  3. Customize and download. Adjust the bar width, height and colors, then save as PNG or a print-ready SVG.

Common barcode formats

  • CODE128 — compact, encodes all ASCII characters. The go-to for shipping, inventory and general use.
  • EAN-13 / EAN-8 — the retail product barcodes used on packaging worldwide.
  • UPC-A — the 12-digit retail standard common in North America.
  • CODE39 — an older alphanumeric format still used in industrial and government settings.
  • ITF-14 — encodes the 14-digit GTIN on corrugated shipping boxes.

Frequently asked questions

Which barcode format should I use?

CODE128 is the best general-purpose choice — it encodes letters and numbers compactly. Use EAN-13 or UPC-A for retail products, ITF-14 for shipping cartons, and CODE39 for older industrial systems.

Why does it say my value is invalid?

Each format has rules. EAN-13 needs 12–13 digits, UPC-A needs 11–12 digits, and EAN-8 needs 7–8 digits. The hint under the input tells you what each format accepts.

Is my data private?

Yes. Barcodes are rendered entirely in your browser with JavaScript. Nothing you type is ever uploaded or stored.

What's the difference between PNG and SVG?

PNG is a fixed-resolution image, great for sharing or pasting into documents. SVG is a vector that scales to any size without blur — ideal for print and labels.

Do I need a check digit for EAN/UPC?

No. If you enter the value without the final check digit, it's calculated automatically. You can also enter the full code including the check digit.