Skip to content

EAN-13 barcode generator

Generate a valid EAN-13 barcode from 13 digits, automatically checking the check digit.

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

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

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.
QR & barcodes