Skip to content

Free calculator

EAN-13 barcode generator

Type your barcode number to add the check digit, or paste a full one to check it. See the printed size at any magnification and download the barcode as an SVG for your label or packaging.

Updated

Barcode type

Type 12 digits to add the check digit, or all 13 to check one.

%

100% is the standard size. GS1 allows 80% to 200% on retail packs.

EAN-13 barcode for 1234567890128

Check digit

8

Check digit added

Full EAN-13 number
1234567890128
Bar width (X-dimension)Narrowest bar or space
0.330 mm
Width with clear spaceBars alone: 31.35 mm
37.29 mm
Bar heightNot counting the numbers
22.85 mm

Calculations run in your browser. Nothing you enter is sent or stored.

What this generator does

It works with the two barcodes you see on retail products. EAN-13 has 13 digits and is used around the world. UPC-A has 12 digits and is common in the US and Canada.

  1. Type the number. Enter 12 digits for an EAN-13, or 11 for a UPC-A, and the check digit is worked out for you. Enter the full 13 or 12 digits to check a number you already have.
  2. Pick a size. 100% is the standard size. The results show the narrowest bar, the full width with clear space and the bar height in millimeters.
  3. Download the SVG. It is drawn in black on white at the exact size you chose, with the clear space on each side, ready to place in your label artwork.

Everything runs in your browser. The number you type is not sent anywhere.

You still need a real number

A barcode is only a picture of a number. This tool draws any valid number, but the number on a product you sell should be one you are licensed to use. Those come from GS1, usually through the GS1 office in your country. Each business gets a company prefix, and you add your own product numbers after it.

Numbers sold by resellers usually come from a prefix first licensed to another company, so they don't trace back to your brand in GS1's records. Before you buy numbers, check what each retailer or marketplace you sell through asks for.

How the check digit works

The last digit catches typing and scanning mistakes. GS1 calculates it the same way for EAN-13 and UPC-A.

StepWhat to do
1Starting from the rightmost digit, multiply the digits by 3, 1, 3, 1 and so on
2Add the results together
3The check digit is what brings that sum up to the next multiple of 10

Worked example

Take the 12 digits 123456789012. Counting from the right, the 2, 0, 8, 6, 4 and 2 are multiplied by 3, and the 1, 9, 7, 5, 3 and 1 are multiplied by 1.

  • (2 + 0 + 8 + 6 + 4 + 2) × 3 = 22 × 3 = 66
  • 1 + 9 + 7 + 5 + 3 + 1 = 26
  • 66 + 26 = 92. The next multiple of 10 is 100, so the check digit is 8

The full EAN-13 is 1234567890128. If someone types 1234567890127, the generator flags that the last digit should be 8.

UPC-A and EAN-13 are the same barcode

A UPC-A is an EAN-13 that starts with 0. The UPC 036000291452 and the EAN 0036000291452 have exactly the same bars. Switch the barcode type above and the leading 0 is added or removed for you.

Size and printing tips

  • Start at 100%. GS1 gives the standard size as 37.29 mm wide including the clear space, with 22.85 mm tall bars and a 0.33 mm narrowest bar.
  • Stay between 80% and 200%. That is the range GS1 gives for barcodes scanned at a retail checkout. Smaller is harder to scan.
  • Don't cut the height. Shortening the bars makes the barcode harder to read. If you must, check with your GS1 office and test the result.
  • Keep the clear space. Text, edges and folds that run into the white margin either side can stop a scan.
  • Print dark bars on a light background. Black bars on white give the most contrast, which is what scanners rely on.
  • Scan a proof with a phone or a store scanner before you order a full print run.

Some starting digits have a set meaning. Numbers starting 978 or 979 are for books (ISBN), and 020 to 029 are for a store's own in-store codes, not for products sold to other stores.

Next steps

Many stores scan products at the till, so they will ask for a barcode on each item along with your wholesale terms. Read how to sell wholesale to retailers, set your prices with the wholesale price calculator, and work out import costs with the landed cost calculator. Then list each product with its SKU and prices on a line sheet buyers can order from.

FAQ

EAN-13 barcode generator FAQ

How do I calculate an EAN-13 check digit?

Starting from the rightmost of the 12 digits, multiply each digit by 3, 1, 3, 1 and so on, then add the results. The check digit is the number that brings the sum up to the next multiple of 10. For 123456789012 the sum is 92, so the check digit is 8.

Can I use a barcode from this generator on my products?

You can use the image, but the number has to be one you are allowed to use. Numbers for products you sell are licensed from GS1, usually through the GS1 office in your country. The generator draws the barcode for whatever number you have.

What is the difference between EAN-13 and UPC-A?

UPC-A has 12 digits and EAN-13 has 13. A UPC-A is an EAN-13 with a leading 0, so 036000291452 and 0036000291452 have the same bars.

What size should an EAN-13 barcode be?

The standard (100%) size is 37.29 mm wide including the clear space, with 22.85 mm tall bars. GS1 gives 80% to 200% of that as the range for retail products. Avoid cutting the bar height.

Why download the barcode as an SVG?

An SVG is a vector file, so the bars stay sharp at any size and print exactly at the width you chose. Design tools and most label software can place it straight into your artwork.

Barcodes done? Put your products on a price list.

List each product with its SKU, wholesale and retail price, and download a clean PDF or share a link with buyers.