Skip to content
EASE+ ToolsEASE+ Tools

Barcode Generator

Make EAN-13, UPC-A and Code 128 barcodes with the check digit worked out.

Inputs

EAN-13: 12 digits. UPC-A: 11 digits. The check digit is added for you.

px

Width of the narrowest bar, 1 to 10.

modules

20 to 200.

Result

Choose a type, enter the value, then press Generate barcode.

About this tool

Generate a barcode for a product, shelf label or internal stock tag. EAN-13 and UPC-A carry the retail product numbers scanned at tills, and the check digit is calculated for you so a typo is caught. Code 128 carries any short text, such as SKUs and order numbers.

  1. Choose the barcode type.
  2. Enter the number or text. Leave off the check digit for EAN-13 and UPC-A.
  3. Press Generate barcode, check it with a scanner, then download SVG or PNG.

Formula

EAN-13 and UPC-A check digit: multiply digits alternately by 3 and 1 starting from the right, add them, and take the amount needed to reach the next multiple of 10. Code 128 adds a modulo-103 check character.

Worked example

EAN-13 590123412345 gets check digit 7, giving 5901234123457. UPC-A 03600029145 gets check digit 2.

Assumptions and limits

  • A valid barcode is not a registered product number. Retail barcodes must use numbers licensed from GS1.
  • Code 128 here uses printable ASCII only, up to 80 characters.
  • Print at the size and contrast your scanner or retailer requires, and test before printing in bulk.

Questions

Can I make up an EAN number?

Not for selling in shops. Retailers require numbers licensed to your company by GS1. Made-up numbers are fine for internal use only.

Which type should I use for stock labels?

Code 128. It holds letters and numbers and is compact.

SVG or PNG?

SVG for print, because it stays sharp at any size. PNG for documents and screens.