Barcode Generator
Generate CODE128, EAN-13, UPC, CODE39 and other barcode formats — download as PNG or SVG.
Barcode Generator
2
100 px
How to Use
- Type or paste the text or number you want to encode.
- Choose a barcode format — CODE128 works for any text, while EAN-13/EAN-8/UPC-A expect a specific number of digits.
- Adjust bar width, height, and colors as needed, and toggle whether to show the human-readable text below the bars.
- Download the finished barcode as a PNG or SVG file.
Frequently Asked Questions
QWhich barcode format should I use?
Use CODE128 for general-purpose text or numbers of any length. Use EAN-13, EAN-8, or UPC-A only if you have an actual product barcode number issued for retail (these have strict digit-count and check-digit rules). CODE39 is common in logistics and inventory systems.
QWhy does it say my value is invalid for the selected format?
Formats like EAN-13, EAN-8, and UPC-A require an exact number of digits (e.g. EAN-13 needs 12-13 digits). If your value doesn't match, switch to CODE128, which accepts any text or number.
QIs my data uploaded anywhere?
No. The barcode is generated entirely in your browser using JavaScript. Nothing is sent to or stored on any server.
QCan I use the generated barcode commercially?
Yes, the generated image is yours to use. Note that formats like EAN-13/UPC-A used for real retail products require registering the number with the relevant issuing organization (e.g. GS1) — this tool only renders the barcode graphic, it doesn't register or validate ownership of the number.
QPNG or SVG — which should I download?
Download SVG if you need to resize the barcode without losing quality (e.g. for print or design software). Download PNG for quick use in documents, spreadsheets, or web pages.
About This Tool
Barcodes are generated client-side using the JsBarcode library, which renders each format according to its official encoding specification (including check digits for EAN/UPC formats). PNG export rasterizes the generated SVG via an offscreen canvas.