Create an EAN-13 Barcode With the Check Digit Worked Out
Type the first 12 digits and the 13th, the check digit, is added. Type all 13 and it is checked. Download a PNG, or an SVG for print.
- Free, no sign-up
- GS1 print sizes
- PNG and SVG
- Made in your browser
1Enter 12 or 13 digits
12 digits (the check digit is added) or 13 digits (it is checked).
Your barcode
Your number, digit by digit
Size and style options
Bars are always black, because scanners need strong contrast. The standard white margin is part of the barcode: leave it on unless you are placing the image in your own layout with space around it. For retail print, choose Extra tall to keep GS1's proportions.
Make many at once
Put one value on each line. It uses the barcode type and options chosen above and downloads one ZIP with a file for every line (up to 200 lines).
Barcode type for this list: EAN-13
What the 13 digits of an EAN-13 mean
An EAN-13 barcode holds a 13-digit GTIN-13: a GS1 prefix, your company number, your item number and a check digit. Only the check digit has a fixed place. The split between company and item number depends on how many numbers your GS1 licence covers. Type a number above and its prefix is looked up for you.
| Starts with | Means |
|---|---|
| 000–019, 030–039, 060–139 | Issued by GS1 US (these also work as UPC-A) |
| 020–029, 040–049, 200–299 | Restricted use inside one company or shop, never for general sale |
| 400–440 | Issued by GS1 Germany |
| 500–509 | Issued by GS1 UK |
| 690–699 | Issued by GS1 China |
| 890 | Issued by GS1 India |
| 896 | Issued by GS1 Pakistan |
| 977 | Magazines and other serials (ISSN) |
| 978–979 | Books (ISBN) |
The prefix shows which GS1 office issued the number, not the country where the product was made.
How the EAN-13 check digit is calculated
Multiply the first 12 digits by 1 and 3 in turn, add the results, and find how much is needed to reach the next multiple of 10. That amount is the check digit. A scanner repeats the sum, so a misread digit is caught. The working below uses the number you typed.
EAN-13 or UPC-A?
EAN-13
13 digits. Used for retail almost everywhere outside the US and Canada, and for books worldwide. Numbers come from your country's GS1 office.
UPC-A
12 digits. The retail barcode of the US and Canada, issued by GS1 US and GS1 Canada. Make one with the UPC-A generator.
A UPC-A is an EAN-13 with a leading 0, so 0 12345 67890 5 and 0012345678905 are the same product. Under GS1's "Sunrise 2005", shops in the US and Canada were asked to be able to scan EAN-13 from 1 January 2005. If your GS1 office issued you a 13-digit number, print it as EAN-13.
EAN-13 barcode size for print
Shop scanners read EAN-13 from 80% to 200% of the standard size. The whole symbol includes a white margin of 11 bar widths on the left and 7 on the right; keep it clear of text and edges. Download the SVG and scale it to a width below.
| Size | Thinnest bar | Width with margins | Bar height |
|---|---|---|---|
| 80% (smallest) | 0.264 mm | 29.83 mm | 18.28 mm |
| 90% | 0.297 mm | 33.56 mm | 20.57 mm |
| 100% (standard) | 0.330 mm | 37.29 mm | 22.85 mm |
| 120% | 0.396 mm | 44.75 mm | 27.42 mm |
| 150% | 0.495 mm | 55.94 mm | 34.28 mm |
| 200% (largest) | 0.660 mm | 74.58 mm | 45.70 mm |
Worked out from GS1's bar width of 0.330 mm and bar height of 22.85 mm at 100% (GS1 General Specifications, as published by GS1 UK).
EAN-13 barcodes for books, and the 5-digit add-on
An ISBN-13 is an EAN-13 that starts with 978 or 979, so you can make a book's barcode on this page by typing the ISBN. Many publishers, especially in the US, also print a small 5-digit add-on to the right with a price code, for example 51995 for US$19.95, or 90000 for no suggested price. This page doesn't draw the add-on.
Your ISBN comes from your country's ISBN agency, not from GS1 and not from a generator.
Frequently asked questions
Is this EAN-13 barcode generator free?
Yes, the barcode image is free with no sign-up. The number must still be yours, from GS1 for products or from your ISBN agency for books.
Is EAN-13 the same as GTIN-13 and JAN?
GTIN-13 is the 13-digit number and EAN-13 is the barcode that carries it. JAN is the name used in Japan for the same barcode.
Why is the first digit outside the bars?
The first digit has no bars of its own. It is coded in the pattern of the left six digits, so it is printed to the left of the barcode.
What's the smallest EAN-13 I can print?
80% of the standard size: 29.83 mm wide including the margins, with a thinnest bar of 0.264 mm. Smaller barcodes may fail at shop scanners.
Can I use an EAN-13 on Amazon?
Yes, if the number was issued to your company by GS1. Amazon generally checks numbers against GS1's records, so a made-up or random number may be rejected.
Do I type the check digit?
Either way works. Type 12 digits and it is added; type 13 and it is checked, and you're told the right digit if yours is wrong.
Can I make many EAN-13 barcodes at once?
Yes. Paste one number per line, up to 200, and download a ZIP of PNG or SVG files. Lines with a wrong length or check digit are listed so you can fix them.
How much data does an EAN-13 hold?
Exactly 13 digits: 12 of data plus the check digit. It holds no letters, prices or product names; shops look the number up in their own system.