Image & Photo

Barcode generator

Create EAN-13 or Code 128 barcodes with checksum, PNG export.

  • Instant
  • Free
  • Private (processed locally)
  • No sign-up
Encoded value:

Two standards, one tool

Whether you label a product or a parcel, the right format matters. This tool generates EAN-13 and Code 128, computes the check digit for you and draws the bars on a canvas, exportable as PNG.

  1. Choose the format

    EAN-13 for 13 digits, Code 128 for text.

  2. Enter the data

    The check digit is computed automatically.

  3. Export

    Download the PNG, ready to print.

EAN-13 vs Code 128

CriterionEAN-13Code 128
Content13 digitsASCII text
ChecksumModulo 10Modulo 103
UseRetail productsLogistics, labels
Example978020137962 → …624CLIC-TOOLS

Everything is computed locally. Print sharp, without stretching, and keep white margins for a reliable scan.

Frequently asked questions

What is the difference between EAN-13 and Code 128?

EAN-13 encodes exactly 13 digits and is used for retail products (the code on packaging). Code 128 encodes variable-length ASCII text (letters, digits, symbols) and is used in logistics, labeling and parcel tracking.

How is the EAN-13 check digit computed?

From the first 12 digits: sum the odd-position digits, plus three times the even-position ones, then round up to the next ten. For example, 978020137962 gives check digit 4, so the full code is 9780201379624.

Does Code 128 also have a checksum?

Yes: a control character computed modulo 103 from the start code and each symbol’s position. The tool adds it automatically, which ensures a reader will accept the code.

Will the barcode be scannable?

Yes, if printed at a sufficient size with good margins (quiet zones) on both sides. Export the PNG, print it sharp and without stretching, and keep clear space around the bars.