Barcode Generator
NEWGenerate Code 128, EAN-13, UPC-A and other barcodes and download them as PNG or SVG.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
Any ASCII text (0–127). Subsets A/B/C are switched automatically.
Code 128 · 134 modules · 308×133px · Subset B · 10 symbols + checksum 98 + stop
Quick Examples
Typical inputs and the results this tool produces.
Overview
A barcode generator turns a number or a short text into a pattern of bars that a scanner can read. This one supports the symbologies used for shop labels, inventory, shipping and libraries: Code 128, Code 39, Code 93, EAN-13, EAN-8, UPC-A, ITF (Interleaved 2 of 5) and Codabar.
Every encoder is written from the published symbology tables. Code 128 picks the shortest mix of subsets A, B and C and adds the mod-103 checksum, EAN and UPC codes add or verify their check digit, and characters a symbology cannot hold are rejected with a clear message instead of producing a broken code.
The preview updates as you type and the barcode is drawn entirely in your browser, so nothing you enter is uploaded. Set the module width, height, quiet zone, text and colours, then download a crisp PNG or a scalable SVG for print.
Why use this tool?
- Eight common barcode types in one place
- Check digits calculated and validated for you
- PNG for screens, SVG for print and design tools
- Live preview with exact size and contrast hints
- No upload, no account, no watermark
Features
Auto Code 128 subsets
Switches between subsets A, B and C to keep the barcode as short as possible.
Check digits
Adds the EAN/UPC check digit or verifies the one you typed and offers the correct value.
Print-ready sizing
Control module width, bar height, quiet zone and text size.
Custom colours
Pick bar and background colours, with a warning when contrast is too low to scan.
PNG and SVG export
Download a PNG at 1–4× scale or a vector SVG, or copy the SVG markup.
Clear error messages
Tells you exactly which character a symbology cannot encode.
How to Use
Choose the barcode type
Pick Code 128, EAN-13, UPC-A or another type from the Barcode type list.
Enter the data
Type your number or text in Data. Check digits are added automatically where the format needs one.
Adjust the look
Set module width, bar height, quiet zone, text and colours while watching the live preview.
Download
Click Download PNG or Download SVG, or Copy SVG to paste the markup elsewhere.