DevToolCase
Sign in Sign in

Generate an EAN-13 bar code

Draw an EAN-13 bar code, its check digit computed, and download it as SVG or PNG; EAN-8, UPC-A and GS1-128 too.

Share this result

Encrypted in your browser. The key stays in the link, after “#”: only the people you give it to can read it, not even DevToolCase.

The link works for

Sign in for longer links or links without expiry, and to find them in your account.

With or without its check digit: computed when missing, checked when present.

Runs entirely in your browser: nothing you type is sent or stored.

The EAN-13 bar code

The EAN-13 is the bar code of products sold in shops, everywhere but in North America. Its 13 digits are a GTIN: a GS1 company prefix, whose first digits name the GS1 organisation that gave it (300 to 379 for France), a product reference, and a check digit.

The check digit

Type the first 12 digits and the 13th is computed: the digits, weighted 1 and 3 in turn, are added up, and the check digit brings the sum to the next ten. A digit mistyped at the till is caught this way. The GS1 check digit tool checks a whole list.

Printing it right

  • Download it as SVG for print: it stays sharp at any size.
  • Keep the quiet zones, the blank margins on each side: scanners need them.
  • The nominal size is 37.29 × 25.93 mm; from 80% to 200% of it is allowed.
  • Dark bars on a light background: black on white reads best, red bars do not read at all.

A real GTIN

To sell in shops, a GTIN must come from your GS1 member organisation (GS1 France, GS1 US…): a made-up number may belong to another product.

Add this browser’s favorites to your account?

This browser has 0 favorites that your account does not have:

Either way, this browser keeps its favorites: you find them again after signing out.