Skip to content

EAN-13 Barcode Generator

An EAN-13 barcode generator turns your 13-digit product number into the familiar retail barcode used on packaged goods in Pakistan, the UAE, India, the UK, Europe and most of the world. Enter the 12 digits from your GS1 allocation, the tool works out the thirteenth check digit, and the bars appear in the preview. Download a vector SVG for your packaging designer or a PNG for a quick label. Nothing is uploaded.

FreeNo signupNothing uploaded or stored

Barcode

Type 12 digits and the check digit is calculated for you.

Size & colours

Product label sheet

Loading preview…

How to use the ean-13 barcode generator

  1. Enter the 12 digits of your product number, which begin with the GS1 country prefix and your company prefix followed by the item reference you assigned.
  2. Let the generator calculate the check digit, or paste all 13 digits and the tool will confirm the last one is correct.
  3. Keep "show number" on so the digits print below the bars, as retailers expect this on packaging.
  4. Set the height to at least the standard proportion and scan the preview with a phone app or scanner before sending the file to print.

What to include

  • A genuine GS1 number for retail products, not a random 13-digit string
  • The check digit, which the tool computes, so tills accept the code
  • The human-readable number beneath the bars
  • Standard bar height; truncating the bars makes scanning unreliable
  • Clear quiet zones on both sides, especially the right side where the guard bars sit
  • A white or light background on the packaging behind the code

How the EAN-13 check digit is calculated

The thirteenth digit of an EAN-13 code is a checksum. Starting from the right, the twelve data digits are alternately multiplied by 3 and 1, the results are summed, and the check digit is the number needed to bring that sum up to the next multiple of ten. A till that scans a code recomputes this and rejects the code if it does not match, which is how a smudged bar is caught instead of charging for the wrong item. This generator performs the calculation automatically, so you cannot accidentally print a code that fails validation.

If you already have all 13 digits from your GS1 account or a supplier, paste the full number. The tool verifies the last digit and warns you if it is wrong, which usually means a typo in one of the earlier digits.

Frequently asked questions

Where do I get an EAN-13 number for my product?

From GS1, the organisation that allocates retail product numbers, through its office in your country. Each product and each pack size needs its own number. This tool only draws the bars for a number you already have.

Can I use an EAN-13 barcode on Amazon or Daraz listings?

Marketplaces generally ask for a GS1-registered EAN or UPC when you create a listing. Generate the image here for your packaging and enter the number itself in the marketplace form.

What is the difference between EAN-13 and ISBN barcodes on books?

Book barcodes are EAN-13 codes beginning with 978 or 979, derived from the ISBN. Type the 13-digit ISBN into this tool and it produces the correct bookland barcode.

Why does the tool say my 13-digit number is invalid?

The last digit did not match the checksum, so one of the digits is probably mistyped. Check the number against your GS1 certificate and re-enter it.

Do I need to sign up to download the EAN barcode?

No. Click Download PNG or Download SVG and the file saves immediately. There is no account, watermark or limit.