EAN-13 Barcode Generator
Enter 12 digits and automatically calculate the EAN-13 check digit to generate a scannable retail barcode. Free online EAN-13 generator.
12/12 digits entered
Calculated check digit: 7 — full code: 5901234123457
Free EAN-13 Barcode Generator
Enter the first 12 digits of an EAN-13 code and this tool automatically calculates the 13th check digit and renders a scannable EAN-13 barcode — the standard retail barcode format used worldwide.
How to Use It
Type any 12 digits into the input. The check digit and full 13-digit code are calculated instantly, and the barcode preview updates live. Click Download PNG to save it as an image.
Example
Entering 590123412345 calculates a check digit and produces the full code5901234123457, rendered as a scannable barcode.
Common Use Cases
- Generating a product barcode for retail packaging or shelf labels.
- Verifying a manually typed EAN-13 code has the correct check digit.
- Creating printable barcode images for small-business inventory.
FAQs
How is the EAN-13 check digit calculated?
Each of the first 12 digits is multiplied by 1 or 3 alternately (odd positions ×1, even positions ×3, counting from the left starting at position 1), the results are summed, and the check digit is whatever number brings that sum up to the next multiple of 10.
Can I use any 12 digits?
Technically yes for generating a valid barcode, but real-world EAN-13 codes are issued by GS1 and include a registered manufacturer prefix — use a real assigned code for actual retail products.
Is my data uploaded anywhere?
No — the barcode is generated entirely client-side in your browser using the jsbarcode library.
