Barcode Generator
Turn text or numbers into a downloadable 1D barcode — CODE128, EAN-13, UPC or CODE39 — instantly and entirely in your browser.
🔒 Processed locally in your browser
Loading…
How to use
- Type or paste the text or number you want to encode into the input box.
- Choose a barcode format — CODE128, EAN-13, UPC or CODE39 — from the dropdown.
- The barcode renders live in the preview as you type.
- Click Download PNG to save the barcode as an image.
Features
- Supports CODE128, EAN-13, UPC and CODE39 barcode formats
- Live preview updates as you type
- Validates your input against the selected format's rules before rendering
- Download the finished barcode as a PNG image
- 100% client-side — your data never leaves your browser
Frequently asked questions
Does my input get uploaded anywhere?
No. The barcode is generated entirely in your browser — the text or number you enter is never sent to a server.
Why does my input show an error for EAN-13 or UPC?
EAN-13 and UPC are fixed-length numeric formats: EAN-13 needs exactly 12 or 13 digits, and UPC needs exactly 11 or 12 digits. CODE128 and CODE39 accept a much wider range of text, so switch to one of those if your input isn't a strict digit sequence.
What's the difference between this and the QR Code Generator?
Barcodes are 1D (linear) codes read by traditional laser scanners and used heavily in retail and logistics. QR codes are 2D and can hold much more data, including full URLs. Use this tool for retail/product-style codes, and the separate QR Code Generator tool for URLs or general data.
Can I print the downloaded barcode?
Yes. The PNG is generated at a resolution suitable for printing at typical barcode sizes, though very small print sizes may reduce scannability depending on your printer.
Is there a length limit on what I can encode?
It's bounded by the rules of the format you choose. CODE128 can handle fairly long text, while EAN-13 and UPC are fixed-length numeric formats with no flexibility on digit count.