The simplest way to add a barcode in Excel

The fastest way to add a barcode to Excel is to use a barcode font — a typeface that converts numbers into scannable bars. You type the data you want encoded, apply the font, and Excel displays it as a barcode. This method works in all versions of Excel and requires no add-ins or external tools.

The alternative is to use a barcode generator tool online or a third-party add-in, which can be faster if you have hundreds of barcodes to create at once. But for most people working with a handful of barcodes, the font method is simpler and more reliable.

Key Takeaways

  • Barcode fonts convert regular numbers into scannable bar patterns when applied to a cell, and Code128 is the most common format for general use.
  • You must download and install a barcode font on your computer before Excel can display it, which takes about two minutes.
  • After installing the font, you type your barcode data in a cell, select that cell, and change the font to your barcode font in the same way you would change to Arial or Times New Roman.
  • Some barcode formats require you to add special characters before and after your number, so check the font's instructions before you start.
  • If you need to create many barcodes quickly, online barcode generators can create images you paste into Excel, though this takes more steps than using a font.

Download and install a barcode font

Before you can use a barcode font in Excel, you need to download it to your computer and install it. Code128 is the most widely used barcode format and works with most scanners. Search for "Code128 barcode font free download" and choose a source you trust — common options include DaFont, FontSpace, or the manufacturer's website if you know which barcode system you need.

Once you have downloaded the font file (usually a .ttf or .otf file), right-click it and select Install on Windows, or double-click it and click Install Font on Mac. Windows will move the file to your Fonts folder automatically. You do not need to restart Excel, but if the font does not appear in your font list right away, close and reopen Excel.

To check that the font installed correctly, open Excel, click the font dropdown in the toolbar, and scroll down to find your barcode font by name. If you see it there, you are ready to create barcodes.

Enter your barcode data and apply the font

Type the number or data you want to encode into an Excel cell. For example, if you are creating a product barcode, type the product code number exactly as it should appear in the barcode. Make sure you have no extra spaces before or after the number.

Select the cell containing your data. Click the font dropdown in the toolbar (it normally shows "Calibri" or whatever your default font is) and scroll down to find your barcode font. Click it, and the cell will instantly display as a barcode instead of text. The barcode is now ready to scan.

If your barcode does not look right — for example, if it shows as a series of asterisks or symbols instead of bars — check the font's documentation. Some barcode fonts require you to add a special character at the start and end of your number. For Code128, this is often an asterisk (*), so you would type *123456* instead of just 123456. Check the font file's readme or the website where you downloaded it for the exact format.

Adjust the cell size and print settings

Barcodes need to be large enough to scan reliably. Make your barcode cell taller by dragging the row border down, and wider by dragging the column border to the right. A barcode that is at least half an inch wide and a quarter inch tall will scan on most devices, though larger is better.

If you are printing your barcodes, test one on paper first. Print a single page with one barcode, let the ink dry, and try scanning it with a barcode reader or a smartphone app. If it scans, your settings are correct. If not, make the barcode larger and try again. Barcodes that are too small or too light will not scan reliably.

When you print, make sure your printer is set to print at actual size (100%), not scaled down. In Excel, go to File > Print, and under Settings, confirm that Scale is set to 100%.

Using an online barcode generator instead

If you only need one or two barcodes, or if you do not want to install a font, you can use a free online barcode generator. Search for "free barcode generator" and choose a site that lets you select your barcode format (Code128, Code39, UPC, or EAN depending on what you need). Enter your number, and the site will generate an image of the barcode.

Right-click the barcode image and select Save image as to download it to your computer. Then in Excel, go to Insert > Pictures > This Device, find your downloaded barcode image, and click Insert. The barcode will appear in your spreadsheet as a picture. You can resize it by dragging the corners, and it will print like any other image.

This method is slower if you have many barcodes to create, because you have to download each one separately. But it works without installing anything, and the image quality is usually very good.

Troubleshooting common barcode problems

If your barcode shows as boxes or symbols instead of bars, the font did not install correctly. Go back to your Downloads folder, right-click the font file again, and select Install. Then close Excel completely and reopen it. If it still does not work, try downloading the font from a different source.

If your barcode scans but reads the wrong number, you likely have extra spaces or characters in the cell. Click the cell, look at the formula bar at the top, and delete any spaces before or after your number. Some barcode fonts also require specific characters at the start and end — check your font's instructions again.

If your printed barcode will not scan, it is almost always because it is too small or the ink is too light. Make the barcode cell much larger (at least one inch wide), and if you are printing, check that your printer is not set to draft mode or low-quality settings. Print a test copy and try scanning it before printing a full batch.

Frequently Asked Questions

What barcode format should I use?

Code128 is the best choice for most uses because it works with almost any scanner and encodes numbers, letters, and symbols. If you are creating product barcodes for retail, you may need UPC or EAN instead — check with your retailer or the system you are using. Your barcode generator or font documentation will tell you which format to choose.

Can I use a barcode font in older versions of Excel?

Yes. Barcode fonts work in Excel 2007 and later on Windows, and Excel 2011 and later on Mac. The steps are the same — install the font, type your data, and apply the font to the cell. If you are using a very old version of Excel, an online barcode generator is your best option.

Will my barcode work if I email the spreadsheet to someone else?

Only if they have the same barcode font installed on their computer. If you email a spreadsheet with a barcode font applied, and the recipient does not have that font, the barcode will display as garbled text on their screen. To avoid this, convert your barcodes to images before sharing, or ask the recipient to install the same font.

Can I create barcodes for a list of hundreds of products at once?

Yes. Type all your product numbers in one column, select the entire column, and apply the barcode font to all cells at once. Excel will convert every number in that column to a barcode. This is much faster than doing them one at a time, and it works the same way as applying the font to a single cell.

What if I need to print barcodes but do not want them in my spreadsheet?

Create your barcodes in Excel as described, print the page, and then delete the barcode cells or undo the font change. Alternatively, create a separate Excel file just for printing barcodes, print it, and then delete the file. This keeps your main spreadsheet clean while still giving you printed barcodes to use.