Skip to content

EAN-13 barcode generator

Generate a valid EAN-13 barcode from 13 digits, the international standard for identifying products in retail.

Processed on your device. Nothing is sent to any server.

Validates that the last digit matches the check digit calculated from the previous 12 (weighted sum alternating weights 1 and 3, modulo 10) before generating the visual barcode.

Use cases

  • Generating a product's barcode for retail sale.
  • Verifying that an EAN-13 code has a valid check digit.
  • Creating test codes for a point-of-sale system.

How it works

  1. 1

    Enter the 13 digits

    Including the final check digit.

  2. 2

    Download the SVG

    If the check digit is correct, the code is generated automatically.

Frequently asked questions

What if the check digit doesn't match?

The tool warns you that the code isn't valid; check that you've copied all 13 digits correctly, including the last one.

What format can I download the code in?

SVG, a vector format that can be scaled or printed without losing quality.

Does this generate an EAN-13 code I can use to sell products?

The tool renders a barcode from the 13 digits you provide; to actually sell products you need an EAN-13 code officially assigned by GS1, not a made-up one.

Is the number I enter sent to a server?

No, the barcode is generated entirely in your own browser.

← QR & barcodes