Map Extract
Free tool

EAN-13 barcode generator

Type the 12 digits of a product number and get a scannable EAN-13 barcode with the check digit worked out for you, or enter all 13 to confirm the last digit is right. Download it as SVG for print artwork or PNG for a label template.

Runs in your browser. Nothing you enter is uploaded.

Making a barcode

  1. Enter the number

    Type 12 digits and the 13th, the check digit, is calculated and shown in a note under the box. If you paste a full 13-digit number, the tool checks the final digit instead and tells you what it should be if it is wrong.

  2. Set the height

    Use the height slider to make the bars taller or shorter. Taller bars are easier to scan on curved packs; the width of the bars stays the same.

  3. Check the preview

    The barcode appears with the full number printed underneath in the usual EAN layout. If nothing appears, the message explains whether the input is too short or has a wrong check digit.

  4. Download

    Download SVG for packaging artwork or anything you will resize, or Download PNG for a quick label, which is rendered at three times the preview size on a white background.

  5. Test before printing

    Print one copy at actual size and scan it with a phone or the till scanner you will be selling through before ordering a full run.

Example: a small food producer's first retail product

A fictional chutney maker has joined GS1 UK and been allocated a company prefix, so its numbers begin 506098765. The first product gets item reference 432, giving the 12 digits 506098765432.

The generator adds 5 as the check digit. When the producer later types the full number from a printed proof and makes a typing slip in the last digit, the tool flags it straight away.

Input
506098765432
5060987654320
Result
Check digit: 5 (added automatically).  Barcode: 5060987654325
The last digit should be 5. Check the number.

Terms on the packaging brief

EAN-13
The 13-digit retail barcode used on most products sold in the UK and Europe. It is also a GTIN-13.
GTIN
Global Trade Item Number, the family of product numbers (8, 12, 13 or 14 digits) that EAN and UPC barcodes carry.
Company prefix
The leading digits GS1 allocates to your business. The rest of the number is yours to assign to products.
Check digit
The last digit, calculated from the others, which lets a scanner reject a misread.
Quiet zone
The blank space either side of the bars. Do not let other artwork crowd into it.

Questions people ask

How is the EAN-13 check digit calculated?

Starting from the left, multiply the 1st, 3rd, 5th and other odd-position digits by 1 and the even-position digits by 3, then add them up. The check digit is whatever you add to that total to reach the next multiple of ten. For 506098765432 the total is 95, so the check digit is 5.

Can I make up my own EAN numbers?

You can draw a barcode for any 12 digits, but retailers and marketplaces check numbers against the GS1 registry, and an invented number may belong to someone else's product. For selling through shops, get a company prefix from GS1 UK. For internal stock labels that never leave your business, a Code 128 barcode is usually a better choice.

Should I download SVG or PNG?

SVG is a vector file, so it stays sharp at any size and is what designers and printers prefer for packaging. PNG is a fixed image, convenient for word processors and label software. If you use PNG, avoid stretching it, because uneven scaling changes the bar widths and can make it harder to scan.

What size should an EAN-13 barcode be printed?

GS1 publishes a standard size and an allowed range of magnifications, with a minimum below which scanners struggle. Your retailer's packaging guidelines or GS1 UK's own guidance give the exact figures. Whatever size you choose, keep the proportions, keep the quiet zones clear and test-scan a printed copy.

Where your data goes

The barcode is calculated and drawn on this page. The numbers you type are not sent to Map Extract or anyone else, and the downloads are created in your browser.

Checked against the tool on

Top