Calculate the final digit
Use 12 EAN data digits to construct a complete EAN-13 value.
Generate an EAN-13 barcode, calculate a missing check digit or diagnose an invalid one, then download PNG or SVG locally.
Your code appears here
Processed locally. EAN values and check-digit calculations stay in this browser.
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.
Use 12 EAN data digits to construct a complete EAN-13 value.
A complete value reports the expected and received check digit.
Render the validated result on this page, then download PNG or SVG or continue to labels.
| Input | Result | Next action |
|---|---|---|
| 12 digits | The final check digit is calculated locally. | Review the completed 13-digit value before generating. |
| 13 digits, valid | The supplied final digit matches the calculated digit. | Generate the symbol; allocation and product identity remain separate checks. |
| 13 digits, invalid | Expected and received final digits are shown. | Correct only after confirming the source data. |
| Other characters or length | The input is rejected with a specific structural error. | Return to the source identifier instead of forcing a barcode. |
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.
No. It validates arithmetic structure only; product identity needs an authoritative source.
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