EAN-13 Generator

Create EAN-13 barcodes in your browser. Enter 12 digits to calculate the check digit, or all 13 digits to verify the one you already have.

Barcode type

This page creates barcodes of this type.

EAN-13

Barcode value

Enter 12 digits to calculate the check digit, or 13 digits to verify it. Spaces and hyphens are ignored.

Options

Choose how the barcode appears in the preview and in downloads.

Barcode preview

The preview shows the barcode at its module geometry. Test printed barcodes with the scanner you plan to use.

Enter a value to see the barcode here.

Export & Download

PNG and SVG keep bar edges sharp. JPG is a compression format, offered for compatibility. Use PNG where crisp edges matter.

How to create an EAN-13 barcode

Enter 12 digits

Enter the first 12 digits of your EAN-13 number. The 13th digit, the check digit, is calculated for you.

Or enter all 13 digits

The check digit of a complete EAN-13 is verified. A mismatch is reported, and the value is not changed.

Read the status line

The status line below the value confirms whether the check digit was calculated or verified.

Check and download

Check the preview, then download PNG, JPG, SVG or PDF. Share PNG is available where your device supports it.

What this EAN-13 generator does

Creates EAN-13 barcodes for 13-digit numbers, with the check digit calculated or verified.

Calculates the 13th digit

From 12 digits, the generator adds the check digit using the EAN-13 rule.

Verifies a complete EAN-13

All 13 digits are checked against the check digit rule, and a mismatch is reported.

Ignores spaces and hyphens

Enter a number in groups. Separators are removed before the value is checked.

Four download formats

PNG, JPG, SVG and PDF, each built from the same barcode geometry.

EAN-13 and EAN-8

EAN-13 and EAN-8 are both EAN barcodes, but they serve different product sizes and number lengths.

EAN-8

An 8-digit format for small products. It is available in the general Barcode Generator, not on this page.

UPC-A

A 12-digit format used on retail products. Choose UPC-A only where your system requires it.

Code 128

A general-purpose barcode for text. It is not a product-number format.

How EAN-13 works

EAN-13 encodes 13 digits. The first digit selects a pattern rather than being drawn as bars, and the last digit is the check digit.

Thirteen digits

The last digit is the check digit. The first digit is not drawn as bars; it selects the parity pattern used for the digits on the left side.

The check digit

It is calculated from the first 12 digits with alternating weights of 1 and 3, counted from the left. Entering 12 digits calculates it; entering 13 verifies it.

EAN-13 and EAN-8

EAN-8 is a shorter format for small products. It is available in the general generator. Choose EAN-13 where your number or system requires 13 digits.

Drawing and quiet zones

The bars use the module geometry of the symbol. The generator keeps a minimum quiet zone of 11 modules on the left and 7 on the right.

Use an EAN-13 that your organisation is entitled to use. The generator does not allocate or verify GTINs.

Printing and scanning an EAN-13 barcode

Scanning depends on print quality, contrast and size. Test the printed result before using it in a retail or stock workflow.

Keep both quiet zones clear

Leave the left and right margins free of text and graphics. The left margin is the larger one.

Keep the bars undistorted

Scale the barcode uniformly. A stretched barcode can fail to scan.

Use SVG for scalable output

SVG keeps the bars as geometry. Use PNG for raster output with sharp module edges.

Check your size requirements

The tool does not apply GS1 print magnification or size limits. Check the requirements for your product before printing.

Test with the real scanner

Print the barcode at the intended size and scan it with the device your workflow uses.

Frequently asked questions

Why does the check digit change when I enter 12 digits?

The tool adds the 13th digit, calculated from the first 12. With 13 digits it checks the last digit and reports a mismatch if it is wrong.

Does this create a registered EAN?

No. The generator encodes the number you enter. It does not register or allocate a GTIN.

What about EAN-8?

EAN-8 is available in the general Barcode Generator. It has a shorter length and is not created on this page.

Can I use this page for UPC-A?

For UPC-A, use the UPC Barcode Generator. EAN-13 and UPC-A are related, but they have different lengths and input rules.

Can I share the barcode?

On devices that support file sharing, Share PNG passes the PNG file to the system share sheet. The number is not included as text.