Barcode Generator

Draw a scannable EAN-13 barcode image from 12 digits, with the check digit worked out for you. Use it for retail products, labels, or testing scanners.

1 Fill in the boxes

2 Your answer

Your answer shows here as you type.

How to use the Barcode Generator

  1. Type the 12 digits of the product number. Leave out the check digit, which is added for you.
  2. Set the bar width in pixels to make the barcode bigger or smaller.
  3. Save the barcode image from the preview and test it with a scanner before printing.

Frequently asked questions

What is an EAN-13 barcode?

EAN-13 is a 13-digit retail barcode used on most packaged goods. The first 12 digits identify the country prefix, manufacturer, and product, and the last digit is a check digit.

How is the EAN-13 check digit calculated?

Multiply the digits in odd positions (counting the leftmost as position 1) by 1 and the digits in even positions by 3. Add the results, then subtract the last digit of the sum from 10. If the answer is 10, the check digit is 0.

Can this tool make Code 128 or QR barcodes?

No. This tool only makes EAN-13 barcodes, which take digits only. Other formats such as Code 128, Code 39, and QR codes use different encoding rules and are not covered here.

Do I need a registered number to use a barcode?

Retail stores expect barcodes from GS1, the organization that issues company prefixes. Numbers made up here are fine for testing, but they may clash with products already on sale.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.