Free Tool — Generated in Your Browser

Barcode Generator

Create Code 128, EAN-13, UPC-A, and Code 39 barcodes instantly. No API, no uploads — everything runs locally.

Bar Height 80px
Bar Width
#000000
#ffffff
Barcode ready
Type data to generate instantly
Why Use AFFLIGO?
100% Private
Your data stays in your browser. Nothing sent anywhere.
PNG & SVG Export
Download raster or scalable vector formats.
4 Symbologies
Code 128, EAN-13, UPC-A, and Code 39 all in one tool.

How to Generate a Barcode

Step 1
Choose Type & Data
Pick a symbology (Code 128, EAN-13, UPC-A, or Code 39) and type your data.
Step 2
Customize
Adjust bar height, width, colors, and toggle human-readable text.
Step 3
Download
Export your barcode instantly as PNG for print or SVG for scaling.

Frequently Asked Questions

Can I use these barcodes commercially?
Yes. The barcode encodings implemented here are open standards. However, for retail use (EAN-13, UPC-A), you must purchase valid manufacturer IDs from GS1 or your local numbering authority. This tool helps you generate the barcode graphic, but the numbers themselves must be licensed for commercial products.
Why does my EAN-13 input need 13 digits?
EAN-13 encodes exactly 13 digits. The 13th digit is a check digit calculated from the first 12 using a modulo-10 algorithm. If you enter 12 digits, the generator will calculate the correct check digit for you. If you enter 13 digits, it validates that the check digit is correct.
Are the barcodes generated on the server?
No. Everything runs in your browser using JavaScript. No data is sent to any server. The barcode encoding algorithms (Code 128, EAN-13, UPC-A, Code 39) are implemented directly in JavaScript, and the barcode is rendered onto an HTML5 Canvas element. You can use this tool completely offline after the page loads.
What is the difference between PNG and SVG downloads?
PNG is a raster image format suitable for most uses like printing and web graphics. SVG is a vector format that scales infinitely without losing quality, ideal for professional design work, large-format printing, and further editing in vector software like Illustrator or Inkscape.
What barcode types are supported?
The tool supports Code 128 (alphanumeric, most versatile), EAN-13 (retail, international), UPC-A (retail, North America), and Code 39 (industrial, alphanumeric).