Barcode Generator
Generate Code 128, Code 39, EAN-13, and UPC-A barcodes and download as PNG. 100% client-side — your data never leaves your browser.
Barcode Content
Preview
About Barcode Generator
A barcode is a machine-readable representation of data — a series of black bars and white spaces that encodes numbers or letters. Barcodes are used everywhere: product packaging (EAN-13, UPC-A), inventory and asset tracking (Code 128, Code 39), shipping labels (Code 128), event tickets, and library books. This tool generates four common barcode formats entirely in your browser using Canvas: Code 128 (compact and supports all ASCII characters), Code 39 (alphanumeric, used in logistics), EAN-13 (13-digit retail barcodes used worldwide), and UPC-A (12-digit barcodes common in North America). All barcodes are generated locally — your data never leaves your device.
How It Works
- Choose a barcode format: Code 128, Code 39, EAN-13, or UPC-A.
- Enter your data (respecting each format's rules — EAN-13 needs exactly 13 digits, etc.).
- Customize width, height, color, and background.
- Download the barcode as a PNG image — ready to print or paste into designs.
✨ Key Features
- ✓Code 128 (auto B/C) — compact, supports full ASCII
- ✓Code 39 — alphanumeric, widely supported in logistics
- ✓EAN-13 — retail standard (12 digits + auto check digit)
- ✓UPC-A — North American retail (11 digits + auto check digit)
- ✓Customizable bar width (0.5–5 px) and height
- ✓Custom colors for bars and background
- ✓High-resolution PNG download
- ✓Live preview as you type
- ✓Automatic check digit calculation
- ✓100% client-side — no data sent to any server
🎯 Common Use Cases
- →Printing product labels with EAN-13 or UPC-A barcodes
- →Creating inventory and asset tracking labels
- →Generating shipping label barcodes for logistics
- →Making event tickets with scannable codes
- →Labeling books, files, or equipment
- →Testing barcode scanners during development
- →Creating internal SKU barcodes for warehouses
- →Educational projects and DIY maker projects
💡 Advanced Tips & Pro Insights
- ▸EAN-13 and UPC-A require a specific number of digits (13 and 12 respectively). Check digits are calculated automatically if you provide fewer.
- ▸Code 128 is the most versatile format — it encodes all 128 ASCII characters and is very compact. Use it when you need alphanumeric data in a small space.
- ▸Code 39 is simpler but takes more space; it only supports digits, uppercase letters, and a few symbols (-, ., space, $, /, +, %).
- ▸For best scanning, print with a laser or thermal printer and keep at least 10× the narrow bar width as quiet zone on both sides.
- ▸Keep barcode data short — shorter codes have wider bars and scan more reliably, especially at distance.