Barcode Generator

Create scannable 1D barcodes in Code 128, EAN-13, UPC-A, Code 39, or ITF, batch-generate one per line, and download as PNG, SVG, or ZIP.

Loading tool…

Barcode GeneratorTurn a product number, SKU, or label text into a real, scannable 1D barcode right in your browser. Choose the symbology, tune the bar width, height, and quiet-zone margin, set custom bar and background colors, and control where and how the human-readable value prints. Enter one value per line to batch-generate many codes at once, then download a single barcode as a crisp PNG or a lossless SVG, or grab the whole batch as a ZIP. Everything is rendered locally, so the codes and numbers you type are never uploaded to a server.

What is Barcode Generator?

The Barcode Generator is a free online tool that converts text and numbers into standard one-dimensional barcodes for retail labels, inventory tags, shipping cartons, asset stickers, and library spines. Pick from Code 128 for general-purpose alphanumeric data, EAN-13 and UPC-A for retail product codes, Code 39 for industrial and ID badges, or ITF for cartons and logistics. Each symbology has its own rules, so EAN-13 expects 12 or 13 digits, UPC-A expects 11 or 12 digits, and ITF needs an even number of digits; the tool validates every line and tells you how many it had to skip. Enter one value per line to batch-generate a whole sheet of codes at once, then download a single barcode as a PNG or a lossless SVG, or download the entire batch as a ZIP archive. In Settings you can set the bar (module) width, the bar height, and the quiet-zone margin in pixels, pick custom bar and background colors, and control the printed value — show or hide it and choose its position, alignment, size, and font. The preview updates automatically as you type and each code can be clicked to enlarge. Because everything is drawn entirely in your browser with a client-side library, it works offline and your data stays on your device.

How to use Barcode Generator

  1. Type the text or number to encode — put one value per line to make several barcodes at once.
  2. Choose a symbology: Code 128, EAN-13, UPC-A, Code 39, or ITF.
  3. Open Settings to adjust the bar width, height, and quiet-zone margin, pick bar and background colors, and set the printed value's position, alignment, size, and font.
  4. Watch the preview update and click any barcode to enlarge and check that it scans.
  5. Download a single code as PNG or SVG, or download every barcode at once as a ZIP.

Examples

Retail product EAN-13

Input

5901234123457

Output

A 13-digit EAN-13 barcode with the checked number printed below, downloadable as a PNG or a lossless SVG for the packaging artwork.

Batch of warehouse SKUs in Code 128

Input

SKU-AB-00921
SKU-AB-00922
SKU-AB-00923

Output

Three Code 128 barcodes generated at once, one per line, saved together in a single ZIP for the label sheet.

Shipping carton in ITF

Input

00123456789012

Output

An Interleaved 2 of 5 (ITF) barcode for an even number of digits, with a wide quiet-zone margin and custom colors for the outer carton.

Frequently asked questions

Which barcode formats are supported?
Five common 1D symbologies: Code 128 (alphanumeric, general purpose), EAN-13 and UPC-A (retail product codes), Code 39 (industrial and ID), and ITF / Interleaved 2 of 5 (cartons and logistics). Pick the one your scanner or supplier expects.
Why does it say my input is invalid?
Each format has strict rules. EAN-13 needs 12 or 13 digits, UPC-A needs 11 or 12 digits, ITF needs an even count of digits, and Code 39 / Code 128 only accept characters in their character set. If a line does not match, it is skipped and the tool tells you how many were left out, so adjust the text or switch formats.
Can I make many barcodes at once?
Yes. Put one value per line in the value box and the tool generates a separate barcode for each line, showing them all in the preview. Use Download all (ZIP) to save every code as a PNG inside a single ZIP archive, or download any individual barcode as a PNG or SVG.
Can I download SVG and customize the look?
Yes. Alongside the PNG you can download a lossless SVG that scales to any size for print. In Settings you can change the bar and background colors, the bar width and height, the quiet-zone margin, and whether the human-readable value shows — plus its position, alignment, size, and font.
Is my data sent to a server?
No. The barcode is generated entirely in your browser with a client-side library. The text and numbers you encode are never uploaded, so the tool works offline and your data stays private.

Related tools