anyscan.download
Free forever

EAN-13 Barcode Generator & Validator

Generate an EAN-13 barcode, calculate a missing check digit or diagnose an invalid one, then download PNG or SVG locally.

Your content is processed locally and is not uploaded.
Output format

Your code appears here

Waiting for input

Processed locally. EAN values and check-digit calculations stay in this browser.

Calculate, validate and generate EAN-13

Enter 12 data digits to calculate the final digit, or enter all 13 to compare the supplied checksum. The validation result explains the expected and received digit before you choose a correction or generate the code.

Calculate the final digit

Use 12 EAN data digits to construct a complete EAN-13 value.

See a precise mismatch

A complete value reports the expected and received check digit.

Create the barcode

Render the validated result on this page, then download PNG or SVG or continue to labels.

Validate before rendering

  1. Enter 12 data digits to calculate a check digit, or all 13 digits to validate a complete value.
  2. If the check digit is wrong, compare the displayed expected and received digits before accepting a correction.
  3. Render only the complete, reviewed value and keep the required quiet zones around the symbol.
  4. Test the printed or displayed barcode with the scanner and software that will consume it.
EAN-13 input outcomes
InputResultNext action
12 digitsThe final check digit is calculated locally.Review the completed 13-digit value before generating.
13 digits, validThe supplied final digit matches the calculated digit.Generate the symbol; allocation and product identity remain separate checks.
13 digits, invalidExpected and received final digits are shown.Correct only after confirming the source data.
Other characters or lengthThe input is rejected with a specific structural error.Return to the source identifier instead of forcing a barcode.

Worked example: calculate the thirteenth digit

Data digits: 400638133393
Complete example: 4006381333931
Incorrect example: 4006381333933

The weighted sum of these twelve data digits is 89, so the next multiple of ten requires check digit 1. Entering the twelve digits creates 4006381333931. Entering the incorrect complete example reports expected 1 and received 3; accept Fix only if the twelve data digits are correct. This is a check-digit example, not a GTIN assignment or confirmation of product ownership.

Specifications

Input
12 data digits or a complete 13-digit EAN-13 value; spaces and hyphens are ignored.
Check
The tool applies the GS1 alternating-weight check-digit calculation locally.
Boundary
A valid checksum confirms structure, not product assignment, ownership or authenticity.

Common questions

Does a valid EAN-13 prove a product is genuine?

No. It validates arithmetic structure only; product identity needs an authoritative source.

Can I print a validated EAN-13?

Yes. Send it to Create, Batch or Labels after reviewing the result.

Related tools for EAN validation and printable output. Barcode Validator · Barcode Label Generator · Bulk Barcode Generator