Barcode generator
Type the product number or text, choose the barcode type and download it as PNG, or as SVG, which scales without losing quality for print. Leave off the last digit of a UPC or EAN and it is calculated for you; type it in full and it is checked.
đź”’ Everything runs on your device
How to use it
- Choose the type: UPC-A for retail products in the US and Canada, EAN-13 for most other countries, EAN-8 for small packs, or Code 128 for internal SKUs, warehouses and shipping.
- Type the number or text.
- Adjust bar width, height and whether to show the text underneath.
- Download the barcode as PNG or SVG.
Example
The check digit of a UPC-A
For 03600029145 the check digit is 2. Digits in odd positions (0, 6, 0, 2, 1, 5) add up to 14, times 3 is 42; even positions (3, 0, 0, 9, 4) add up to 16. 42 + 16 = 58, and the amount needed to reach the next multiple of 10 (60) is 2. The full code is 036000291452.
How it works
UPC-A, EAN-13 and EAN-8 are encoded to the GS1 specifications, with their longer guard bars. The check digit is a modulo-10 sum with weights 3 and 1.
Code 128 follows ISO/IEC 15417: it accepts letters, digits and ASCII symbols (space to “~”) and switches to subset C, which packs two digits per symbol, for runs of 4 or more digits to keep the barcode short. The check character is modulo 103.
An 11-module blank quiet zone is added on each side so scanners can find the code.
Limitations
- Generating a UPC does not give you a number you can sell with: product numbers are licensed to each company by GS1 (GS1 US in the United States). For internal use, choose Code 128.
- Code 128 does not accept accented letters or emoji; up to 80 characters.
- Print with good contrast (black on white) and do not shrink the barcode below the size your scanner or retailer requires.
FAQ
Can I make up a UPC to sell in stores or on Amazon?
No. Retailers and marketplaces check that the company prefix belongs to you in the GS1 database. You need to license numbers from GS1 and use the ones assigned to you.
PNG or SVG?
SVG is vector: it scales without blur and is best for print and labels. PNG is a regular image, handy for documents and web pages; choose a wider bar if you plan to enlarge it.
Which barcode should I use for inventory?
Code 128: it accepts letters and digits, is compact and is read by virtually every scanner.