How to create barcode in Microsoft Excel. Free download


How to create, generate, print 1d and 2d barcode in Microsoft Excel without barcode font.

Install, or integrate barcode add-in on MS Office Excel and generate barcodes on Office Excel documents

In this Excel barcode generation user guide, you will learn how to generate, print high quality barcode images in Microsoft Office Excel document.

  • Create, insert 20+ linear and 2D barcode images in Excel worksheet
  • High dpi barcode raster images for document printing
  • Easy to generate a single barcode from Excel cell data, or create bulk of barcode image list from a template
  • Easy to customize the barcode dimension size (width and height)
  • Free to distribute Excel document with barcodes inserted
  • No activex control, VBA, Macro programming, barcode font required
  • Support Microsoft Excel 365, Excel 2024, 2021, 2019, 2016, 2013, 2010, 2007 on Windows

How to create, print barcode in Microsoft Excel document

  1. Download Barcode Generator Excel Add-in freeware
  2. Install Excel add in to create, insert barcodes in Microsoft Excel sheets
  3. Step by Step Guide








  • Easy to integrate this barcode add-in with your Microsoft Office Excel
  • Require no programming skills and barcode specifications knowledge base
  • Support inserting a single and batch barcodes on Excel 365, 2024/2021/2019/2016/2013/2010/2007 cells
  • Guarantee high print quality barcode generation, complying with GS1, ISO/IEC specifications
  • Create linear (1D) barcodes like Code 39, EAN, UPC, GS1 128, Interleaved 2 of 5, Postal Codes, etc
  • Embed matrix 2D barcodes in Excel, such as QR Code, Data Matrix, PDF 417
  • Flexible barcode dimension support allows adjusting various barcode size properties
  • Automatic check digit calculation support with this barcode add-in for Excel


Excel Barcode Generator Add-In is a reliable and professional barcode generator for Microsoft Excel 365, 2021/2019/2016/2013/2010. This user guide will show how to integrate barcode generation and printing features into Microsoft Office Excel and how to generate static and dynamic barcodes on your Excel spreadsheets.

Supported 2d and Linear Barcode Types





Install the Barcode Add-in for Excel app

Top
  1. Close all opened Excel spreadsheets.

  2. Click to run the "OnBarcode.Barcode.Excel.Addin.2025.Setup.exe" to install.

  3. Now, you may find OnBarcode Excel Barcode Add-In under the Excel "Add-Ins" tab.
  4. Now, the Excel Barcode Add-In is successfully integrated under "Add-Ins" tab.

You may find more detailed information about barcode add-in installation on Microsoft Excel 365, 2021, 2019, 2016, 2013, 2010:
How to download free, install barcode add-in for Microsoft Excel 365?
  • Install, Uninstall, Upgrade free trial or full licensed barcode add-in
  • Install fonts to print linear/1d barcode text labels
  • Exceptions during installation

Start using Excel Barcode Add-in

Now you have installed the OnBarcode Excel Barcode Generator add-in software, you can start using it in the Microsoft Excel application.
  1. In Excel application, go to toolbar > Add-ins tab
  2. Click Create Barcode command from "OnBarcode.com" group. And you will find that a "Barcode Settings" pane is open. You can create, update barcodes in Excel document using this pane.





How to create, customize a barcode in Excel sheet?

Top


Create a barcode

Let's open an Excel file using Microsoft Excel application, and click Create Barcode from "OnBarcode.com" group in Excel toolbar Add-ins tab.
  1. Select cell B2, which has cell data 978230001. Here we will create and insert a Code 128 barcode in cell B2 with cell data encoded
  2. Click Generate button in the Barcode Settings pane.
  3. Now, a Code 128 barcode image is successfully printed on the cell B2.




Create barcode from other Sheet cell value

You can create and print barcode using other sheet cell value. In the Data property, enter the cell address from the other Excel sheet.

For example, you want to generate a Code 128 barcode in Excel sheet Sheet2 in cell C2, and the barcode data is stored in other sheet Tom and Jerry in cell B5.

  • Choose cell C2 in Sheet Sheet2
  • In Barcode Settings Data Property, enter =Link(Tom and Jerry.B5)
  • Click button Generate to insert a Code 128 barcode in current sheet cell C2.





