Barcode Generator
Draws an EAN-13, EAN-8 or UPC-A barcode and works out the check digit. Enter the digits and get an SVG for a label or for print.
Input
Result
Fill in the fields – the result will appear here.
Result
How it is calculated
Yearly schedule
| Year | PrincipalContributions | InterestEarnings | BalanceBalance |
|---|
Result
Failed
Report a problem
How an EAN barcode works
Digits and bars
EAN-13 is 13 digits. The first digits are the prefix of the GS1 member organisation that issued the number: for Ukraine it is 482, and codes starting with 0 or 1 mostly come from GS1 US. Next come the company and product numbers. The last digit is the check digit: the scanner works it out itself and rejects the code if it does not match.
The check digit
The digits are multiplied by 3 and 1 in turn, starting from the right, and added up. The check digit tops the sum up to the nearest number divisible by 10. For 400638133393 the sum is 89, so the check digit is 1 and the full code is 4006381333931.
Common questions about barcodes
How is EAN-13 different from UPC-A?
UPC-A is the American 12-digit format, the GTIN-12. It is the same as EAN-13 with a zero in front, so scanners on both sides read both. Selling in US stores – pick UPC-A: American retailers ask for the 12-digit code, not a padded EAN-13. EAN-8 is the short version for small packages.
Can I make up my own barcode for a product?
For a warehouse, a library or your own records – yes, a scanner will read it. For selling through retail chains – no: the number is registered with the GS1 office of your country (GS1 US in the United States, GS1 Ukraine in Ukraine), or it may clash with someone else's product.
Why does the generator say the digit is wrong?
You entered the full code, and the last digit does not match the check digit. Most often this is a mistake in one of the earlier digits. The generator names the correct check digit for what you entered.
What format does the barcode download in?
SVG. It is a vector image: you can enlarge it for print without losing sharpness and put it into Word, Illustrator or a label editor.