Barcode Generator
Turn numbers and text into scan-ready barcodes. Six industry formats, live size and margin controls, and PNG or SVG export — all rendered locally in your browser.
Barcode Generator
How It Works
Three steps to a printable barcode.
Choose a type
Select Code 128, Code 39, or an EAN/UPC retail format.
Enter data & size
Type the text or digits to encode and tune size and quiet-zone margin.
Generate & download
Render the barcode on a canvas, then save it as PNG or vector SVG.
FAQ
Common questions about the barcode generator.
Which barcode formats are supported?
Code 128, Code 39, EAN-13, EAN-8, UPC-A and UPC-E. Each follows its standard encoding rules.
Can I download the barcode?
Yes. Download as PNG for screens or SVG for print and scaling without quality loss.
What is the difference between Code 128 and Code 39?
Code 128 is compact and supports the full ASCII set; Code 39 is older and limited to uppercase letters, digits and a few symbols.
Are check digits calculated?
Yes. EAN and UPC formats get their check digit computed and appended automatically.
Is my data uploaded to a server?
No. Barcodes are drawn with the HTML5 Canvas API entirely in your browser — nothing leaves your device.
What size should I use?
For print, 300px or larger works well. Use the Size slider (100–600) and keep a small margin for scanners.