Barcode Generator

Pick a barcode type, enter the value and the bars appear straight away. For EAN and UPC, enter the digits without the last one and the tool adds the check digit; if you enter the full number, it checks the last digit for you. Download SVG for print or PNG for documents.

How to use the Barcode Generator

  1. Choose the format your scanner or shop requires. Code 128 is the flexible choice for internal labels and shipping.
  2. Type the value. For EAN-13, EAN-8 and UPC-A you can leave out the final check digit and it will be added.
  3. Adjust bar width, height and whether the human-readable text shows underneath.
  4. Download SVG or PNG and print at a size that keeps the bars crisp. Test with a real scanner before printing a batch.

How the check digit works

EAN-13, EAN-8 and UPC-A end in a check digit that catches typing mistakes. Working from the right of the digits before the check digit, multiply them alternately by 3 and 1, starting with 3; add them up; the check digit is whatever brings the total up to the next multiple of 10.

Example: for the 12 digits 400638133393, the digits from the right are 3, 9, 3, 3, 3, 1, 8, 3, 6, 0, 0, 4, and the weighted sum is 3x3 + 9x1 + 3x3 + 3x1 + 3x3 + 1x1 + 8x3 + 3x1 + 6x3 + 0x1 + 0x3 + 4x1 = 89. The next multiple of 10 is 90, so the check digit is 1 and the full code is 4006381333931.

Which format to use

Code 128 holds any printable ASCII text and is compact, so it suits internal labels, asset tags and shipping. Code 39 is older and longer but simple. ITF packs digits in pairs, so it needs an even digit count.

EAN and UPC are for retail products and are normally assigned through GS1. A number made here will scan, but it is not registered to your product, so do not sell goods under made-up retail numbers.

Frequently asked questions

Can I use these on products sold in shops?

Shops expect numbers issued to you by GS1 or your national GS1 office. This tool makes the bars correctly but cannot register a number.

Why does it refuse my EAN-13?

It needs 12 digits, or 13 with a correct final check digit. If the last digit is wrong, the message tells you what it should be.

SVG or PNG?

SVG scales to any print size without blur. PNG is easier to put into documents and slides.

Is my data uploaded?

No. The bars are drawn in your browser, and the value never leaves the page.

Sources

Last reviewed