481+ free calculators — no sign-up, no ads, no paywalls. Browse all tools →
Start typing to search...
Global Retail Barcode Creator

EAN-13 Barcode Generator

Create a valid EAN-13 barcode from 12 data digits or validate an existing 13-digit code. Generate the barcode instantly, calculate the check digit automatically and download your result as SVG or PNG.

Check Digit
EAN-13 Encoding
SVG & PNG
Instant Preview
Retail Barcode Preview ● Ready
EAN-13 4006381333931 12 or 13 Digits • Validate • Download

Create Your EAN-13 Barcode

Enter 12 digits to calculate the check digit automatically, or enter a complete 13-digit EAN number for validation.

EAN-13 Barcode Generator 13-digit retail barcode generator
Browser Based
12 OR 13 DIGITS
Enter 12 digits and the 13th check digit will be calculated automatically. Enter 13 digits and the supplied check digit will be validated before the barcode is created.
Try an example
Generated EAN-13 Barcode Valid EAN-13
Complete EAN-13
Data Digits
Check Digit
Symbology EAN-13 / GTIN-13

What Is an EAN-13 Barcode?

EAN-13 is a 13-digit retail barcode format used to encode product identification numbers. It is commonly found on consumer goods and retail packaging around the world.

The first 12 digits contain the data, while the final digit is a check digit calculated from the previous 12 digits.

Why Does EAN-13 Use Parity Patterns?

The first digit is not encoded directly as a normal group of bars. Instead, it determines the L/G parity pattern used to encode the next six digits on the left side of the barcode.

Does This Tool Issue Official EAN Numbers?

No. This generator converts numbers you provide into barcode graphics. It does not assign, register or license official company prefixes or product identification numbers.

EAN-13 ENCODER
Input: 400638133393

Data digits: 12
Calculating check digit...
Odd positions × 1
Even positions × 3
Modulo 10 adjustment

Check digit: 1
Final EAN-13: 4006381333931

✓ barcode ready

Why Use This EAN-13 Barcode Generator?

Create clean EAN-13 barcode graphics without installing software or loading an external barcode library.

Automatic Check Digit

Enter 12 digits and the correct final EAN-13 check digit is calculated automatically.

13-Digit Validation

Complete EAN-13 numbers are validated before the barcode is generated.

Correct Parity Encoding

The first digit controls the proper L/G parity pattern used by EAN-13 encoding.

SVG Export

Download the generated barcode as a scalable SVG vector file.

PNG Download

Create a clean PNG image directly in the browser for easy use in documents and layouts.

Adjustable Output

Change barcode width, bar height and number visibility before downloading.

How the EAN-13 Check Digit Works

The 13th digit is calculated mathematically from the first 12 digits.

EAN-13 Check Digit Process
1 Add the digits in odd-numbered positions.
× 3 Multiply the digits in even-numbered positions by three.
+ Add the odd-position total and weighted even-position total.
10 Choose the final digit that makes the total a multiple of ten.

How to Generate an EAN-13 Barcode

Create and download your barcode in three easy steps.

1

Enter the Digits

Enter 12 data digits or a complete 13-digit EAN-13 number.

2

Generate Barcode

The generator calculates or validates the check digit and creates the proper EAN-13 encoding.

3

Download or Print

Save your barcode as SVG or PNG, copy the EAN number or print it directly.

EAN-13 Barcode Generator FAQs

Common questions about EAN-13 numbers, barcode encoding and check digits.

A complete EAN-13 number contains 13 digits. The final digit is a calculated check digit.
Yes. Enter the first 12 digits and the generator will calculate the correct 13th check digit automatically.
Yes. The tool recalculates the expected check digit and compares it with the final digit before generating the barcode.
EAN-13 uses the first digit to select a pattern of L and G encodings for the next six digits on the left side of the barcode.
Yes. The generated barcode can be downloaded as a scalable SVG vector graphic.
Yes. The SVG barcode is converted to a PNG image directly inside your browser.
No. The generator creates barcode graphics from the digits you enter. It does not issue or register official product numbers.
Yes. You can generate, preview and download supported EAN-13 barcode graphics online without registration.