Barcode Generator

Generate a barcode from text or numbers, ready to download.

Updated · Made by the My Digital Drawer team

Selling products in stores? Retail UPC and EAN barcodes must use numbers licensed to your company by GS1 (GS1 US in the United States). This tool draws a barcode for any number you enter, which is fine for internal labels, inventory and testing, but it does not issue official product numbers.

How do I make a barcode for free?

Choose a barcode type such as CODE128, EAN-13 or UPC-A, type the number or text to encode, and the barcode appears instantly. Download it as a PNG image. Test it with a scanner before printing labels in bulk.

How to use Barcode Generator

  1. Type the text or number you want encoded.
  2. Choose a barcode symbology — CODE128 for general text, EAN-13 or UPC for retail products.
  3. Click Generate, then download the barcode as a PNG.

Barcode types compared

Pick the type your scanner, store or shipping partner asks for. If no one has asked for a type, CODE128 is the most flexible choice because it accepts letters as well as numbers.

Barcode types in this tool
TypeWhat it holdsTypical use
CODE128Letters, digits and symbols (full ASCII)Shipping labels, inventory, asset tags
EAN-1312 digits + 1 check digitRetail products worldwide
UPC-A11 digits + 1 check digitRetail products in the US and Canada
CODE39A–Z, 0–9, space and - . $ / + %ID badges, older industrial systems
ITF-1413 digits + 1 check digitOuter cartons and shipping cases
MSIDigits onlyShelf labels in stores and warehouses
PharmacodeA whole number from 3 to 131070Packaging control in pharmaceutical production

Codes that you print on products for sale in stores (UPC-A and EAN-13) must use numbers assigned by GS1, the barcode standards body. For your own shelves, files, tickets or stock you can use any number you like.

How the check digit works

UPC-A and EAN-13 end with a check digit that lets a scanner catch misreads. The tool adds it for you. Here is how it is worked out for the 11-digit UPC-A number 12345678901:

Choosing the right barcode type

Different barcodes serve different jobs. CODE128 encodes letters and numbers and is widely used for shipping labels, inventory and internal IDs. EAN-13 and UPC-A are the numeric product codes printed on retail packaging. Enter your data, pick the format, and download a clean PNG.

Retail codes have strict rules: UPC-A needs 12 digits and EAN-13 needs 13, with the last digit acting as a check digit. Entering the wrong number of digits will produce an error or an invalid code.

Important to know

Generating a barcode image does not give you ownership of a product number. Numbers for products sold in stores must be licensed from GS1, the organization that manages global barcode standards, and made-up numbers can clash with real products. For internal use, such as tracking your own tools, books or boxes, CODE128 with your own IDs is fine.

Print at a good size with high contrast and a clear margin on each side. A black bar code on a white background scans most reliably, and a test scan with a real scanner or phone app before printing a large batch saves wasted labels.

Privacy

The barcode is drawn in your browser with the open-source JsBarcode library. The data you type is not sent anywhere.

Matching the type to the use

CODE128 can hold any text and is a good general choice for inventory labels, ticket numbers and internal tracking. EAN-13 and UPC-A are the retail product formats and need exactly 13 and 12 digits. The last digit of those formats is a check digit that the scanner uses to catch misreads.

Other formats suit specific jobs: ITF-14 is used on shipping cartons, CODE39 appears in older industrial and ID systems, and Pharmacode is used in pharmaceutical packaging.

Retail codes and printing

A barcode you generate here encodes the number you type, but it does not register that number to your product. Shops and marketplaces that need real product barcodes usually require numbers issued through GS1, the organization that assigns company prefixes. For your own inventory or events, any valid code is fine.

When printing, keep the barcode large, black on white, and leave a blank margin on both sides. Test it with a real scanner or phone camera before you print a whole sheet.

Testing before use

Scan the downloaded barcode with a phone app, and a real scanner if the label will be used with one. If it does not scan, make it larger, increase the contrast and make sure the number of digits matches the chosen format.

Frequently asked questions

Which barcode type should I use?
CODE128 handles any letters, numbers, or symbols and is the most flexible choice. EAN-13 and UPC are fixed-format numeric codes used specifically for retail products and require a valid check digit.

Will this barcode scan correctly at checkout?
Standard scanners read CODE128, EAN-13, and UPC barcodes generated here without issue, as long as it's printed at a reasonable size (at least 1 inch wide is a safe rule of thumb).

Is there a limit to how many barcodes I can generate?
No — generate as many as you need. Each one is created instantly in your browser with no account or usage limit.

Can I print the barcode on labels?
Yes. Download the PNG and place it in your label layout. Print at a good size and test a sample with a scanner first.

You might also need