Skip to content
hateitall

EAN-13 Barcode Generator

Get a retail barcode with the right check digit, ready for packaging artwork.

Processed locallyIn: DigitsOut: SVG, PNG

Loading tool…

How to use ean-13 barcode generator

  1. Type the 12 digit number from GS1 (or 7 digits for EAN-8).

  2. See the check digit added, or a clear error if a full number has the wrong one.

  3. Set the bar width and height.

  4. Download the SVG for print artwork or the PNG for screens.

What this tool does

  • Computes the GS1 check digit, or tells you the correct one when a typed check digit is wrong.
  • Uses the right left-half parity pattern for the first digit, as scanners expect.
  • Draws longer guard bars and places the digits under each half in the familiar layout.
  • Switch to EAN-8 for small packs.

How the result is verified

The drawn barcode is read back from its pixels and decoded, the parity pattern is turned back into the first digit and the check digit is recomputed. Both files must match before download.

Frequently asked questions

How is the EAN-13 check digit worked out?

Starting from the right of the first 12 digits, multiply digits alternately by 3 and 1, add them up, and take the amount needed to reach the next multiple of 10. The tool does this for you.

Is an ISBN barcode the same thing?

A 13 digit ISBN starting 978 or 979 is printed as an EAN-13, so you can enter it here. The price add-on that some book barcodes carry is not supported.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Code 128, EAN-13, EAN-8, UPC-A and Code 39 as verified SVG or PNG

Text · Digits→ SVGLight on device

UPC-A barcodes for US and Canadian retail, check digit included

Digits→ SVGLight on device

Compact Code 128 barcodes for labels and stock, with automatic set switching

Text→ SVGLight on device

Read QR codes from images, pasted screenshots or the camera

PNG · JPEG · WebP +→ TextLight on device