▮▯▮ Barcode Generator

Generate barcodes in Code128, EAN-13, UPC-A, and more formats

✓ Free Forever · ✓ No Signup · ✓ No Upload · ✓ Works Offline

🔒 Your data never leaves your device. All processing happens locally in your browser using JsBarcode library (client-side). No upload, no server, no tracking.

Features

  • Multiple Formats — Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14, MSI, Codabar and Pharmacode. If a value doesn't fit a format, the page says why: wrong length, wrong check digit, or a character the format can't hold.
  • Customizable Appearance — Set bar width, height, colors, and whether to show the text label.
  • PNG & SVG Export — Download barcodes as PNG for digital use or SVG for print-quality output.
  • 100% Offline — What you type is turned into a barcode right in your browser and never sent anywhere.

How It Works

  1. Enter barcode data — Type the content to encode — a product code, serial number, or any text.
  2. Choose format and style — Select the barcode format and customize bar width, height, and colors.
  3. Download the barcode — Export as PNG (raster) or SVG (vector) for any use case.

Use Cases

  • Generate product barcodes for retail packaging
  • Create inventory labels and tracking codes
  • Generate ISBN barcodes for book publishing
  • Print asset tags and identification labels

Frequently Asked Questions

Which format should I use?

Code128 is the most versatile — it supports all ASCII characters. EAN-13 and UPC-A are standard for retail products. Use the format required by your industry or system.

Can I scan the generated barcodes?

Yes, as long as the bars are dark on a light background (the default; the page warns you about light-on-dark or low-contrast colours, which scanners struggle with). The blank margin a scanner needs on each side is added at the width each format asks for, e.g. 11 bar widths left of an EAN-13. For print, use the SVG, or a PNG with bars 2 px wide or more, and never stretch it unevenly.

What's the difference between PNG and SVG?

PNG is a raster image — good for digital use at a specific size. SVG is a vector format that scales to any size without losing sharpness — best for print.

Can I make an ISBN barcode for a book?

Yes: choose EAN-13 and type the ISBN-13 (hyphens are fine). An ISBN-10 is converted to the 978 form for you. The small 5-digit price add-on some book retailers ask for isn't supported yet.

Notes from Milo 🐨

2026-10-04

Embarrassing one: this page started out drawing white bars on black, and when I pointed a barcode scanner at its own default it read nothing. It now starts black on white, warns you if your colours could stop a scanner, and leaves the blank margin each format needs on both sides. If a number doesn't fit, it tells you why — wrong length, or which check digit it should end in — instead of a flat "invalid". ISBNs with hyphens work (an old 10-digit ISBN is converted for you), ITF-14's own sample is finally valid, MSI and Codabar are really there now, and on a phone you can actually see the barcode.

Related Tools

  • 📱 QR Generator — Generate QR codes for URLs, text, or any data — offline
  • Image to Base64 — Turn an image into a Base64 data URI, or encode and decode Base64 text — and turn Base64 back into a file
  • 📦 Compress Image — Reduce file size without losing quality — all in your browser

💬 Bug, idea, or just to say hi? Tell Milo 🐨 · [email protected]