About Barcode Generator – Code 128, EAN, UPC, QR
This barcode generator turns any value into a crisp, scalable barcode you can download as SVG. It covers the everyday retail and logistics formats — Code 128, EAN-13, EAN-8 and UPC-A — alongside Code 39, ITF-14, Codabar, and 2D codes like QR Code, Data Matrix and PDF417, all from a single tool.
Pick a symbology, type the value, and the barcode renders live as you adjust the scale, bar height, and whether the human-readable text appears below the bars. Each format validates its own input, so if a code needs a specific digit count or checksum you get a clear, immediate message instead of a broken image.
Everything runs locally in your browser. Your data is never uploaded, which makes this a safe way to generate barcodes for product SKUs, shipping labels, or internal tooling — even fully offline.
Features
- Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14 and more 1D symbologies
- QR Code, Data Matrix, PDF417 and Aztec 2D codes
- Clean, infinitely scalable SVG output you can copy or download
- Adjustable scale, bar height, and human-readable text
- Fully offline — nothing you enter ever leaves your device
How to use
- Choose a symbology such as Code 128, EAN-13, or QR Code.
- Type or paste the value you want to encode.
- Adjust the scale, height, and "show text" option to taste.
- Preview the barcode, then copy the SVG markup or download the file.
Frequently asked questions
Which barcode formats are supported?
The common linear formats — Code 128, EAN-13, EAN-8, UPC-A, UPC-E, Code 39, Code 93, ITF-14, Interleaved 2 of 5 and Codabar — plus 2D codes including QR Code, Data Matrix, PDF417 and Aztec. They are all rendered by the bwip-js engine.
Why does EAN-13 or UPC-A reject my value?
Retail symbologies require an exact digit count and a valid check digit. EAN-13 needs 12 or 13 digits and UPC-A needs 11 or 12. If the value does not match, the tool shows the underlying validation message so you can fix it.
Is the barcode generated on a server?
No. The barcode is rendered entirely in your browser. Nothing you type is uploaded, so it works offline and is safe for confidential SKUs or internal identifiers.
Why download SVG instead of PNG?
SVG is vector-based, so the barcode stays razor-sharp at any size — ideal for print labels and high-DPI screens. You can drop the SVG straight into design tools or convert it to PNG later if needed.
What is the difference between a 1D and 2D barcode?
A 1D (linear) barcode like Code 128 encodes data in the widths of vertical bars and holds relatively little information. A 2D barcode like QR Code or Data Matrix uses a grid of cells and can store much more data in a compact square.
Related tools
Everything runs locally in your browser — your input is never uploaded.