How do I create a barcode online?
This free barcode generator creates EAN-13, EAN-8, UPC-A, UPC-E, Code 128, Code 39, ITF-14, MSI, Codabar and Pharmacode barcodes. For EAN, UPC and ITF-14 it calculates the GS1 check digit for you and warns you if the one you typed is wrong. Adjust size and colors, then download a PNG or SVG. Everything runs in your browser.
How to generate a barcode
- 1
Choose the barcode type that your shop, carrier or marketplace requires.
- 2
Enter the number or text; for EAN and UPC, the check digit is added automatically.
- 3
Adjust bar width, height, text and colors, and check the preview.
- 4
Download the barcode as PNG or SVG.
Key features
10 barcode types
EAN-13, EAN-8, UPC-A, UPC-E, Code 128, Code 39, ITF-14, MSI, Codabar and Pharmacode.
Check digit helper
Computes the GS1 check digit and validates numbers you already have.
Print-ready files
Download a high-resolution PNG or a vector SVG.
Free and private
No sign-up, no watermark, no upload.
Frequently asked questions
Can I use these barcodes to sell products in stores?
The barcode image is valid, but retail EAN and UPC numbers must be licensed from GS1, because the prefix identifies your company. A random number can clash with another product, so buy your numbers from GS1 for retail use.
What is a check digit?
It is the last digit of an EAN, UPC or ITF-14 number, calculated from the other digits so scanners can detect typing errors. Enter the number without it and this tool adds the correct digit.
Which barcode type should I choose?
Use EAN-13 or UPC-A for retail products, ITF-14 for cartons, and Code 128 for logistics, inventory and shipping labels. Code 39 is common in industry and ID cards.
What size should I print a barcode?
The standard EAN-13 size is about 37 × 26 mm at 100%. Keep a quiet margin around the bars, do not stretch the image, and print at 300 dpi or use the SVG for sharp lines.
Why does my barcode show an error?
Each type has rules: EAN-13 needs 12 or 13 digits, EAN-8 needs 7 or 8, UPC-A needs 11 or 12, and Code 39 allows only capital letters, digits and a few symbols. The message under the field explains what to fix.