Barcode Generator
Make barcodes for products, stock labels or shipping cartons. The check digit is calculated for you, and the size can follow the GS1 specification.
How to use it
- Choose the barcode type: EAN-13 or UPC-A for retail products, Code 128 for stock labels or serial numbers, ITF-14 for cartons.
- Type the number or text. For EAN-13, 12 digits are enough: the 13th digit (the check digit) is added for you.
- If needed, change the module width X and the bar height in millimetres. The printed size appears under the preview.
- Press Download PNG for Word or a label printer, or Download SVG for packaging artwork and print shops.
Which barcode to use
A retail barcode needs a number you are entitled to use. EAN-13 and UPC-A numbers (GTINs) are licensed by GS1 through its national organisations, such as GS1 US or GS1 UK. The first digits show which organisation issued the number, not where the product was made. For internal labels such as bin locations or asset tags, use Code 128: the content is free-form and nothing has to be registered. The sample numbers in this tool start with 952, a prefix GS1 reserves for examples.
How the EAN-13 check digit works
Take the first 12 digits, for example 952012345678. Multiply the digits in odd positions (1st, 3rd, 5th, …) by 1 and those in even positions by 3, then add everything up: (9 + 2 + 1 + 3 + 5 + 7) × 1 = 27 and (5 + 0 + 2 + 4 + 6 + 8) × 3 = 75, a total of 102. The next multiple of 10 is 110, so the check digit is 110 − 102 = 8 and the full number is 9520123456788. EAN-8, UPC-A and ITF-14 use the same method, always weighting the digit just before the check digit by 3. If one digit is mistyped or misread, the sum no longer matches and the scanner rejects the read.
Print sizes from the GS1 specification
A barcode's size is set by X, the width of the narrowest bar. For EAN-13 and UPC-A scanned at a checkout, the GS1 General Specifications (release 26.0, January 2026, symbol specification table 1) give the limits below. Widths include the quiet zones (11X left and 7X right for EAN-13, 9X on each side for UPC-A), 113X in all. Heights are for the bars only, without the digits.
EAN-8 at X 0.330 mm needs bars 18.23 mm tall. ITF-14 on cartons uses X from 0.495 to 1.016 mm, bars at least 31.75 mm tall, 10X quiet zones on both sides and a bearer bar: a 4.83 mm frame when printed straight onto corrugated board with plates, or bars above and below on labels. Code 128 and Code 39 from this tool also get 10X quiet zones.
Common mistakes
Shrinking the barcode below 80%, stretching the image in one direction only, cropping the quiet zones to fit a label, and printing the bars in red. Many scanners use red light, so red bars are invisible to them. Print at 100% scale and test-scan the first sheet before printing a batch.