Development

EAN-13 Barcode Generator

Build an EAN-13 barcode from 12 digits or verify all 13 digits, preview the bars and download SVG.

01Input and settings

The calculation runs in your browser. You can use the tool without installing software.

02Result

Waiting for input
Waiting for input

Enter your values or load the example to see the result here.

About this tool: EAN-13 Barcode Generator

Build an EAN-13 barcode from 12 digits or verify all 13 digits, preview the bars and download SVG.

Enter 12 digits to calculate the last digit, or 13 digits to check it. A wrong check digit produces an error instead of a different code. The preview and downloaded SVG include the encoded modules, guard bars and white margins. The generator creates the symbol; it does not allocate a GS1 identifier.

How the calculation works

check = (10 − Σ(dᵢ × weightᵢ) mod 10) mod 10

Worked example

EAN-13 (12 / 13)
400638133393
EAN-13: 4006381333931

Questions and answers

What does this tool do?

Build an EAN-13 barcode from 12 digits or verify all 13 digits, preview the bars and download SVG. Enter 12 digits to calculate the last digit, or 13 digits to check it. A wrong check digit produces an error instead of a different code. The preview and downloaded SVG include the encoded modules, guard bars and white margins. The generator creates the symbol; it does not allocate a GS1 identifier.

What affects precision and input format?

Checks the checksum and format, without a publication or product database lookup.

Where are the calculations performed?

The calculation runs in your browser. You can use the tool without installing software.

Comments (0)

Share your thoughts — please be polite and stay on topic.

No comments yet. Leave a comment — share your opinion!

To leave a comment, please log in.

Log in to comment