Free Barcode Generator – Code 128, EAN-13, UPC Online

Professional Barcode Generator

Enter text, numbers, or product codes
General purpose barcode with high density
Short 100px Tall
Thin 2px Thick
About Barcode Types
  • CODE128 – High-density barcode for alphanumeric data
  • EAN13 – Used globally for retail products (requires 12-13 digits)
  • UPC – Standard for US retail products (requires 11-12 digits)
  • CODE39 – Used in industrial and automotive applications
  • ITF14 – Shipping containers and cartons (requires 14 digits)
  • MSI – Warehousing and inventory (numeric only)
  • Pharmacode – Pharmaceutical packaging (requires 1-6 digits)

Create a barcode in seconds: type the number or text, pick the barcode type, adjust the bar height, width and colours, and download it as an image ready to print or add to a label. The generator supports Code 128, EAN-13, UPC-A, Code 39, ITF-14, MSI and Pharmacode, and runs entirely in your browser.

generate barcode
Generate Barcode

How to generate a barcode

  1. Enter the data: a product number for EAN or UPC, or any text for Code 128.
  2. Choose the barcode type from the list (see the table below if you are not sure).
  3. Click Generate Barcode, then Download Barcode. Scan it once with your phone camera or a scanner app before printing a batch.
Barcode generator creating a Code 128 barcode ready to download
A barcode generated from your text, ready to download and print.

Which barcode type do you need?

TypeUsed forWhat it can holdValid example
EAN-13Retail products worldwide (India, Europe, most countries)12 digits + 1 check digit5901234123457
UPC-ARetail products in the US and Canada11 digits + 1 check digit036000291452
Code 128Shipping labels, inventory, asset tags, anything internalLetters, digits and symbols, any lengthFTL-2026-0042
Code 39Industry, defence, older scanners and ID badgesA–Z, 0–9, space and – . $ / + %PART-7781
ITF-14Outer cartons and cases of products13 digits + 1 check digit15400141288763
MSIWarehouse shelves and binsDigits only1234567
PharmacodePharmaceutical packaging controlA whole number from 3 to 1310701234
All examples were generated and checked with this tool.

EAN-13 barcode generator

EAN-13 is the barcode on almost every retail product outside North America. Enter the first 12 digits and the tool calculates the 13th (the check digit) for you; if you enter all 13 and the last digit is wrong, no barcode is drawn, which protects you from printing an unscannable code. Numbers starting with 890 belong to GS1 India.

Important: to sell in shops or on Amazon and Flipkart, the number itself must be licensed to your company by GS1 (GS1 India in India). This tool draws the barcode for a number you already own; it does not issue official product numbers.

UPC-A barcode generator

UPC-A is the 12-digit retail barcode used in the US and Canada. Choose “UPC”, type the first 11 digits and the check digit is added automatically. A UPC-A code is the same as an EAN-13 that starts with 0, so scanners worldwide read both.

Code 128 barcode generator

Code 128 is the best choice when the barcode is only used inside your business: order numbers, SKUs, asset tags, library cards, courier labels. It holds letters, digits and symbols, is compact, and every common scanner reads it. Keep the text short (under about 20 characters) so the barcode stays easy to scan.

Code 39 barcode generator

Code 39 is older and wider than Code 128, but some industrial systems and ID badge printers still require it. It only accepts capital letters, digits, space and the symbols – . $ / + %. Use it only when the system you are printing for asks for Code 39.

ITF-14 barcode generator

ITF-14 goes on the outer box that holds several units of a product (a carton of 12 bottles, for example). It is built from a 13-digit number plus a check digit, usually the product’s EAN with an extra “packaging indicator” digit in front. It prints well on corrugated cardboard.

What is a check digit?

EAN, UPC and ITF-14 end with a check digit calculated from the other digits, so a scanner can tell when a barcode has been misread. For EAN-13, multiply the digits alternately by 1 and 3 starting from the left, add the results, and the check digit is the number that brings the total up to the next multiple of 10. For 590123412345 the total is 83, so the check digit is 7 (83 + 7 = 90) and the full code is 5901234123457.

Printing barcodes that scan first time

  • Size: the standard EAN-13 and UPC-A symbol is about 37 × 26 mm. You can print it between 80% and 200% of that size; smaller often fails at checkout.
  • Quiet zone: leave empty space on both sides of the bars (at least the width of 10 thin bars). Do not put text or borders right next to the barcode.
  • Colours: dark bars on a light background. Black on white is safest; red bars and dark backgrounds cannot be read by most scanners.
  • Do not stretch the downloaded image unevenly. Change the bar width and height in the tool instead.
  • Test before you print in bulk with a phone scanner app and, for retail, your shop’s own scanner.

Frequently asked questions

Can I use a barcode from this tool on products I sell?

Yes, if the number is yours. Retailers and marketplaces check EAN and UPC numbers against the GS1 database, so get your company prefix from GS1 first, then generate the barcodes here for free.

Why is no barcode shown for my EAN-13 number?

The last digit is probably not the correct check digit, or the number is not 12 or 13 digits long. Enter only the first 12 digits and the tool will add the right check digit.

Barcode or QR code: which should I use?

Use a barcode for product numbers and anything scanned at a till or with a warehouse scanner. Use a QR code for links, Wi-Fi details, contact cards and anything people scan with a phone camera.

Is it free to use the barcodes commercially?

Yes. The barcode images you create are yours to use on labels, packaging and documents, with no watermark and no sign-up.

Looking for something else? Browse all our free generators.

Is this barcode generator free with no sign-up?

Yes. It is free, needs no account, adds no watermark, and makes the barcode in your browser. Download it as a PNG and print as many as you need.

Sources

Checked in November 2026:

How to cite this tool

Using this tool for coursework, a report or research? You can cite it like this (APA 7th edition):

Kumar, M. (2026). Free Barcode Generator [Online tool]. FreeToolsLand. https://freetoolsland.com/generate-barcode/

  • QR Code Generator: links, Wi-Fi and contact cards for packaging and posters.
  • GST Calculator: work out prices with and without GST for the products you label.
Scroll to Top