Customize & update the barcode

To customize the generated barcode, please select it and adjust its property in the setting panel. Then, click "Update". Also, you can remove the generated barcode images by clicking "Delete" button.

Here we will automatically resize the barcode covered Excel cell B2, and make sure the cell's width and height are the same size as the barcode width and height.
  1. Select the Code 128 barcode on cell B2
  2. Check Resize Covered Cell
  3. Click Update button in the "Barcode Settings" pane.
  4. Now you will see that the cell B2 has been resized, and it has the same size of width and height as barcode's.




Delete an existing barcode

If you want to delete or remove an existing printed barcode images, you can try one of the following methods to do it.
  • Select the barcode image on the Excel sheet, click Delete button to remove it from the sheet.
  • Select multiple barcodes on the sheet, press delete or backspace from the keyboard to delete them




How to make barcode with specific Excel cell data?

Top
Using Excel Barcode Generator add-in, you will create QR Code or barcode image using Data text box value in "Barcode Settings" pane.

In Data text box, you have two options to specifiy the barcode data
  • Create barcode using "specified cell address value"
  • Create barcode using "input text string"


Create barcode using Excel cell value

There are two types of barcode data source.
  1. Specified Excel cell value
    Create barcode using the specified Excel cell value. Use the following format in "Data" text box:
    =LINK(cell address)
    For example, "=LINK(B2)", the created barcode will use the cell B2 value in the current active Excel sheet.



    Note: When you select a cell to create and insert barcode on the selected cell, the Excel barcode freeware will automatically choose the selected cell as specified cell to encode barcode data. You can change the cell address in Data text box to change it.

  2. Text string in "Data" text box.
    You can input the static text string to the "Data" text box, and barcode generator add-in will generate barcode with it.




Update barcodes automatically in Excel

Any cell value changes in Microsoft Excel application, the Excel Barcode Generator add-in will update all linked barcode images automatically.

For Add-in Versions prior to Version 2026.2.0.
In the following situations, the barcode images on the Excel will not update automatically.
  • The Excel Barcode Add-in is not open. If you do not open the barcode add-in in Excel application, the barcode add-in will not work and update barcode images.
  • The Exce file is closed, and the cell value has been modified by other program.


For Add-in Version 2026.2.0 and later.
In both of the above cases, the barcode add‑in will automatically update all barcode images.

Note: Excel Barcode Add-in (Version 2026.2.0) was released on Jul 24, 2026. You can click here to view the installed barcode Excel add-in version information.


Update barcodes automatically when Excel file is open

By default, when you open an Excel file, the Excel Barcode add-in (for add-in Version 2026.2.0 and later) automatically updates all barcode images in the file.

You can disable this feature on the add-in toolbar.


The automatic barcode update function upon file startup is useful in the following scenario:

  • When the Excel file is closed, its barcode encoding data is modified and updated by a third-party program. After the file is opened, all barcodes will be automatically updated.


Manually update all barcodes in Excel

You can click the Update All button to manually update all barcode images in Excel document.


Update all barcodes in protected Excel

OnBarcode Excel Barcode add-in will automatically update all barcodes in protected Excel file without password applied.

To update barcodes in password protected Excel Worksheets, you need use VBA Macro program. You can view details here: How to update barcodes in password protected Excel Workbook?




How to make, print bulk barcodes from list of numbers, text in Excel?

Top
Using OnBarcode Excel Barcode Generator add-in, you can easily create multiple barcodes from list of text, numbers in Excel cells.

Here we have prepared a sample Excel document with list of Code 128 codes on Excel sheet column B, and there is a Code 128 created already on column C. The Code 128 barcode is encoding the same row cell value in column B.



In the demo below, we will show you how to create and print multiple Code 128 barcodes on column B with few selections and clicks.
  1. Click the Code 128 barcode on cell C4. You can find that the message printed on the "Barcode Settings" pane.


    The message indicate that you have copied a CODE128 barcode in cell C4, and the duplicated barcode will have the same barcode properties, except the encoding data.
  2. Select multiple cells from cell C5 to cell C8, where you will insert bulk Code 128 barcodes, and click Duplicate All button.
  3. You will find that the multiple Code 128 barcode images have been created and printed on the selected cells in Excel document.


