▮▯▮ 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
- Enter barcode data — Type the content to encode — a product code, serial number, or any text.
- Choose format and style — Select the barcode format and customize bar width, height, and colors.
- 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 and set its size in your layout program, never stretching it unevenly. A PNG has no physical size of its own: at 300 dpi, 4 px bars are 0.34 mm, about full size for an EAN-13/UPC-A (0.33 mm), while 2 px bars (0.17 mm) are below the smallest size GS1 allows (80 %, 0.26 mm).
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 5-digit price add-on many book retailers ask for goes in Add-on: 90000 when there is no suggested price, or 5 followed by the US$ price (51995 = $19.95). The ISBN itself comes from your country's ISBN agency.
Can I make up an EAN or UPC number for my product?
It will scan, but a shop or marketplace checks that the number belongs to you: retail EAN/UPC numbers are licensed from GS1 (your country's GS1 office), and Amazon and large retailers look them up in GS1's database. For your own shelves, stock or asset tags, use Code 128 with any number you like.
Notes from Milo 🐨
I scanned over twenty thousand barcodes from this page with an independent reader, and every one came back as exactly what was typed. One thing surprised me, though: a Code 39 with a slash, dollar, percent or plus right before a letter can read as something else on some scanners. In Code 39's "Full ASCII" mode, /A means "!" and +A means "a", and plenty of phone apps try that mode first. Shop scanners usually don't, so the code isn't wrong, but you should know. The page now tells you when your text has such a pair and shows what a Full ASCII scanner would read instead.
This page said it could make ISBN barcodes for books, and then in the small print admitted it couldn't do the little price code most book retailers want next to it. It can now: pick EAN-13 (or UPC-A), type 90000 or 5 + your price in the new Add-on box, and the 5-digit add-on is drawn with the gap and margins GS1 asks for (2-digit magazine add-ons work too). While testing I also found that a very long Code 128 with wide bars made Download PNG do nothing at all, because the picture was wider than a browser can draw; the page now tells you and points you to the SVG. MSI says out loud that it adds a check digit of its own, the files are named after what they hold, and the print advice is honest: at 300 dpi a 2 px bar is too thin for a retail code, 4 px is about right.
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]