Skip to content

Free EAN-13 Barcode Generator

Generate a valid EAN-13 barcode in seconds. Type the first 12 digits and the check digit is added for you, or paste all 13 digits to have them validated. Preview the bars live, then download a PNG, SVG or vector PDF ready for packaging or labels.

12 digits (the check digit is calculated) or 13 digits (validated).

Valid· check digit 7 added

Customize
#000000
#ffffff

Generating…

Your data stays on your device.

How does it work?

  1. 1Type or paste 12 digits (the check digit is computed) or the full 13 digits (they are validated).
  2. 2Check the valid/invalid indicator and the digits printed under the bars; fix any error message that appears.
  3. 3Adjust the bar width, bar height, colours and switch the human-readable digits on or off.
  4. 4Download the barcode as PNG, SVG or a vector PDF.

What is EAN-13 Barcode Generator?

EAN-13 (European Article Number) is the 13-digit barcode printed on most retail products worldwide. The digits are made of a GS1 prefix that identifies the numbering agency, a company prefix, an item reference and a final check digit. In North America the same symbol is used as UPC-A with a leading 0 added, so tills read both.

The symbol is 95 modules wide and needs a blank quiet zone on each side. The left six digits use a parity pattern that also encodes the first digit, which is why that digit is printed outside the bars. At 100 % magnification the nominal size is about 37.3 × 25.9 mm, and retailers generally accept 80 % to 200 %.

This tool draws the barcode; it does not assign numbers. Official GTINs are issued through GS1 in your country. Inventing digits for products sold in shops can collide with another company's product, so keep made-up numbers for internal, test or in-house use.

When should you use it?

  • You are preparing a product for a shop or marketplace that requires a GTIN barcode.
  • A printer or packaging designer asks for a barcode file in SVG or PDF.
  • You want to check that a 13-digit number is valid before it goes to print.
  • You need internal stock or test barcodes for a till or inventory system.
  • You are producing a single clean barcode before making many labels with the batch or A4 label tools.

Privacy

This tool runs in your browser. What you type, paste or open is processed on your device by JavaScript and is not sent to our servers, stored or shared. Your data stays on your device.

The digits are turned into a barcode by JavaScript on your own device; nothing is sent or stored. The barcode contains only the 13 digits, no other data.

Frequently Asked Questions

How is the 13th digit calculated?

The digits of the first 12 positions are weighted 1, 3, 1, 3… from the left, added up, and the check digit is whatever brings the total to the next multiple of 10. The tool does this automatically when you enter 12 digits, and there is a dedicated check digit page that shows the calculation step by step.

What size should I print an EAN-13 at?

The nominal size is about 37.3 × 25.9 mm, and 80 % to 200 % is the usual accepted range. Do not go below 80 %, keep the white margins around the bars, and print at 100 % / actual size. Vector formats (SVG, PDF) stay sharp at any size.

Can I use any 12 digits to sell products in shops?

Technically the barcode will scan, but retail numbers are meant to be unique worldwide and are allocated by GS1. Numbers you make up may already belong to another product. Use invented numbers only for internal, training or testing purposes.

Why does the tool say my code is invalid?

Usually the 13th digit does not match the first 12, the input contains a non-digit character, or the length is not 12 or 13. Remove the last digit and enter 12 digits to let the tool compute the correct check digit.