EAN-13 barcode generator — free online tool
Build an EAN-13 barcode from 12 digits (check digit added) or 13 digits (check digit verified). Opens with 5901234123457; SVG output.

Choose a destination, then fill only the fields it needs.
Keep a dark code on a light background for reliable scans.
Preview updates as you edit. Keep the quiet border for reliable scans.
What to know
EAN-13 has 13 digits: a 3-digit GS1 prefix that indicates the numbering agency, then the company and product part, and a final check digit. Enter 12 digits and the tool appends the thirteenth; enter 13 and it verifies that the last one is correct before drawing.
The check digit rule is fixed. Weight the first 12 digits alternately 1 and 3 from the left, add them, and take (10 minus the sum mod 10) mod 10. For 590123412345 the weighted sum is 83, 83 mod 10 is 3 and 10 minus 3 gives 7, so the full number is 5901234123457, the value the page opens with.
A wrong thirteenth digit is rejected rather than silently changed, with a message saying you need 12 digits or 13 with a valid check digit. Letters, spaces and 14-digit GTINs are refused, since EAN-13 is digits only and exactly 13 long.
The drawing is the standard 95-module pattern with guard bars and printed digits. A valid-looking number is not a registered product, and a retailer or marketplace expects numbers allocated from your own GS1 company prefix, so keep sample values for test labels and mockups.
Choose a specific task 1
Related tools 2
How to use EAN-13 barcode generator — free online tool
- Select EAN-13 in Code type.
- Type 590123412345; the hint beside the field shows the check digit added, 7.
- Choose bar and background colors with at least 4.5:1 contrast.
- Download the SVG and print it near 100 percent magnification, about 37 mm wide, then test-scan it.
Quick answers
What check digit does 400638133393 get?
The weighted sum is 89, 89 mod 10 is 9 and 10 minus 9 is 1, so the full number is 4006381333931.
Why was my 13-digit number rejected?
The last digit did not match the check digit calculated from the first twelve. Remove the last digit to let the tool add the correct one.
Can I enter a UPC-A or an ISBN?
An ISBN-13 is already a 13-digit EAN starting with 978 or 979, so it works. A 12-digit UPC-A becomes valid EAN-13 data when you put a 0 in front of it.
Does drawing the code register the product?
No. The tool draws the bars only; numbers must be allocated through your GS1 organization.
