🏷️ Barcode Generator
Create scannable barcodes in dozens of formats — EAN-13, UPC-A, Code 128, QR Code, Data Matrix, PDF417 and more — instantly and for free. Everything runs in your browser, so the data you encode never leaves your device.
Choose a type and enter contents to generate a barcode.
Private by design. This tool runs entirely in your browser — nothing you enter is uploaded or stored, and it works offline.
About
This barcode generator is powered by bwip-js — a vendored, MIT-licensed JavaScript port of the industry-standard Barcode Writer in Pure PostScript (BWIPP) — rendering directly onto an HTML canvas. It supports over 40 symbologies spanning retail codes (EAN-13, EAN-8, UPC-A/E, ISBN, ISSN), linear and logistics codes (Code 128, GS1-128, Code 39, Code 93, Interleaved 2 of 5, ITF-14, Codabar, MSI, Pharmacode), 2D codes (QR Code, Micro QR, Data Matrix, PDF417, Aztec, MaxiCode, DotCode, Han Xin), GS1 DataBar variants, and postal 4-state codes (USPS Intelligent Mail, Royal Mail, Japan Post, Deutsche Post). You can adjust the scale, bar height, and rotation, choose the bar, background, and text colors, toggle the human-readable caption, then export a crisp PNG raster or a resolution-independent SVG vector. Because it is 100% client-side, nothing is uploaded and it keeps working offline once the page has loaded.
How to use
- Pick a barcode type from the dropdown — the types are grouped into Retail, Linear/Code, 2D, GS1 DataBar, and Postal.
- Enter the data to encode in the Contents box, or press Load example to insert a valid sample for the selected type.
- Set the scale, bar height, and rotation, and choose the bar, background, and text colors to match your needs.
- Toggle Show human-readable text to display or hide the caption printed beneath linear barcodes.
- Click Download PNG for a raster image or Download SVG for a scalable vector — both save instantly, with nothing uploaded.
FAQ
- Which barcode types are supported?
- Over 40 symbologies, including EAN-13, EAN-8, UPC-A/E, ISBN, Code 128, GS1-128, Code 39, Code 93, ITF-14, Codabar, MSI, Pharmacode, QR Code, Micro QR, Data Matrix, PDF417, Aztec, MaxiCode, DotCode, Han Xin, GS1 DataBar, and postal codes such as USPS Intelligent Mail, Royal Mail, and Japan Post.
- Are the barcodes free for commercial use?
- Yes. The barcodes you generate are plain images that you own and can use on products, labels, tickets, or packaging, with no watermark, account, or usage limit. Note that for retail EAN/UPC codes sold in stores, the underlying number itself must still be issued to you by GS1.
- Why does it say the contents are invalid?
- Each symbology has its own format rules — for example, EAN-13 needs 12 or 13 digits and Codabar must start and end with a letter. If you see an error, check that your data matches the selected type, or press Load example to see a valid sample you can edit.
- Is my data uploaded to a server?
- No. Barcodes are rendered entirely in your browser with the bundled bwip-js library, so the numbers, URLs, or text you encode never leave your device — safe for confidential SKUs, tracking numbers, or internal links.