Skip to content

Barcode Generator

Last verified May 2026 — runs in your browser
Barcode Generator

Barcode Generator Online — Code 128, EAN-13, UPC-A, Code 39 & ITF-14

Type or paste your value, pick the right barcode standard for the use case (Code 128 for general text, EAN-13 for retail Europe, UPC-A for retail North America, Code 39 for industrial labels, ITF-14 for shipping cartons), and the page renders an SVG barcode in real time underneath. Download it as a vector SVG (best for print labels and packaging artwork) or as a 2x-scaled PNG (best for digital use, screenshots, or email). Per-format regex validation tells you immediately when your input is the wrong length or contains characters that the standard doesn't allow, so you don't print 500 labels and discover at packaging time that your EAN-13 was a digit short.

About this tool

Rendering uses the well-known JsBarcode library, which is the de-facto standard JavaScript implementation for all the linear formats supported here. Every format has its own check-digit logic — EAN-13 and UPC-A append a Modulo 10 check digit if you provide 12 or 11 digits respectively, ITF-14 expects all 14 digits including the check, Code 128 picks the optimal subset (A/B/C) automatically, and Code 39 enforces its restricted alphabet (A-Z, 0-9, and `-. $/+%`). The SVG output is clean — a single `<svg>` root with `<rect>` bars and a `<text>` line for the human-readable value — so it scales without loss to any label printer DPI. Use cases: printing internal asset tags, generating prototype EAN/UPC codes for retail mockups, creating Code 39 labels for old hardware that still uses them, building ITF-14 outer carton stickers, or generating Code 128 from arbitrary text for warehouse picking lists.

  • Code 128 — full ASCII, automatic A/B/C subset switching
  • EAN-13 — European retail, auto-appends Modulo 10 check digit
  • UPC-A — North American retail, auto-appends check digit
  • Code 39 — industrial labels with restricted A-Z/0-9 alphabet
  • ITF-14 — shipping carton outer codes, all 14 digits required
  • Live SVG preview as you type
  • Per-format regex validation with friendly error messages
  • Download as vector SVG (lossless print) or 2x-scaled PNG (digital)
  • Human-readable value rendered under the bars
  • No upload — your barcode value never leaves the browser

Free. No signup. Your inputs stay in your browser. Ads via Google AdSense (consent required).

By ·