Now you can see that it is really easy to create multiple barcodes from list of Excel cell value using Excel Barcode Generator Add-in.

More multiple barcode generation step by step tutorials at:
How to generate multiple barcodes in Excel document using Excel Barcode Add-in?




Barcode Data Encoding in Microsoft Excel

Top

Property "Data"

Property Data in "Barcode Settings" pane indicates the barcode encoding data.

By default, it will use the current selected cell value. The image below shows that you will create a barcode by converting the Excel Cell B2 value.


To create and print a barcode on Cell B2, you can choose the barcode data by one of the following methods
  1. In property "Data", specify the barcode data source cell address. Such as =LINK(A2), the barcode freeware will create a barcode on cell B2, and the barcode data is from cell A2.

    All expression entries begin with an equal sign (=).
    Type the equal sign followed by the function LINK(), and insert the referenced cell address. The printed barcode will encode the text or numbers value of referenced cell specified in function LINK().

  2. In property "Data", key-in the barcode data directly. Such as 1234567890.


Create barcodes with numbers or alphanumerics in Excel document

If your barcode data is digits or alphnumerics, the barcode generator add-in will create barcode directly with data encoded in Excel file.

In the example below, the cell A2 has the value "ABC-001". The generated Code 128 barcode image on cell B2 is using the A2 cell value.

If you change the A2 cell value, the barcode image will automatically be updated using the new data value.


You can directly input the barcode data into Data textbox in the barcode settings pane in Excel.
The following example is showing a Codabar barcode generated with digits "ABC-00-001".




Create barcodes with ASCII or extended ASCII characters in Excel document

ASCII (American Standard Code for Information Interchange) is a standard character encoding used in many industries. ISO 646 has defined the all 128 ASCII characters.

It currently defines 95 printable characters including 10 digits (0 to 9), 26 upper case letters (A to Z), 26 lower case letters and 33 special characters including symbols, punctuation marks, and space characters. There are 33 non-printable characters in ASCII char table (ASCII control characters ascii value 0-31 and 127).

The following barcode formats support encoding ASCII characters.
  • Code 39 (with extension mode)
  • Code 128
  • Data Matrix
  • PDF-417
  • QR Code


The extended ASCII includes 256 characters, and the first 128 chars are from standard ASCII, and it is a superset of ISO 8859-1 in terms of printable characters.

The following barcode formats support encoding extended ASCII characters.
  • Code 128
  • Data Matrix
  • PDF-417
  • QR Code
To generate barcode with printable chars in Excel, you can input the barcode data directly in Data textbox or to the barcode linked Excel cell. The following image displays a Code 128 barcode with data in ASCII printable chars in Excel.





Create barcodes with non-printable characters in Excel document



In ASCII and Extended ASCII character set, there are few non-printable characters, most of them are control characters. To create barcodes with those non-printable chars in Excel, you need do some extra steps.

To encode non-printable chars in barcode in Excel, you need get the non-printable char ASCII value or Extened ASCII value. Then in the barcode data text box, you need add chars in the following format: "~ddd". Here ddd is the ASCII value in 3 digits.

Here is an example to generate Code 128 barcode with data "123[CR]111" in Excel. The data "[CR]" is a character for Carriage Return, its ASCII value is 13.
  • Choose Barcode Type as CODE 128
  • Go to tab "1D Barcode", enable property "Apply tilde (~)"
  • In Data text box, key in 123~013111
  • Press button Update to generate Code 128 with the above settings applied.
  • In generated Code 128 barcode text (Human Readable Interpretation in barcode specification) area, it will display the printable characters only.




How to generate barcode with complex data message in Excel file?

Besides simple numbers and upper-, lower- case letters encoding, 2d barcodes and some linear barcode (such as Code 128) supports much more complex data formats, such as Unicode text, GS1 business data messages.

See details here:




