Barcode Generator
Type a number or text, pick a barcode type and download a crisp PNG or SVG. Check digits are calculated for you, and bulk mode turns a whole list into a ZIP of barcodes.
Appearance
How to use the Barcode Generator
- Choose a barcode type. Use EAN-13 or UPC-A for retail products, Code 128 for text and internal labels, ITF-14 for shipping cartons.
- Enter the value. For EAN and UPC you can leave out the last digit: the check digit is added automatically.
- Adjust the look: bar width, height, text, margins and colors. The preview updates instantly.
- Download PNG or SVG. SVG is best for print and design tools because it scales without blurring.
- Need many barcodes? Switch to Bulk, paste one value per line and download them all as a ZIP.
Barcode types compared
| Type | Characters | Length | Check digit | Typical use |
|---|---|---|---|---|
| Code 128 | All 128 ASCII characters | Variable | Mod 103 (built in, always added) | Shipping labels, inventory, asset tags, GS1-128 |
| EAN-13 | Digits | 13 | Mod 10 (weights 1, 3) | Retail products worldwide, books (ISBN 978/979) |
| UPC-A | Digits | 12 | Mod 10 (weights 3, 1) | Retail products in the USA and Canada |
| EAN-8 | Digits | 8 | Mod 10 | Small packages where EAN-13 does not fit |
| Code 39 | A–Z, 0–9, space, - . $ / + % | Variable | Optional mod 43 | Automotive (AIAG), defense, ID badges, older systems |
| ITF-14 | Digits | 14 | Mod 10 (GTIN-14) | Cartons and cases in the supply chain |
How the GS1 check digit is calculated
EAN-13, UPC-A, EAN-8 and ITF-14 all use the same mod 10 rule. Starting from the digit just left of the check digit and moving left, multiply the digits alternately by 3 and 1, add the products, and take the amount needed to reach the next multiple of 10.
Example for EAN-13 590123412345?: from the right, 5×3 + 4×1 + 3×3 + 2×1 + 1×3 + 4×1 + 3×3 + 2×1 + 1×3 + 0×1 + 9×3 + 5×1 = 15 + 4 + 9 + 2 + 3 + 4 + 9 + 2 + 3 + 0 + 27 + 5 = 83. The next multiple of 10 is 90, so the check digit is 7 and the full number is 5901234123457.
Code 128 uses a different checksum that is always added automatically and never printed: the start code plus each symbol value times its position, modulo 103.
Printing tips for barcodes that scan
- Keep the quiet zone. Leave white space on both sides of at least 10 times the narrowest bar (EAN/UPC: about 11 modules on the left and 7 on the right). The margin setting controls this.
- Use dark bars on a light background. Black on white is best. Red bars are invisible to most laser scanners, and inverted (light on dark) codes often fail.
- Do not squash the barcode. Scale width and height together. For print, download SVG or a 3x/4x PNG so the bar edges stay sharp.
- Test before mass printing. Scan a printed sample with a phone app or a handheld scanner, especially on curved or glossy packaging.
Frequently asked questions
Which barcode type should I use?
Retail products sold in stores use EAN-13 (worldwide) or UPC-A (USA and Canada), with numbers issued by GS1. Code 128 is the most compact general-purpose barcode for letters and numbers, used for shipping labels, inventory and asset tags. Code 39 is older and larger but still required by some industries. ITF-14 marks outer shipping cartons.
Can I make a real UPC or EAN for my product here?
You can generate the barcode image for any number, but to sell in stores the number itself must be licensed from GS1 (or your retailer's approved source). The generator draws the barcode; it does not issue product numbers.
How is the check digit calculated?
For EAN-13, UPC-A, EAN-8 and ITF-14, multiply the digits alternately by 3 and 1 starting from the rightmost digit before the check digit, add the results, and the check digit is the amount needed to reach the next multiple of 10. For example 590123412345 gives a sum of 83, so the check digit is 7.
PNG or SVG: which should I download?
SVG is a vector file that stays perfectly sharp at any size, ideal for print, labels and design software. PNG is a pixel image that works everywhere; choose 2x or 4x for printing so the bars stay crisp.
What size should a printed barcode be?
For EAN-13 and UPC-A the nominal size is about 37.3 × 25.9 mm (UPC-A) and 37.3 × 26.3 mm (EAN-13), and they can be scaled from 80% to 200%. Keep the white quiet zone on both sides and use dark bars on a light background for reliable scanning.
Why will my barcode not scan?
Common causes are a missing quiet zone (margin), low contrast (for example red bars or a dark background), bars printed too small or blurred, and a wrong check digit. Test the printed result with a phone scanner before printing large batches.
Is the generator free for commercial use?
Yes. The barcodes you create are yours to use on products, labels and documents without attribution.