Barcode Font in Excel: A Practical Step-by-Step Guide
Learn to create barcodes in Excel using barcode fonts. This practical guide covers installation, data encoding, and testing for reliable scans.

Yes. To display barcodes in Excel, install a barcode font (such as Code 39 or Code 128), then format the cells with that font and, when needed, wrap the data with start/stop characters. This creates scannable barcodes directly in your worksheet without extra software. Test print to confirm readability. Keep fonts licensed and ensure printer resolution meets barcode standards.
What is a barcode font and why it matters in Excel
Barcode fonts map characters to barcode glyphs so that standard text can be rendered as a scannable symbol. In Excel, you can display a barcode by applying a barcode font to the cell contents. This approach is attractive for simple labeling, inventory sheets, or product catalogs because it requires no external services and keeps data in a familiar worksheet. According to XLS Library, the practicality of using barcode fonts in Excel hinges on choosing a font type with clear glyphs, consistent stroke widths, and reliable scan performance across typical printers. The XLS Library team found Code 39 and Code 128 to be the most widely supported options for in-house barcoding tasks. Code 39 is straightforward and human-readable, while Code 128 supports more data in a compact footprint. Both rely on proper data encoding, font licensing, and careful formatting to avoid fragile scans. When you first experiment, start with a small dataset and print at the final scale before expanding to larger batches. It’s also important to understand that Excel alone does not generate a true barcode; the font merely provides the glyphs that render once the underlying text is in place.
From a user-experience perspective, barcode font in excel workflows should be designed with consistency in mind. Align cells to a fixed row height and column width so the barcode remains proportionate; avoid scaling the cell on printing, which can distort glyphs. If you’re distributing a workbook, remember that barcode fonts are platform-dependent. Not every system ships with your chosen font, so you may need to bundle the font with your file or provide installation instructions. The XLS Library team emphasizes testing across devices that recipients will use, especially if you rely on distributed PDFs or printed sheets. In short, barcode fonts in Excel can be a cost-effective, quick-start solution when used with care.
Barcode fonts vs. barcode generators: pros and cons
Barcode fonts in Excel offer a fast, cost-effective way to generate simple barcodes directly in worksheets. They excel (pun intended) when you need to label items, track inventory, or embed a barcode into a report without external software. However, fonts have limitations: they depend on the target font being installed on every machine, they may produce larger glyphs than compact encoders, and print quality can vary with printer settings. Barcode generators (either built-in Excel add-ins or external tools) can handle error correction, data compression, and batch generation more reliably. According to XLS Library analyses, for routine in-house labeling, fonts are typically sufficient, but for high-volume production or diverse printing environments, generators offer more control and consistency. When choosing, consider the data payload, the scanning environment, and whether you need multi-code compatibility. If you expect recipients to view the barcodes on different devices, fonts can be a good first step, while generators are worth a backup for professional printing contexts.
Choosing the right barcode font for Excel
The most common barcode fonts to start with are Code 39 and Code 128. Code 39 is easy to implement and human-readable, which helps with quick sanity checks. Code 128 packs more data into a smaller glyph footprint and scales well for longer data strings. When selecting a font, verify licensing terms, ensure the font supports both numbers and letters you plan to encode, and test on your target printer. If you need to label SKUs, batches, or mixed data, Code 128 often provides the best balance of density and reliability. Also consider whether your workflow requires case-insensitive mapping or specific start/stop characters, and confirm that the font renders cleanly at the final print size you’ll use. The XLS Library team recommends trying multiple fonts in a small pilot run to observe scan performance under real-world conditions.
How to install and apply a barcode font in Windows and macOS
Installation steps are similar across Windows and macOS, but the touchpoints differ. First, download a reputable barcode font from a trusted source and save the .ttf file locally. On Windows, right-click the font file and select Install; on macOS, double-click the font file and click Install Font. After installation, reopen Excel to ensure the font appears in the font list. To apply the font, select the cells containing the data you want to barcode, then choose the barcode font (e.g., Code 39 or Code 128) from the font menu. For readability, set a fixed row height and column width; do not stretch the cell during printing, as that can distort the glyphs. If you distribute the workbook to others, include installation notes and confirm that the target machines have the font installed. The XLS Library team notes that font licensing can vary by platform, so provide clear guidance on usage permissions.
Encoding data for barcodes in Excel
Data encoding for barcodes in Excel is not just about the characters you type. Some fonts require start/stop characters (for example, Code 39 uses an asterisk as the delimiter). When concise data fits a single barcode, you can wrap the content with these characters using a simple Excel formula, then apply the font to the result. For instance, if A2 contains a product code, a common approach is to use =CONCAT("", A2, "") to generate the barcode-ready string. If your font supports Code 128, you may have more flexible encoding options, but you still need to validate the resulting glyphs on paper first. In any case, avoid including spaces or unsupported characters that can render as broken bars. Also ensure the data complies with your barcode standard and your scanning environment. The XLS Library team emphasizes testing barcodes with real scanners and printing at the intended size to confirm reliable reads.
Step-by-step example: Code 39 in a real sheet
Start with a small dataset in column A containing product IDs or SKUs. In B2, enter =CONCAT("", A2, "") to wrap the data with Code 39 start/stop characters. Apply the Code 39 font to B2 and adjust the font size so the barcode fits a printable area on your label. Copy the formula down the column to generate additional barcodes. Ensure there is enough quiet space around each barcode by leaving margins in the adjacent cells. If your data contains lowercase letters, consider converting to uppercase or using a Code 128 font instead, which handles a broader character set more efficiently. Finally, print a test page and scan the barcodes with a handheld scanner to confirm readability and tolerance to slight printer shifts. The XLS Library team suggests saving a template workbook so you can reuse this workflow for future barcodes without reconfiguring settings.
Common issues and troubleshooting
If barcodes don’t scan, the problem might be font availability, incorrect encoding, or printing scale. Confirm the font is installed on every machine that will view or print the workbook. Double-check that you applied the barcode font to the correct cells and that start/stop characters are used when required by the font. Print at the final size to avoid scaling distortions, and ensure the printer driver isn’t compressing glyphs. If you’re distributing the workbook, embed or package the font with the document, or provide a clear installation guide. Finally, verify that your data length fits the barcode’s specification; overly long strings can degrade scan performance. The XLS Library team recommends running a pilot print to catch issues early before full deployment.
Printing and validating barcodes in Excel
Before mass printing, validate each barcode at the exact final size and print quality you expect. Use a quality printer that supports high-resolution barcode output and enable settings that preserve sharp edges and contrast. Test with a variety of scanners, including handheld units and mobile device apps, to ensure consistent reads. Keep in mind that margins and quiet zones are critical for reliable scanning; nothing should encroach on the barcode’s clear area. For best results, standardize label dimensions and font sizing across your workbook, and store verification results in a separate sheet to document compliance. The XLS Library team emphasizes maintaining a repeatable process so your barcodes remain scannable across future prints.
Tools & Materials
- Excel-capable computer(Windows 10+/macOS; any modern Excel version)
- Barcode fonts (Code 39, Code 128)(Licensing must cover embedding in documents)
- Font installer (built-in or OS utility)(Needed to install new fonts)
- Printer with good resolution(High DPI helps glyph clarity)
- Sample dataset in Excel(Contains product codes or SKUs to barcode)
- Scanner for verification(Test barcode readability on paper)
- Measuring tool or ruler(Helpful for verifying label dimensions)
- Backup copy of workbook(Preserve original data and formulas)
Steps
Estimated time: 20-45 minutes
- 1
Choose barcode type
Decide between Code 39 or Code 128 based on data length and scan environment. Code 39 is simple and human-readable, while Code 128 compacts more information into a smaller glyph set.
Tip: Document the chosen type at the top of your workbook for consistency. - 2
Download and install a barcode font
Obtain a reputable Code 39 or Code 128 font and install it on your computer. Restart Excel to ensure the font appears in the font list.
Tip: Verify licensing allows embedding in documents you’ll distribute. - 3
Prepare data for encoding
Organize the source data in a dedicated column. If the font requires start/stop characters, plan how you’ll generate them (manually or with a formula).
Tip: Standardize case and remove invalid characters before encoding. - 4
Apply the barcode font to cells
Select the target cells and apply the barcode font. Adjust the font size and cell dimensions to fit the barcode's proportion without distortion.
Tip: Avoid stretching cells during printing; use fixed row height and column width. - 5
Encode data with required characters
If your font requires start/stop characters, wrap the data using a practical formula (for example, =CONCAT("*", A2, "*")) and apply the font to the result.
Tip: Keep a separate column for the encoded text to preserve the raw data. - 6
Test print and verify
Print a sample at the final size and scan with a handheld device to ensure readability. Adjust margins and quiet zones if scans fail.
Tip: Document test results and adjust printer settings if needed. - 7
Create a reusable template
Save a template workbook with the font applied and encoding formulas preconfigured so future barcodes can be generated quickly.
Tip: Include clear installation notes for recipients.
People Also Ask
What is a barcode font and how does it work with Excel data?
A barcode font maps characters to barcode glyphs. In Excel, you apply the font to your text to render a barcode. Ensure proper encoding and testing for readability.
A barcode font converts text into barcode glyphs in Excel. Apply the font and verify it's scannable.
Do I need to install fonts to print barcodes from Excel?
Yes. You must install a barcode font on every machine that will view or print the sheet. Without the font, the barcode will not render correctly.
Yes, install the barcode font on every machine that will print or view the sheet.
Can Excel generate barcodes without external fonts?
Excel cannot generate scannable barcodes by itself; it relies on barcode fonts or add-ins to render glyphs.
Excel needs a barcode font or add-in to create barcodes.
Which fonts are best for Excel barcodes?
Code 39 and Code 128 are common starting points. Code 128 is denser and better for longer data; Code 39 is simpler and more human-readable.
Code 39 is simple; Code 128 fits more data in less space.
How can I verify barcodes are scannable?
Print at final size, test with multiple scanners, and check quiet zones. If scans fail, adjust print settings and margins.
Print a test page and try scanning with real scanners to confirm readability.
What should I do if a barcode won’t scan after printing?
Recheck font installation, encoding rules, and the final print size. Ensure the barcode isn’t distorted by cell scaling or printer compression.
Check the font, encoding, and print size if a barcode fails to scan.
Watch Video
The Essentials
- Install a licensed barcode font and apply it in Excel
- Wrap data with start/stop characters when required
- Tune cell size to avoid distortion on print
- Validate with real scanners before deployment
