Barcode Generator
Free barcode generator. Create EAN-13, UPC-A and Code 128 barcodes with check-digit validation, live preview and crisp PNG or vector SVG download for print.
About the Barcode Generator
A barcode generator that produces real, scannable EAN-13, UPC-A and Code 128 barcodes in your browser — with genuine Modulo-10 check-digit validation for EAN/UPC (invalid numbers are never encoded), live preview, and PNG or vector SVG export.
EAN-13, UPC-A and Code 128 are the everyday identifiers of retail packaging, product labels and shipping. This generator produces real, scannable barcodes in your browser — not placeholder images — with genuine validation for each format: EAN-13 and UPC-A check digits are calculated per their official Modulo-10 algorithms, so an invalid number is never encoded.
Paste a 12-digit base into EAN-13 and the 13th check digit is calculated for you, or enter a complete 13-digit value and the supplied check digit is verified. UPC-A works the same way with 11/12 digits. Leading zeros are preserved exactly — barcode values are handled as strings, never truncated numbers. Code 128 accepts the full printable ASCII set for product IDs, serials and internal labels. The “Generate New” workflow turns a product record (name, SKU, brand, price, batch, expiry and more) into a full set of ready-to-print labels, with your choice of the same barcode on every package or a unique serial per label.
Every code renders instantly as a live preview. Choose PNG for a high-resolution raster or SVG for a fully vector file that scales to any print size without losing sharpness — both carry the real generated barcode with proper quiet zones and strong black-on-white contrast, ready for product packaging and labels. A note on numbers: this tool renders and validates identifiers, but generating a barcode does not assign or register an official GS1 product number — for commercial packaging, use a product number properly assigned to your business.
How to use the Barcode Generator
- Choose a barcode type: EAN-13, UPC-A or Code 128.
- Enter the value — EAN-13 needs 12 digits (the 13th check digit is calculated for you), UPC-A needs 11, Code 128 takes any printable ASCII.
- The tool validates the check digit and rejects invalid numbers before encoding.
- Generate a live preview of the barcode.
- Download as PNG or SVG and place it on packaging or labels with good contrast and quiet zones.
Worked example
Enter "123456789012" for an EAN-13 barcode, and the tool will automatically calculate the 13th check digit.
Frequently asked questions
- Do you assign real product numbers?
- No. The tool validates a number and renders its barcode, but a valid check digit does not mean the number is registered with GS1. For commercial packaging use a company prefix and product number properly assigned to your business.
- What is the EAN-13 check digit?
- The 13th digit is computed from the first 12 with a Modulo-10 algorithm. Enter 12 digits and the tool adds it for you, or enter all 13 and the supplied final digit is verified against the calculation — invalid inputs are rejected, never encoded.
- Why does my UPC-A need 12 digits?
- UPC-A is 12 digits including check digit. Enter 11 and the 12th is calculated; enter 12 and the last digit is verified. Leading zeros are preserved — an all-zero or zero-led value is kept exactly as typed.
- What characters can Code 128 encode?
- The full printable ASCII set — uppercase, lowercase, digits, common punctuation and spaces. It is ideal for product IDs, serial numbers and internal tracking codes, and handles longer values than EAN/UPC numeric codes.
- Is my content uploaded anywhere?
- No — everything runs entirely in your browser. The value you encode never leaves your device.
More from Avexora
All Avexora products →Business software from the team behind these free tools.
- CRM
Avexora AI CRM
A CRM and project workspace for growing businesses.
Visit Avexora AI CRM - WhatsApp Business API
AvexWA
WhatsApp Business API platform for broadcasts, chatbots and automation.
Visit AvexWA - AI business ecosystem
Avexora AI EBOS
From a blank page to a live funnel in minutes.
Visit Avexora AI EBOS - Enterprise AI
Avexora AI
Enterprise-grade AI systems for operations and growth.
Visit Avexora AI - AI voice calling
Avexora AI Voice Agents
Your business phone, answered by AI in every language, every hour.
Visit Avexora AI Voice Agents - OMR exam software
Avexora ExamOS
AI-powered OMR scanning and exam management for schools.
Visit Avexora ExamOS
Related tools
Free QR code generator. Turn any URL or text into a QR code with selectable size and error correction, and download it as a high-resolution PNG.
URL Encoder / DecoderFree URL encoder and decoder. Percent-encode text for query strings or decode %20-style URLs back to readable text — with component and full-URI modes.
URL Slug GeneratorFree URL slug generator. Convert page titles into clean lowercase slugs with hyphens or underscores — paste multiple titles and get one slug per line.
Base64 Encoder / DecoderFree base64 encoder and decoder. Convert any text to base64 or decode base64 back to text, with full Unicode support — runs entirely in your browser.