How to create, print barcode with specified width & height in Excel?

Top
Using Barcode for Excel add-in, you can easily generate the barcode in specified area in Excel sheet.

  1. Select a cell to insert barcode. The generated barcode image left top corner is the same position of the selected cell's left top corner. You can also drag the barcode image, and place any where on the Excel sheet.


  2. To set the barcode with specified image width and height, please apply the following settings:
    1. Select the barcode you need to adjust the image width & height
    2. Check Auto resize in "Barcode Size" tab
    3. Set the Image width with the value 715 (pixels) Set the Image height with the value 364 (pixels)
    4. Click Update button to re-print the barcode.


Now you know it is a simple task to create, draw barcode with target position and specified width, height in Excel document.

There are more options to customize the generated barcode image dimension size, such as text size, text margin, barcode images. You can view the details here:
How to generate barcodes with specified image size (width, height) in Excel?




How to customize created 1d barcode displayed HRI (barcode text) in Excel document?

Top
Most of the linear (1D) barcodes are displayed with Human Readable Interpretation (HRI). You can easily customize the displayed barcode text style, such as color, font style, using Excel Barcode Generator software.



Here are the complete list of properties you can use in Excel. Most of the options below are in the tab "1D Barcode" in "Barcode Settings" pane in Excel.



  • Display barcode data: The default value is checked, and it will display 1d barcode HRI in the generated barcode images. To hide the HRI in the barcode, you need uncheck it.
  • Display checksum char: If the linear barcode has checksum char(s) in the end of HRI, you can uncheck to hide it. Note: if you have hidden the checksum chars, the checksum digits will still be inserted in the generated barcode symbology.
  • Font family, Font style, Font size: You can change the font name, style (normal, bold, underline, ...), font size here.
  • Text margin: the space between barcode and displayed text. The property is under the tab "Barcode Size".




How to customize barcode colors in Microsoft Excel?

Top
Most common barcodes are using black color as bar module color and white color as barcode label background color. Now more and more barcodes, specially QR Code, are used for marketing purpose. Lots of QR Code for marketing are using customized color for bar module.

Here we will learn how to apply the colors settings using Barcode Generator for Excel add-in

  1. Create a QR Code in the Excel document.

  2. Select the QR Code. You will find the following color options in the right side Barcode Settings pane.

  3. There are three color related options:
    • Fore is to set barcode bar module color. By default it is the color black with value "#000000". Click the color rectangle to popup Color dialog and reset the fore color.
    • Back is to set the barcode symbology background color. The default value is color white with value "#FFFFFF".
    • Enable Transparent checkbox, if you need generate barcode with transparent background image. Once it is enabled, the option Back will be disabled.
  4. The QR Code below are generated with the following options applied.
    • Fore is red with value "#FF0000"
    • Transparent is enabled.
    • Click button Update to re-generate the QR Code with color options applied

You will find more barcode color settings, such as 1d barcode text label colors, here:
How to create barcode with colors customized in Excel?




How to generate high resolution barcode images in Microsoft Excel?

Top

Print high resolution barcode images in Excel

Sometimes you need high resolution barcode images in Excel for printers, it is really easy to do it using Excel Barcode Generator add-in.

Firstly you need enable the Excel document supporting high resolution images. The barcode images created by barcode generator for Excel are in PNG formats. By default they are in 300 dpi resolution.

If you want to create barcode with higher resolution for printing purpose, you can easily change inserted barcode images resolution in the Barcode Settings pane.
  • Select the barcode you need update image resolution
  • In Barcode Settings pane, change DPI to the resolution you want. The barcode image resolution should be higher than your printer's.
  • Click button Update to re-paint the barcode with resolution applied




Make rotated barcode in Excel

Try the procedures below to create a rotated barcode in Excel:
  1. Select the Code 128 barcode you want to rotate.
  2. Change Rotate to 90 in "Margin & Rotation" group in "Barcode Size" tab.
  3. Click Update button to apply the rotation
  4. View the rotated Code 128 barcode in Excel file.
You will find more Excel barcode image customization settings here:
How to print barcode with image & colors customized in Excel?




































Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.