Barcode Generator

Create UPC-A, EAN-13, EAN-8, Code 128, Code 39 and ITF-14 barcodes and download them as PNG or SVG. Check digits for retail barcodes are calculated and verified automatically.

Appearance

QR Code & Barcode ScannerScan any QR code or barcode instantly and keep a history of codes you create.
Get the iPhone app

About the Barcode Generator

This free barcode generator turns a number or text into a scannable barcode image instantly. Use it for product packaging, inventory and shelf labels, library books, asset tags or shipping cartons.

For barcodes that end in a check digit, such as UPC-A and EAN-13, just type the leading digits and the check digit is calculated for you; type the full number and the tool tells you whether it is valid. Download a high-resolution PNG or a scalable SVG for print. Everything runs in your browser.

How to use

  1. Choose a barcode type. Retail products in the US and Canada use UPC-A, most other countries use EAN-13, and Code 128 is the usual choice for internal labels.
  2. Type the number or text. The barcode appears right away (beside the form on desktop, below it on mobile).
  3. Adjust bar width, height, colors and whether the digits are printed under the bars.
  4. Click Download PNG or Download SVG to save the image.

Barcode types compared

TypeLength / charactersTypical use
UPC-A12 digitsRetail products in the US and Canada
EAN-1313 digitsRetail products worldwide (UK prefixes 50)
EAN-88 digitsVery small packages such as gum or cosmetics
ITF-1414 digitsOuter cases and shipping cartons
Code 128All ASCII letters, digits and symbolsShipping labels, inventory, asset tracking
Code 39Uppercase, digits, a few symbolsIndustrial labels, ID badges

How the check digit is calculated

The last digit of UPC-A, EAN-13, EAN-8 and ITF-14 is a check digit computed from the other digits. Starting from the rightmost data digit, multiply the digits alternately by 3 and 1, add them up, and the check digit is the number needed to reach the next multiple of 10.

Example: UPC-A 03600029145 โ†’ weighted sum 58, so the check digit is 2 and the full number is 036000291452.

Barcodes for products you sell

You canโ€™t make up UPC or EAN numbers for products sold through retailers or on Amazon. Companies license a company prefix from GS1 (GS1 US in the United States, GS1 UK in Britain, and so on) and assign product numbers within that range. Use this tool to turn your licensed GS1 numbers into barcode artwork. For internal use โ€“ inventory, assets, events โ€“ you can freely create Code 128 barcodes.

FAQ

Will the barcodes scan?

Yes. Barcodes are drawn to the official specifications and scan with standard barcode scanners and phone apps. When printing, keep the original proportions, avoid blurry scaling and leave a white quiet zone on both sides.

Can I use any UPC or EAN number for my product?

Not for products you sell. Random numbers may belong to another companyโ€™s product. Get your numbers from GS1. For practice or internal use, any number is fine.

Is a barcode generated here free to use commercially?

Yes. The images are yours, with no watermark and no sign-up. Only the number itself must be legitimately yours for retail products.

Can I change the colors?

Bars must be dark and the background light. Red bars are invisible to many laser scanners, so stick to black or dark blue.