Skip to content
cliplimeClipLime

Make an EAN-13 barcode

Type 12 digits and the check digit is added. Or type all 13 and it is checked. Nothing is uploaded.

What you type stays in your browser

Which product number?

Type 12 digits and the 13th, the check digit, is added for you. Or type all 13 and we check the last one.

EAN-13 holds 13 digits. The last one is a check digit. Spaces and hyphens you paste are ignored.

This tool draws the barcode for the number you give it. It does not register the number. Products sold in shops need numbers issued by GS1, because a made-up number can match someone else's product.

Your barcode

Type a number or some text and your barcode appears here, ready to download.

Style

Pixels for the thinnest bar. It sets how big the picture is.

3 px
100 px

In bar widths, on each side. EAN-13 needs at least 11 on the left and 7 on the right. The border is where a scanner finds the start of the code.

11 bars

The number or text a person can read.

20 px

Contrast 21:1Good

Black on white is the safest. Many shop scanners use red light and cannot see red or orange bars.

For PNG and SVG. The bars are then read against whatever is behind them.

Need a different kind of barcode? The barcode generator makes Code 128, Code 39, EAN-13, UPC-A, EAN-8 and ITF-14.

At a glance

Length
13 digits. Type 12 and the 13th, the check digit, is added. Or type all 13 and it is checked.
Bars
95 narrow bars wide, plus a blank border: 11 on the left and 7 on the right at least.
Standard size
0.33 mm bars: the 95 bars measure about 31 mm, or about 37 mm with the smallest blank border. GS1 allows 80% to 200% of that.
Prefix notes
Shows what 978 and 979 (books), 977 (magazines) and 2 (in store use) mean.
Downloads
PNG and SVG with your colours, bar height and text size.
Not included
It draws a number. It does not register it. Product numbers come from GS1.
Privacy
Made in your browser. Nothing is uploaded or saved.

How to do it

  1. 1

    Enter the 12 digits

    Paste or type the number. Spaces and hyphens are ignored. The 13th digit is worked out and shown.

  2. 2

    Check the prefix note

    If the number starts with 978, 977 or 2, a note explains what that means.

  3. 3

    Style the barcode

    Keep black bars on white. The blank border is 11 bars by default, which is enough on both sides.

  4. 4

    Download and print

    Use the SVG for print, and set the width with the Print size panel. Test with a scanner before you print packaging.

What the 13 digits mean

An EAN-13 (European Article Number, now managed by GS1 as the GTIN-13) is made of a GS1 prefix, a company prefix, an item reference and a check digit. The company prefix is licensed to a business, and that business gives each of its products an item reference. That is how two shops can scan the same box and get the same product.

The first two or three digits come from the GS1 office that issued the company prefix. They show where the company joined GS1, not where the product was made. A product made in Vietnam by a company registered in Germany can carry a German prefix.

  • 978 and 979: ISBN numbers for books. The ISBN-13 on a book is an EAN-13.
  • 977: ISSN numbers for magazines and journals.
  • 2: numbers meant for use inside one store or company, for example for items priced by weight. They are not unique across shops.
  • 0: an EAN-13 starting with 0 is a UPC-A with a 0 in front.

The first digit has no bars of its own

An EAN-13 draws 12 digits as bars: six on the left of the middle guard and six on the right. The first digit is not drawn. It is hidden in the pattern used for the left six digits, which each use one of two bar patterns, called odd and even parity. The mix of those patterns tells the scanner what the first digit is. This is how the format fits 13 digits into the same width as a 12 digit UPC-A, and it is why a UPC-A is an EAN-13 with a 0 in front: with a first digit of 0, all six left digits use the same pattern.

The long bars at the left, the middle and the right are guard bars. They tell the scanner where to start, where the halves meet and where to stop, and they let it work out the width of the thinnest bar. The tool draws them the standard way.

Sizes and the blank border

The symbol is 95 narrow bars wide. The standard asks for a blank space of 11 bars on the left and 7 on the right. The tool puts the first digit in the space on the left, as printed barcodes do. GS1 gives 0.33 mm as the normal bar width, which makes the bars about 31 mm wide and the barcode about 37 mm wide with the smallest blank border, and allows 80% to 200% of that size. Do not print smaller than 80%.

Print black bars on a white or light background, and do not use red or orange for the bars, because shop scanners use red light. Do not stretch the barcode in only one direction, and do not cut off the digits or the border to fit a label.

Questions people ask

How do I get a real EAN-13 number for my product?

From GS1. Each country has a GS1 member organisation that licenses a company prefix, and some resellers sell single numbers. This tool does not issue numbers. It draws the barcode for the number you give it.

What if I type 13 digits and the last one is wrong?

The tool works out what the check digit should be for the first 12 digits, shows you, and offers a button that fixes it. A wrong check digit usually means a mistyped digit somewhere in the number, so compare it with the original.

Is the number's prefix the country of origin?

No. The first digits show the GS1 office that gave out the company prefix. Where the product was made is not stored in the barcode.

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

A UPC-A has 12 digits and an EAN-13 has 13. A UPC-A is read as an EAN-13 with a 0 in front, so the same bars can carry either. If you have a UPC-A number, use the UPC-A barcode generator.

Can I make an ISBN barcode with this?

Yes. An ISBN-13 starts with 978 or 979 and is an ordinary EAN-13. Type the first 12 digits and the check digit is added. The tool does not draw the extra 5 digit price add-on that some books carry.

Guides that help

All QR codes guides →