Free Barcode Generator
Choose a format, enter your number or text, and download the barcode. Code 128 accepts most text; EAN-13 and UPC-A need exactly 12 or 11 digits plus an automatic check digit.
Printable ASCII characters.
Choosing a barcode format
Code 128 is the general-purpose choice for shipping, inventory and internal labels because it encodes letters and numbers compactly. Code 39 is older but very widely supported. EAN-13 and UPC-A are the retail product codes used at the point of sale, and they require registered numbers from GS1 if you plan to sell through stores.
How EAN and UPC check digits work
EAN and UPC barcodes end with a check digit that lets a scanner catch a misread. Starting from the rightmost of the other digits, multiply them alternately by 3 and 1, add the results, and the check digit is whatever brings the total up to the next multiple of 10. For 590123412345 the check digit is 7, giving 5901234123457.
Enter 12 digits for EAN-13 (11 for UPC-A or 7 for EAN-8) and the generator adds the check digit for you. If you type the full number including a check digit, it verifies that the last digit is correct.
Printing barcodes that scan
Code 128 can encode any printable ASCII character and is the usual choice for shipping and inventory labels. Code 39 only covers capital letters, digits, space and - . $ / + %, but almost every scanner reads it. EAN-8 is the short retail code for small packages where an EAN-13 won't fit.
Download the SVG for print so the bars stay sharp at any size, since blurry bar edges are a common cause of failed scans. Print black bars on a white background, keep the blank margin on both sides, and test with the scanner you'll actually use.
Frequently asked questions
- Can I use a generated EAN or UPC to sell in shops?
- Retailers require numbers registered with GS1. A free generator can draw the barcode, but it cannot give you an official product number.
- Why does my EAN-13 code get rejected?
- EAN-13 needs 12 digits (the 13th is a check digit added automatically) or 13 digits with a correct check digit.
- What's the difference between a barcode and a QR code?
- A barcode is one-dimensional and usually holds a short number or code that a database looks up. A QR code is two-dimensional, holds much more, such as a full web address, and can be read by any phone camera.
- Which format should I use for inventory or shipping labels?
- Code 128. It packs letters and numbers compactly and is supported by virtually every modern scanner. EAN and UPC are only needed for retail products sold through stores.