Skip to generator
oddsprig

Free EAN-13 Barcode Generator

Create a 13-digit EAN-13 barcode from your product number. Enter 12 digits and the check digit is added, or all 13 to check them; download PNG or SVG.

Loading generator…

Open the full generator with this preset

How to use this generator

  1. Enter 12 digits, or a complete valid 13-digit EAN.
  2. Keep EAN-13 selected and review any validation message.
  3. Check the value against your assigned product number.
  4. Download PNG or SVG and test the printed label.

What a 13-digit EAN barcode is

EAN-13 is the 13-digit barcode printed on most retail products around the world, and checkout scanners in the US and Canada read it too. When someone asks for a “13-digit barcode”, they almost always mean EAN-13. Books use the same barcode: an ISBN-13 is an EAN-13 that starts with 978 or 979.

DigitsWhat they mean
First 2–3The GS1 prefix: which GS1 office issued the company’s number. It does not show where the product was made.
MiddleThe company prefix and item reference: together they identify the brand owner and the exact product. Where one ends and the other begins depends on the company’s prefix.
13thThe check digit, worked out from the first 12 so scanners can catch a misread.

How the EAN-13 check digit is calculated

The generator adds the check digit for you when you enter 12 digits. To work it out by hand, take the example number 590123412345:

  1. Add the digits in the odd positions (1st, 3rd, 5th … 11th): 5 + 0 + 2 + 4 + 2 + 4 = 17.
  2. Add the digits in the even positions (2nd, 4th … 12th) and multiply by 3: (9 + 1 + 3 + 1 + 3 + 5) × 3 = 66.
  3. Add the two results: 17 + 66 = 83.
  4. The check digit is what takes that total up to the next multiple of 10: 90 − 83 = 7. If the total already ends in 0, the check digit is 0.

So the full EAN-13 is 5901234123457.

Where EAN-13 numbers come from

This generator draws the barcode; it does not give you a number. For products sold in shops or online marketplaces, the number should come from GS1, through your country’s GS1 office, either as a single number or as a company prefix for a range of products. Many retailers and marketplaces check barcodes against GS1’s records, so numbers bought from resellers can be rejected.

For barcodes that never leave your own business, such as shelf or stockroom labels, GS1 sets aside numbers starting with 20 to 29 for internal and in-store use.

Printing EAN-13 barcodes that scan

Barcode formats

FormatWhen to use it
EAN-13Assigned retail product identifiers with 13 digits.
UPC-AAssigned retail product identifiers with 12 digits.
ITF-14Carton identifiers when the receiving workflow requires ITF-14.

About this tool

The EAN-13 generator calculates the final digit for 12-digit input and validates the check digit when all 13 digits are supplied.

This tool only creates the EAN-13 image; it does not register your product. Use an identifier assigned to your product and accepted by your retailer.

Check the digit count and final check digit. Keep leading zeros and enter digits without spaces or punctuation.

Your input stays in your browser.

The product number must stay valid and be accepted by the system that reads it.

EAN-13 questions

Is this EAN-13 barcode generator free?

Yes. There’s no sign-up and no watermark, and the barcode is made in your browser, so your numbers aren’t uploaded.

What’s the difference between EAN-13 and UPC-A?

EAN-13 has 13 digits and UPC-A has 12. Every UPC-A is the same number as an EAN-13 that starts with 0: UPC-A 614141123452 is EAN-13 0614141123452. Checkout scanners read both. If you have a 12-digit UPC, use the UPC barcode generator.

Do the first digits show the country of origin?

No. They show which GS1 office issued the number. A product made in one country can carry a prefix from another.

Why is my 13-digit number rejected?

Its last digit doesn’t match the check digit calculated from the first 12, which usually means a typing mistake. Enter only the first 12 digits to see the correct check digit, then compare it with your records.

All barcode and QR tools · Free Barcode Generator · Free UPC-A Barcode Generator · Free Wi-Fi QR Code Generator