Barcodes & labels

EAN-13 barcode generator

Type the 12-digit number and the check digit is worked out for you, or type all 13 and it is checked. Add a product name and price, then download a label ready to print.

In: Typed code · Excel or CSV listOut: PDF · PNG · SVG · ZPL

Type the barcode and label text

Nothing uploaded · Works offline · Check it yourself

Choose the label size, check the preview and download

Units
More settings: barcode size, bar height, text size, printer

Your label appears here as you type.

Shaded: the quiet zone, the blank margin a scanner needs. Dashed line: the label edge. Neither is printed.

    Printing the PDF: each page is exactly one label.
    • In the print dialog choose Actual size or a scale of 100%, not “Fit to page”.
    • On a label printer, set the paper size in the printer settings to the label size.

    This tool draws EAN-13 barcodes. The numbers themselves come from GS1 — see where EAN-13 numbers come from.

    Something not working? Report a problem (opens your email app). Please don’t attach your file.

    What the 13 digits mean

    An EAN-13 number (a GTIN-13) is read in four parts:

    • GS1 prefix — the first two or three digits show which GS1 office issued the company’s number: 500 to 509 for GS1 UK, for example. Books use 978 and 979, because a 13-digit ISBN is an EAN-13. The prefix doesn’t show where a product was made.
    • Company number — the rest of the prefix GS1 gives your business. Its length depends on how many products you need to number.
    • Item reference — the digits you assign to each of your products.
    • Check digit — the last digit, calculated from the other twelve.
    EAN-13 barcode for the number 4006381333931 on a 50 by 25 mm label, with the first digit printed outside the bars on the left
    EAN-13 4006381333931: the first digit sits outside the bars, then two groups of six.

    How the check digit is worked out

    Multiply the first 12 digits by 1 and 3 alternately, add up the results, and take the amount needed to reach the next multiple of 10. For 400638133393:

    Check digit for 400638133393
    Digit400638133393
    × weight131313131313
    = result40018324193999

    The results add up to 89. The next multiple of 10 is 90, so the check digit is 1 and the full number is 4006381333931. When the total is already a multiple of 10, the check digit is 0. To check a number on its own, or a whole column of them, use the check digit calculator.

    When you type 13 digits, the tool does this sum and compares the answer with your last digit. If they differ it doesn’t change your number; it shows the digit it expected, because the mistake is usually somewhere else in the number — two digits swapped, or one mistyped.

    EAN-13 sizes

    GS1 defines a standard size, called 100% magnification, where the narrowest bar is 0.33 mm. For barcodes scanned at a shop checkout, 80% to 200% is allowed. The sizes below include the blank margins either side and the digits underneath.

    EAN-13 dimensions by magnification
    SizeNarrowest barWidthHeight
    80% (smallest for checkouts)0.264 mm29.83 mm20.74 mm
    100% (standard)0.330 mm37.29 mm25.93 mm
    150%0.495 mm55.94 mm38.90 mm
    200% (largest)0.660 mm74.58 mm51.86 mm

    The preview tells you the size of your barcode as a percentage. On small labels the width usually fits but the full height doesn’t, so the bars are shortened. With “Fit the label” and a 203 dpi label printer selected, this tool gives an EAN-13 about these sizes when a product name and price are on the label too:

    • 50 × 25 mm label: about 114% of standard size.
    • 63.5 × 38.1 mm (the size of an Avery L7160 label): about 152%.
    • 38 × 25 mm label: about 76%. A 203 dpi printer can only make bars a whole number of dots (0.125 mm) wide, and 3 dots per bar is too wide for this label, so the barcode drops to 2 dots. At 600 dpi the same label gets about 90%.

    If the barcode is for shop checkouts, keep it at 80% or more. Below that the tool shows a warning.

    EAN-13 and UPC-A

    A UPC-A number is 12 digits, and adding a 0 in front makes it an EAN-13 for the same product. Scanners read both. Twelve digits typed here can mean two things: an EAN-13 without its check digit, or a complete UPC-A. If the number starts with 0, as US and Canadian UPC-A numbers usually do, and its last digit is a valid check digit, the tool reads it as UPC-A and shows it as an EAN-13 starting with 0. Otherwise it adds an EAN-13 check digit. Either way, when the other reading is also possible, a button lets you switch to it. For a barcode printed in the UPC-A style, use the UPC barcode generator.

    Where EAN-13 numbers come from

    Numbers for products sold in shops are issued by GS1 through its office in your country, such as GS1 UK. Each product, and each size or variant of it, needs its own number. Retailers and marketplaces can check a number against GS1’s records, so don’t reuse a number from another product or make one up. The guide how to get barcode numbers from GS1 walks through it. For labels that stay inside your business, a Code 128 barcode with your own stock code avoids needing a GS1 number at all.

    How your data stays private

    • Your browser does the work. Barcodes, previews and every download are made by code running in this page, on your own device. Spreadsheets are read in the page too.
    • Nothing is sent to a server. Your numbers, product names, prices and files are never uploaded, to us or to anyone else. The page also loads Google Analytics and Google ads; useme4’s code never passes what you type or open to them.
    • Only layout settings are remembered. Your browser keeps the label size, units, text size, printer resolution and alignment you last used, so the page opens the same way next time. Product details are never stored.

    You can check this yourself: how to verify that nothing leaves your browser.

    What this tool can’t do

    • Give you an EAN-13 number. It draws barcodes; numbers come from GS1.
    • Add-on codes. The 2- and 5-digit add-on barcodes printed beside some magazine and book barcodes aren’t supported.
    • Convert 10-digit ISBNs. Type the 13-digit ISBN (it starts with 978 or 979).
    • Non-Latin text in the PDF. Product names in the PDF can use English and Western European characters; others print as “?”, and the preview warns you.
    • Very big batches. Up to 10,000 labels per file; split bigger lists.

    Frequently asked questions

    Can I make an EAN-13 barcode without the check digit?

    Yes. Type the first 12 digits and the tool calculates the 13th and shows you what it added.

    It says my check digit is wrong. What should I do?

    Check the number against where it came from, such as your GS1 account. A wrong check digit usually means another digit was mistyped or two digits were swapped. If you are sure of the first 12 digits, the “Use” button fills in the number with the correct check digit.

    Does the first digit show the country a product is made in?

    No. The first two or three digits show which GS1 office issued the company’s number, not where the product was made or sold.

    Can I make a barcode for a book?

    Yes, if you have the 13-digit ISBN: it is an EAN-13 starting with 978 or 979, so type it here. The separate 5-digit price add-on isn’t supported.

    Can an EAN-13 be used in the US?

    US checkout scanners have been expected to read EAN-13 since 2005, but each retailer sets its own requirements, so check with the store. US and Canadian companies are usually given UPC-A numbers.

    How big should an EAN-13 barcode be?

    The standard size is 37.29 × 25.93 mm including margins and digits. For checkout scanning it can be from 80% to 200% of that. The preview shows your barcode’s size as a percentage.