Barcode Generator

Create print-ready barcodes in 13 retail, logistics and general formats with live validation, real appearance controls and PNG / SVG / batch-ZIP export — drawn on your device.

Generators Runs in your browser · no upload

Reviewed 17 November 2026 · Free · No account needed

ExecutionYour browserInput never leaves your tab
File retentionNoneNothing is stored
AccountNot requiredNo sign-up, no paywall
PriceFreeNo trial, no usage cap on the tool itself

How to use

  1. Pick a format — retail (EAN-13, EAN-8, UPC-A/E, EAN-2/5), logistics (ITF-14, ITF, MSI, Pharmacode, Codabar) or general (Code 128, Code 39).
  2. Type the value; the tool validates the exact rule for that symbology and explains what is wrong instead of just failing.
  3. Tune bar width, height, quiet zone, caption size and colours — the preview updates as you type.
  4. Download a 3× PNG for printing, an SVG for vector work, or switch to Batch to turn one value per line into numbered PNGs inside a ZIP.

Example

Input: 5901234123457 as EAN-13, 2px bars, 90px tall

Output: ean13-barcode.png at 3× plus the original SVG; batch mode packs up to 200 codes into one ZIP

How it works

The text is encoded as a barcode in the selected symbology (for example Code 128) and drawn as an image you can download and print.

JsBarcode encodes the value into the chosen symbology's bar/space pattern (computing the check digit where the format uses one) and draws it as inline SVG — 2px modules, 90px bars, with the human-readable value printed beneath.

Worked example

5901234123457 as EAN-13 renders as a scannable SVG barcode with the digits printed underneath.

Edge cases to know

  • Eight symbologies: CODE128, EAN-13, EAN-8, UPC, CODE39, ITF-14, MSI and pharmacode. QR codes belong to the QR tool.
  • Each format validates its own rules — EAN-13 accepts 12 digits (checksum computed automatically) or 13, UPC accepts 11–12, CODE128 accepts any ASCII text.
  • An invalid value shows the symbology's error message instead of drawing a broken barcode.
  • Output is SVG; save it (or a rendered PNG) via right-click.

Limits & compatibility

  • 13 symbologies; QR codes live in the QR Code Generator instead.
  • Code 128 is capped at 80 printable-ASCII characters so the bars stay printable.
  • Check-digit rules differ by format — EAN-13 takes 12 digits (checksum added) or 13 with a valid one.
  • PNG is rasterised at 3×; print at least 2px per module and keep the quiet zone for phone cameras.

Privacy

Every barcode is drawn by JsBarcode in this tab. Values and images are never uploaded, logged or stored.

Related tools

FAQ

Questions about Barcode Generator

Which barcode formats are supported?

Eight: CODE128, EAN-13, EAN-8, UPC, CODE39, ITF-14, MSI and pharmacode — covering retail, logistics and niche uses. QR codes are deliberately out of scope; use the dedicated QR code tool for those. Pick the format first, then enter the value you want to encode.

Why is my value rejected?

Each format has its own rules, and invalid values are flagged immediately with the reason rather than silently mis-rendered. EAN-13, for example, accepts either 12 digits (the check digit is calculated for you) or the full 13. Check digit rules differ between formats, so confirm you have picked the right one for your data.

What file format is the barcode saved as?

SVG. The barcode is drawn as a vector graphic with JsBarcode, so it stays sharp at any size. Save it by right-clicking the rendered graphic in your browser. Because it is a vector rather than a fixed-size bitmap, the same file works for both on-screen use and print.

Are the barcodes generated on my device?

Yes — rendering happens locally with JsBarcode inside your browser. The value you type and the resulting graphic are never transmitted, logged or stored, so you can encode internal product or asset codes without the data leaving your machine. Nothing about the page needs a network connection once it has loaded.