Type the value
The barcode is drawn as you type.
Type the first 12 digits and get an EAN-13 barcode with the check digit added. Download it as PNG or SVG for labels and packaging. Nothing is uploaded.
100% private — the barcode is drawn in your browser and nothing is sent to any server.
Keep going with your result in another tool. Nothing is uploaded.
The barcode is drawn as you type.
Set the bar width and height, and show or hide the text.
Save it as PNG or SVG and test it with a scanner.
To generate an EAN-13 barcode, enter the first 12 digits of the number in the value box above, and the barcode appears with the thirteenth digit, the check digit, added automatically. If you type all 13 digits, the tool checks the last one and warns you if it is wrong. Download the barcode as PNG or SVG. It runs in your browser and nothing is uploaded.
EAN-13 (European Article Number) is the barcode on most products sold worldwide. It encodes 13 digits: a GS1 prefix that usually points to the country of the company that registered the number, the company and product number, and a final check digit. In North America the same 13 digits are also written as a GTIN-13, and UPC-A codes are simply EAN-13 with a leading zero.
| Digits | Meaning |
|---|---|
| First 2-3 | GS1 prefix, for example 84 for Spain, 978 for books (ISBN) |
| Next 4-7 | Company prefix, issued by GS1 |
| Following digits | Product number chosen by the company |
| Last digit | Check digit |
Take the first 12 digits, 590123412345. Multiply them alternately by 3 and 1, starting with 3 for the rightmost one: 5×1 + 9×3 + 0×1 + 1×3 + 2×1 + 3×3 + 4×1 + 1×3 + 2×1 + 3×3 + 4×1 + 5×3 = 83. The check digit is what you add to reach the next multiple of 10: 90 − 83 = 7. The full number is 5901234123457. The generator adds it for you when you type only the first 12 digits, and warns you if a full number has a wrong check digit.
This tool draws a correctly formatted barcode from any number you give it. That is enough for internal use, such as inventory, shelves or test labels. To sell a product in shops and on marketplaces, however, the number must be a GTIN issued by GS1 through a licensed company prefix; otherwise it may collide with another company's product. Buy your numbers from GS1 in your country, then use this tool to draw the codes.
The code is drawn by your browser on your own device. What you type, including passwords and contact details, is never sent to a server, and the finished image is yours with no watermark and no expiry.
More utilities that also run without leaving your browser.