Skip to content
Jellykit

EAN-13 Barcode Generator

Turn a 12- or 13-digit product number into a scannable EAN-13 barcode, with the check digit worked out or verified.

  • Runs on your device
Loading tool

About EAN-13 Barcode Generator

EAN-13 is the barcode on most retail products sold outside North America, and the format of an ISBN on the back of a book. Type the first 12 digits of the number and the 13th, the check digit, is calculated for you; type all 13 and the tool confirms the last one is right before drawing anything.

The barcode follows the standard layout, with longer guard bars and the digits printed in three groups underneath. Download it as a PNG or as an SVG for packaging artwork.

How it works

  1. The bar pattern is computed by the open-source jsbarcode encoder in your browser, then drawn by this page onto a canvas for the PNG and written out as rectangles for the SVG.
  2. EAN-13, EAN-8 and UPC-A share one check-digit rule: alternate digits are weighted 3 and 1 from the right, and the check digit brings the total up to a multiple of ten.
  3. Code 128 switches between its character sets automatically, so long runs of digits are packed two to a symbol and the barcode stays short.
  4. Sizes are whole pixels, so every bar lands exactly on the pixel grid and edges stay crisp.

Questions

How is the EAN-13 check digit calculated?

Starting from the rightmost of the first 12 digits, multiply digits alternately by 3 and 1 and add them up. The check digit is whatever brings that total to the next multiple of ten. For 590123412345 the total is 83, so the check digit is 7.

Where do I get an EAN-13 number?

From GS1, the organisation that issues retail product numbers, usually through your country’s GS1 office. Shops check that a number is registered to you, so making up a number is not enough to sell through them.

Can I make an ISBN barcode with this?

Yes. A 13-digit ISBN starting 978 or 979 is an EAN-13 number; enter it without hyphens. The price add-on that some books carry beside the main barcode is not drawn.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.