Excel can display barcodes without extra software, but the method depends on what you're trying to do
You can create barcodes in Excel using built-in fonts, add-ins, or formulas that generate barcode images. The simplest approach uses a barcode font — a typeface that converts numbers into scannable patterns. If you need more control or want to avoid installing fonts, Excel add-ins or online barcode generators paired with image insertion work too. The right method depends on whether you need simple linear barcodes (like UPC or Code128) or 2D codes (like QR codes), and how many you're generating.
Most small businesses and personal projects use the font method because it's free and requires no external tools beyond Excel itself. Larger operations or those needing QR codes often turn to add-ins or formulas that pull from online services.
Key Takeaways
- Barcode fonts convert text into scannable patterns and work in Excel like any other font — type the data, change the font, and the numbers transform into bars.
- Code128 is the most common barcode format for inventory and shipping; Code39 is simpler but takes more space.
- Free barcode fonts exist but require download and installation on your computer before Excel can use them.
- Add-ins and online generators offer QR codes and more formats, but add complexity and sometimes cost money.
- Barcodes generated as fonts print and scan reliably, but barcodes inserted as images take up more file space and may not resize cleanly.
Installing a barcode font and using it in Excel
Download a barcode font file (usually a .ttf or .otf file) from a free source like dafont.com, fontspace.com, or 1001fonts.com. Search for "Code128" or "Code39" — these are the formats most scanners recognize. Code128 is smaller and more compact; Code39 is older and works with simpler scanners but requires more space.
Once downloaded, right-click the font file and select Install (Windows) or double-click it and click Install Font (Mac). The font is now available system-wide. Open Excel, type the data you want to encode in a cell — for example, 123456789 — then select that cell and change the font to your barcode font name (like Code128 or IDAutomationC128). The numbers will transform into a barcode pattern. The cell still contains the original number, but it displays as bars.
To print or share the barcode, the recipient needs the same font installed, or you must convert the cells to an image before sending. In Excel, select the barcode cells, copy them, then use Paste Special and choose Picture to lock them as an image that will display the same way on any computer.
Using formulas to generate barcodes from online services
If you don't want to install fonts, you can use a formula that pulls a barcode image from an online barcode generator. This method works in Excel but creates a dependency on an external service staying online. In a cell, enter a formula like =IMAGE("https://barcode.tec-it.com/barcode.ashx?data="&A1&"&code=Code128"), where A1 contains your barcode data. Excel will fetch and display the barcode as an image.
Services like Tec-It, Barcode Lookup, and OnlineBarcode offer free barcode generation via URL. The advantage is no installation required. The disadvantage is that if the service goes down or changes its URL structure, your barcodes break. This method also requires an internet connection to generate the images, and the resulting file size is larger because images take more space than fonts.
For occasional use or testing, this works fine. For production spreadsheets you'll rely on long-term, use the font method instead.
Excel add-ins for barcode generation
Microsoft Office has a barcode add-in marketplace. Search for "barcode" in Insert > Get Add-ins (or My Add-ins in older versions). Popular free options include Barcode Scanner and QR Code Generator. Paid add-ins like Barcode Add-in for Excel by TEC-IT offer more formats and features.
Add-ins integrate directly into Excel's ribbon, so you select a cell, click the add-in button, and the barcode appears. Many support QR codes, which fonts cannot generate. The trade-off is that add-ins may slow down your spreadsheet, and some require a subscription or one-time purchase.
Test a free add-in first to see if it meets your needs. If you need QR codes specifically and don't want to install fonts, an add-in is the fastest route.
Generating QR codes in Excel
QR codes are 2D barcodes that store more data than linear barcodes and link to URLs, contact information, or text. Excel has no built-in QR font, so you need either an add-in or an online generator formula. The add-in route is simpler: install a QR code add-in from the Microsoft Office store, select your data, and click the button.
For the formula route, use a service like api.qrserver.com. Enter =IMAGE("https://api.qrserver.com/v1/create-qr-code/?size=200x200&data="&A1) in a cell where A1 contains the text or URL you want encoded. The QR code appears as an image. This works without installation but depends on the service remaining available.
QR codes are useful for inventory tracking, product labeling, or linking to documentation. If you're only generating a few, the online formula is quick. If you're generating hundreds, an add-in or a dedicated QR code tool outside Excel is more reliable.
Printing and scanning barcodes from Excel
Barcodes created with fonts print cleanly if the font is installed on the printer or the file is converted to an image first. Test a small batch before printing large quantities. Set your print quality to at least 300 DPI (dots per inch) so the bars are sharp enough for scanners to read. Thin bars that blur or merge will fail to scan.
If you're using image-based barcodes (from formulas or add-ins), make sure the image resolution is high enough. A low-resolution image will pixelate and may not scan. Most online barcode generators default to 72 DPI, which is fine for screen display but may fail in print. Check the service's settings for a higher DPI option before inserting.
Before printing a full run, scan a test barcode with the scanner you'll use in production. Different scanners have different sensitivity ranges, and some older scanners struggle with certain formats. Code128 is the most universally compatible; Code39 and QR codes work with most modern scanners but may fail with older hardware.
Troubleshooting common barcode problems
If your barcode font displays as gibberish or doesn't change appearance when you apply the font, the font may not have installed correctly. Restart Excel after installing the font, or try reinstalling it. On Windows, check Settings > Fonts to confirm the font appears in your system font list. On Mac, open Font Book and search for the barcode font name.
If a barcode won't scan, the bars may be too thin, the contrast too low, or the format incompatible with your scanner. Try increasing the font size in Excel — larger text produces thicker bars. If you're using an image-based barcode, check that the image is at least 200x200 pixels and has high contrast (pure black bars on pure white background). Some scanners also require a quiet zone — empty space around the barcode — so don't crowd text or other elements too close.
If your spreadsheet file is too large after adding many barcodes, you're likely using images instead of fonts. Switch to a barcode font to reduce file size. Fonts add almost no overhead; images add several kilobytes each.
Frequently Asked Questions
Can I create a barcode in Excel without downloading anything?
Yes, using an online barcode generator formula. Enter =IMAGE("https://barcode.tec-it.com/barcode.ashx?data="&A1&"&code=Code128") to pull barcodes from an external service. No installation required, but you need internet access and the service must stay online. For a permanent solution, download and install a barcode font instead.
What's the difference between Code128 and Code39?
Code128 is more compact and encodes more data in less space, making it standard for retail and shipping. Code39 is older, simpler, and works with older scanners but requires more room. For new projects, use Code128. Use Code39 only if you know your scanner requires it.
Do I need to buy barcode software?
No. Free barcode fonts and online generators work for most small-scale needs. Paid add-ins and software offer more formats, QR codes, and batch processing, but they're optional. Test free methods first.
Will my barcode work if I email the spreadsheet to someone else?
Only if they have the same barcode font installed, or if you converted the barcodes to images first. To be safe, use Paste Special > Picture to lock barcodes as images before sharing.
Can Excel create QR codes?
Not with fonts alone. Use a QR code add-in from the Microsoft Office store, or use an online QR generator formula like =IMAGE("https://api.qrserver.com/v1/create-qr-code/?size=200x200&data="&A1). Add-ins are simpler if you're generating many QR codes.