Barcode Generator
Processed Client SideGenerate Code 128, EAN, UPC, Code 39, and ITF-14 barcodes from any text. Download as SVG or PNG.
Bookmark this tool now — skip the search next time you need it.
About Barcode Generator
This tool runs entirely in your browser. Whatever you paste is processed on your own device and is never uploaded, logged, or sent to any server.
The Barcode Generator creates standard retail and logistics barcodes from a value you type, and hands you back a PNG or a print-ready SVG. It supports the formats that actually turn up in inventory and point-of-sale work — Code 128, Code 39, EAN-13, EAN-8, UPC-A, and ITF-14 — and validates your input against the rules of whichever you pick, so an EAN-13 with the wrong digit count tells you immediately instead of producing a barcode no scanner will accept. Bar colour, background colour, and the human-readable text underneath are all adjustable, and everything is drawn in your browser with no account or usage limit.
Key features
- Six formats: Code 128, Code 39, EAN-13, EAN-8, UPC-A, and ITF-14
- Per-format validation with a clear message when the value does not fit the symbology’s rules
- Check digits calculated for you on EAN and UPC codes — supply the 12, 7, 11, or 13 data digits and the final digit is derived
- Live preview that redraws as you type
- Download as SVG for print, or as PNG rendered at 2× for crisp on-screen use
- Adjustable bar colour and background colour
- Toggle the human-readable text printed underneath the bars
- Code 128 encodes letters, digits, and symbols, making it the right choice for internal SKUs and asset tags
- Runs entirely in your browser — product codes and internal identifiers are never uploaded
How to use it
- Choose the barcode format you need — Code 128 if you are not bound to a retail standard.
- Type the value. The hint on each format tells you how many digits it expects.
- Fix any validation error shown; retail formats are strict about length and character set.
- Adjust the colours and decide whether the human-readable text appears underneath.
- Download the SVG for print or the PNG for screens, and test-scan it before committing to a print run.
Tips & common mistakes
- Use Code 128 unless a standard forces your hand. It is compact, encodes the full ASCII set, and is the usual choice for internal SKUs, shipping labels, and asset tags.
- EAN-13 and UPC-A are retail identifiers, not free-form codes. A real one has to be issued through GS1 — generating the image is easy, but a number you invented will not be recognised outside your own systems.
- Enter the data digits and let the check digit be calculated. Typing all 13 digits of an EAN-13 yourself usually produces a mismatch error, because the last one is derived rather than chosen.
- Always download the SVG for print. Bars must stay crisp with sharp edges, and a rasterised barcode scaled to fit a label is the most common reason a scanner struggles.
- Leave the quiet zone alone and keep bars black on white. Scanners read contrast, and coloured or inverted bars fail far more often than they appear to in testing.
- Keep the human-readable text on for anything a person handles. When a scan fails, it is the only way to key the value in manually.
- Code 39 is verbose and takes more width per character than Code 128, but it remains common in older industrial and automotive systems that were built around it.
- Need a QR code instead of a linear barcode? Generate one with the QR Code Generator.