Barcode Generator
Make printable barcodes as SVG and PNG: Code 128, EAN-13 and UPC-A with check digits worked out, and Code 39. Choose size and colours.
Barcode Generator makes printable barcodes as SVG and PNG files: Code 128 for letters and numbers, EAN-13 and UPC-A for retail products with the check digit worked out, and Code 39. Choose bar height, bar width, colours and whether to print the value.
Which barcode should I use?
EAN-13 and UPC-A
The retail barcodes on products. EAN-13 has 13 digits and UPC-A 12; the last is a check digit calculated from the others. Selling in shops needs numbers registered with GS1, not made up.
Code 128 and Code 39
Barcodes for internal use such as stock labels, assets and shipping. Code 128 holds any printable ASCII text compactly. Code 39 holds capital letters, digits and a few symbols and is read by almost every scanner.
Why use Barcode Generator?
- Correct encoding. Code 128 switches to its compact digit mode wherever that shortens the barcode, and adds its checksum. EAN and UPC check digits are calculated, or verified if you type them.
- Sharp at any size. The SVG is vector and prints crisply at any size. The PNG uses whole pixels per bar, so it stays crisp too.
- Made in your browser. No account and no upload.
How to use Barcode Generator, step by step

- Choose the type in Barcode Generator. Code 128, EAN-13, UPC-A or Code 39.
- Enter the value and set the look. For EAN-13 type 12 digits and for UPC-A 11; the check digit is added. Set bar height, bar width and colours.
- Make the barcode and download. Get both an SVG and a PNG. Print a test and scan it before a large run.
Frequently asked questions
Can I make my own EAN-13 numbers?
For internal use, yes. To sell in shops, the number must come from GS1 so it is unique worldwide; this tool only draws the barcode.
What does the mod 43 option do in Code 39?
It adds a check character calculated from the others. Some scanners and systems require it; most do not.
Can I use coloured bars?
Yes, but scanners need strong contrast: dark bars on a light background. Red bars in particular often fail to scan. You get a warning if the colours are too close.
Looking for the long version? The guides cover each of these jobs in depth.