Can Excel Generate Barcodes? A Practical Guide for 2026
Can Excel generate barcodes? Explore methods using fonts, formula tricks, and steps to print reliable barcodes in Excel for 2026. This guide covers practical tips.

Yes. Excel can generate barcodes using fonts or data-encoding approaches, with practical, no-SKU techniques suitable for everyday inventory and labeling tasks. You can rely on Code 39, Code 128, or simple encoded data, provided data is prepped and the barcode is tested on your printing setup.
Understanding Barcode Basics in Excel
Barcodes are compact, machine-readable representations of data that can be scanned quickly by readers and mobile devices. In practice, they translate a data string—such as a product code or SKU—into a pattern of bars and spaces. For Excel users, the main question is not whether Excel can display a barcode, but how to ensure the barcode will scan reliably in real world scenarios.
According to XLS Library, the reliability of a barcode depends on consistent data encoding, appropriate encoding type, and careful printing quality. The good news is that Excel can render barcodes with little external tooling when you choose a compatible approach and test thoroughly. In this guide, you will learn practical, field-tested methods for generating barcodes in Excel without heavy investments or relying on expensive software. By the end, you will have a repeatable workflow you can adapt to different products, suppliers, or warehouse processes. We cover the most common barcode types, how to encode data, and how to assess scan reliability using simple tests.
Methods: Fonts vs Barcode Symbologies vs Formulas
Excel can generate barcodes using three broad approaches: barcode fonts, encoded data with built in formulas, and external tools or add ins that produce image like barcodes. Barcode fonts map ordinary text to a barcode glyph when a specific font is applied; this is fast, inexpensive, and widely supported across Windows and Mac. Data encoding approaches rely on Code 39 Code 128 or other standards; you wrap your data with start stop characters or apply check digits to ensure reliability. External tools include lightweight add ins or online generators you paste into Excel, then import the generated images back into a worksheet. Each method has trade offs in terms of cost, scanning reliability, and cross platform compatibility. The right choice depends on your data length, the required scan speed, and whether you need to print at scale. The rest of this guide focuses on practical, low cost options you can implement today, with testing steps you can replicate in your own workbook.
Font-Based Barcode Techniques
Font based barcodes are simple to implement in many environments. Steps include choosing a compatible font such as Code 39 or Code 128 variants, installing the font on your operating system, and applying it to the cells containing your data. Important formatting tips include using a mono spaced font for consistent bar widths, ensuring high contrast between the bars and the background, and avoiding bold or italic styling that can distort the symbol. After applying the font, adjust the font size and cell height so the bars meet a minimum height for scanning. Print a test sheet on the intended printer, scan each barcode with a real scanner, and verify reliability across different devices. If some items fail to scan, check that the characters are supported, the data length is within the font limits, and that there is adequate quiet zone around the symbol.
Formula Based Approaches and Data Encoding
Some Excel users prefer encoding data with formulas to create a raw barcode like pattern that a font can render. For Code 39 you typically enclose the data with asterisks as start stop characters, then feed the string to a Code 39 font. You can use concatenation to pad values to a fixed length, or implement a simple check digit to increase error detection. A practical workflow is to prepare a clean data column no spaces no special characters, create a calculated column that applies the start stop characters, and then apply a Code 39 font to the resulting cells. Note that this approach relies on font rendering; it does not inherently verify that the barcode will scan correctly until you test it physically. For longer data or tighter packing, Code 128 is typically preferred, but it may require a font variant with slightly more complex encoding.
Using Power Query and External Tools for Barcodes
Power Query enables you to merge barcode data from multiple sources and perform data cleansing before exporting to an Excel ready layout. If your barcodes require a more robust or variable encoding than fonts support, you can use an external barcode generator or an online service to create image based barcodes and insert them into Excel as pictures. When using external tools, be mindful of licensing and privacy implications, especially for sensitive product data. A common workflow is to generate codes in a safe external environment, export as image files, and place them into a dedicated column or sheet. Then perform a final check with scanning hardware. If you need to scale printing, consider linking your data to a mail merge like template that automatically populates barcode cells for each item.
Printing, Quality, and Scanning Considerations
Printing quality is critical for barcode reliability. Use a high resolution printer and label stock that preserves clear barcode edges. Maintain a clean light background and avoid low contrast combinations; ensure margins around the symbol meet the standard. Include a border only if your scanner expects one. When testing, use a real device and check at typical distances and angles. Keep a separate test sheet to compare scanning results across different fonts sizes and lighting. For organizations with compliance requirements, document your testing results and version control your barcode layout. Finally, remember that Excel is a layout tool here the underlying encoding and the printed result determine scan success more than any single cell formula.
Tools & Materials
- Computer with Excel installed(Windows or macOS; ensure access to fonts)
- Barcode font (Code 39 or Code 128)(Install system-wide for Excel to access)
- Printer with high DPI(Prefer 600 dpi or higher for clarity)
- Barcode label stock or plain paper(Use stock suitable for your printer)
- Data to encode (SKU, product codes)(Keep data clean, alphanumeric allowed)
- Excel workbook template(Organize data and layout)
- Barcode scanner or mobile device with scanning app(Useful for testing scan reliability)
Steps
Estimated time: 45-90 minutes
- 1
Choose barcode type
Decide between Code 39 and Code 128. Code 39 is simple and forgiving for short data strings, while Code 128 packs more information in a compact space. This choice affects font availability and data encoding rules.
Tip: Start with Code 39 for quick wins and switch to Code 128 for longer or denser data. - 2
Install a barcode font
Download a reputable barcode font and install it on your OS so Excel can access it. After installation, restart Excel to ensure the font appears in the font list.
Tip: Verify license terms and ensure the font supports the exact barcode width you need. - 3
Prepare your data
Clean your data column in Excel: remove illegal characters, trim spaces, and standardize case. This data becomes the input for your barcode glyphs.
Tip: Use data validation or CLEAN/TRIM functions to automate cleansing. - 4
Apply the font to your cells
Select the cells with data, choose the barcode font, and set an appropriate font size. Ensure the cell height accommodates the barcode height for reliable scanning.
Tip: Prefer a fixed row height and avoid wrapping text. - 5
Test barcode scans
Scan a sample of each barcode with a real scanner or a mobile app. Check readability at different distances and angles, and for variations in lighting.
Tip: If scans fail, verify character compatibility and re-check quiet zones around the symbol. - 6
Print and verify on final stock
Print a test sheet on the final label stock or paper. Re-scan the printed barcodes to confirm scanning reliability in the actual production environment.
Tip: Keep a log of tested samples and printer settings for consistency. - 7
Optional: automate encoding with formulas
If you need Code 39 or Code 128 from longer datasets, consider building Excel formulas to add start/stop characters and optional check digits before applying the font.
Tip: Document the formula logic so teammates can reproduce the steps.
People Also Ask
Can Excel natively generate barcodes?
Excel does not include built in barcode generation. You can create barcodes by using barcode fonts or external tools, then format cells for scanning.
Excel doesn t have native barcode generation; use fonts or add ins and test.
Which barcode types work best in Excel?
Code 39 and Code 128 are common choices for Excel because they are simple to implement with fonts or basic encoding.
Code 39 and Code 128 are good starting points.
Do I need to install a barcode font?
Yes, a barcode font or an add in is typically required to render barcodes in Excel. Ensure the font is installed system wide.
Yes, you usually need a barcode font or an add in.
Can I generate QR codes in Excel?
QR codes require different encoding and may require add ins or external tools; Excel alone cannot generate QR codes using standard fonts.
QR codes usually need extra tools; Excel alone won t generate them.
How can I validate barcodes before printing?
Test with a barcode scanner or mobile app, and check alignment, quiet zones, and readability.
Test with a scanner to ensure readability.
Are there risks using fonts for barcodes?
Printing quality, font licensing, and character set reliability affect scan success; always test thoroughly.
Be mindful of print quality and licensing; test.
Watch Video
The Essentials
- Choose a barcode type that fits your data length.
- Font-based barcodes are quick to implement but require good printing quality.
- Always test scans with real hardware before mass printing.
- Excel barcode workflows are cost-effective for small teams when kept simple.
