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.


mm
mm

X is the width of the narrowest bar. The standard size for EAN-13 is 0.33 mm.

How to use it

  1. Choose the barcode type: EAN-13 or UPC-A for retail products, Code 128 for stock labels or serial numbers, ITF-14 for cartons.
  2. Type the number or text. For EAN-13, 12 digits are enough: the 13th digit (the check digit) is added for you.
  3. If needed, change the module width X and the bar height in millimetres. The printed size appears under the preview.
  4. Press Download PNG for Word or a label printer, or Download SVG for packaging artwork and print shops.

Which barcode to use

TypeContentUsed for
EAN-1313 digitsRetail products worldwide
EAN-88 digitsPacks too small for EAN-13
UPC-A12 digitsRetail products in the US and Canada
ITF-1414 digitsCartons and outer cases in warehouses
Code 128Letters, digits, punctuationStock labels, serial numbers, assets, parcels
Code 39A–Z, 0–9, - . space $ / + %Older systems and membership cards

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.

XWidthMinimum bar height
0.264 mm (80%)29.83 mm18.28 mm
0.330 mm (100%)37.29 mm22.85 mm
0.660 mm (200%)74.58 mm45.70 mm

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.

Questions

Can I make up my own EAN-13 or UPC number?
Not for products sold in shops. EAN-13 and UPC numbers must come from GS1, through the GS1 organisation in your country. An invented number can clash with another product and will not be recognised by retailers’ systems. This tool only draws the barcode for a number you already have.
Which barcode should I use for my own stock labels?
Code 128. It takes letters, digits and punctuation, it is compact, and almost every scanner reads it, for example for a bin code such as BIN-A12-0045 or an asset number. Code 39 also works, but only with capital letters, digits and seven symbols, and it comes out longer for the same content.
Why won’t my printed barcode scan?
The usual causes: printed too small (X below 0.264 mm for EAN-13), the image stretched or squashed, the blank margins on the left and right cropped off, or bars that are not dark enough. Print at 100% scale, turn off “fit to page” and keep the quiet zones white.
PNG or SVG?
SVG is a vector image with its size written in millimetres, so it stays sharp and exactly to size in Illustrator, Inkscape or CorelDRAW. PNG suits Word, Excel and label printers. The PNG files from this tool store their resolution (DPI), so Word places them at the print size you chose.
What is a check digit?
The last digit of an EAN, UPC or ITF-14 number, calculated from the digits before it. The scanner recalculates it and rejects any read that does not match, so a single misread digit is almost always caught. If you type a full number with a wrong check digit, this tool shows the correct one.
Is the number I type sent to a server?
No. Your browser draws the barcode on your device, and the number or text you type is not sent anywhere.