Barcode generator

Make barcodes for products, stock, labels and inventory. Type a number or paste a whole list, then download PNG or SVG files.

Runs in your browser. Nothing is uploaded.

Make

How to use it

  1. Choose the barcode type. Use Code 128 for your own labels and stock, and EAN-13 or UPC-A for retail products.
  2. Type the text or number. For EAN and UPC you can leave out the last digit and the check digit is worked out for you.
  3. Adjust the bar width, height and colors if you need to. The preview updates as you type.
  4. Download a PNG or an SVG. For many barcodes, choose Many (batch), paste one value per line and download them all as a ZIP file.

Which barcode type to use

TypeHoldsUsed for
Code 128Any keyboard character (ASCII), any lengthShipping labels, asset tags, stock and inventory. The best default for your own codes: compact and read by every scanner.
EAN-1313 digits, last one a check digitRetail products worldwide, and books (ISBNs starting 978 or 979).
UPC-A12 digits, last one a check digitRetail products in the US and Canada. A UPC-A is an EAN-13 with a leading 0, so scanners everywhere read both.
EAN-88 digits, last one a check digitSmall packs where an EAN-13 will not fit, such as gum and cosmetics.
Code 39A–Z, 0–9, space and - . $ / + %Older systems, ID badges, and automotive and military parts. Wider than Code 128 for the same text.
ITF-1414 digits, last one a check digitOuter cartons and cases of retail products (the GTIN-14). Prints well on corrugated cardboard.

Where retail barcode numbers come from

The tool draws a barcode for any valid number, but it cannot give you a number that stores will accept. Retail EAN and UPC numbers are product identifiers (GTINs) issued by GS1, a non-profit with an office in each country. You license a single number or a company prefix from your local GS1, and that makes the number yours and unique worldwide. Large retailers and Amazon check numbers against the GS1 database, so numbers bought cheaply from resellers or made up can get your listings rejected.

For codes used only inside your own business, such as shelf labels, stock locations or loyalty cards, you do not need GS1. Use Code 128, or EAN-13 numbers starting with 2, which GS1 reserves for in-store use and which never clash with real products.

How the check digit works

EAN, UPC and ITF-14 numbers end in a check digit that lets the scanner catch misreads. Starting from the rightmost digit before the check digit, multiply digits alternately by 3 and 1, add them up, and take the amount needed to reach the next multiple of 10. For 400638133393 the weighted total is 89, so the check digit is 1 and the full EAN-13 is 4006381333931. If you type all the digits and the last one does not match, the tool tells you which digit it should be, which usually means there is a typo somewhere.

Questions

Will the barcode scan in a store?
It will scan, because the bars follow the standard. Whether the till recognizes the product depends on the number: it must be a GS1 number registered to your company and entered into the store's system. The barcode only carries the number, not the price or the product name.
What size should I print it?
An EAN-13 is designed to be about 37 × 26 mm (1.5 × 1 inch) at 100% size, and can be printed from 80% to 200% of that. Do not squash the height much, and keep the blank space on each side, which the tool includes. Use the SVG for print so the bars stay sharp, and test a print with a scanner or phone before you order a large run.
Can I make many barcodes at once?
Yes. Choose Many (batch) and paste up to 1,000 values, one per line, for example a column copied from a spreadsheet. Lines with errors are marked in red and left out. Download all of them as a ZIP of PNG files, SVG files or both, named after each value.
Why does my EAN-13 show an error?
EAN-13 takes digits only, and either 12 digits (the tool adds the check digit) or all 13. If you typed 13 digits and see a check digit error, one of the digits is wrong. Spaces and dashes are ignored, so you can paste a number as it is printed.
Are my values uploaded?
No. Barcodes are drawn in your browser and nothing you type is sent anywhere. The tool works offline once the page has loaded.