How to Create QR Codes in Excel? (4 Easy Methods)
Creating QR codes in Excel can be a highly efficient way to manage encoded information like URLs, product details, or other data. In this guide, we will explore several methods to generate QR codes directly within Excel, ensuring seamless integration with your data. Whether you use Microsoft 365 or older versions of Excel, the steps below will help you create QR codes easily and effectively for your unique needs.
Benefits of Generating QR Codes in Excel
Before exploring the methods, let’s understand why Excel is an excellent platform for generating QR codes:
- Automation: Excel’s formulas and macros allow batch creation of QR codes with minimal effort.
- Data Integration: You can directly use the data already present in your spreadsheets, saving time and reducing errors.
- Customizability: Excel allows you to adjust the size, style, and functionality of your QR codes according to specific requirements.
- Versatility: Whether you are managing inventory, creating marketing materials, or organizing personal data, Excel simplifies the process.
Method 1: Using the IMAGE Function in Microsoft 365
If you have access to Microsoft 365 or Excel for the web, the simplest way to generate QR codes is by using the IMAGE function. This function integrates seamlessly with online QR code generation services.
Steps to Use the IMAGE Function
1. Prepare Your Data: In Column A, enter the data you want to encode, such as URLs, text, or product IDs.
A | B |
---|---|
https://example.com | [QR Code Generated] |
https://site.com | [QR Code Generated] |
2. Enter the Formula: In cell B2, input the following formula:
=IMAGE("https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=" & A2)
3. Copy Down:
Drag the formula down from B2 to other rows to generate QR codes for all entries in Column A. Each QR code will correspond to the data in the respective row of Column A.
4. Customize Size:
Modify the size=200x200
parameter in the URL to adjust the dimensions of the QR codes, e.g., size=300x300
for larger codes.
Advantages
- Fast and straightforward process.
- Automatically updates QR codes whenever the data changes.
- Ideal for users with access to modern Excel versions.
Use Cases
- Marketing Campaigns: Generate QR codes for landing pages.
- Event Management: Create QR codes for attendee registrations.
Method 2: Using VBA Code
For users of older Excel versions or those needing more flexibility, VBA (Visual Basic for Applications) is a powerful tool for generating QR codes.
Steps to Use VBA for QR Code Generation
1. Open the VBA Editor: Press ALT + F11
to launch the Visual Basic editor.
2. Insert a Module: In the editor, click on Insert > Module
to create a new module.
3. Paste the VBA Code: Copy and paste the following code snippet into the module:
Function GetQRCode(data As String) As String
GetQRCode = "https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=" & data
End Function
4. Close the Editor: Press ALT + Q
to exit the VBA editor and return to your Excel workbook.
5. Use the Function: In a blank cell (e.g., B2), enter the formula: =GetQRCode(A2)
6. Display the QR Code: You can either download the image from the returned URL or use Excel’s image controls to display it directly.
Advantages
- Works seamlessly in older Excel versions.
- Fully customizable through VBA scripts.
- Allows automation of complex workflows.
Use Cases
- Inventory Management: Create QR codes for product details.
- Documentation: Generate QR codes linking to specific online resources.
Method 3: Using Online QR Code Generators
If you prefer a manual or occasional approach, online tools are a reliable method for generating QR codes.
- Visit a Generator Website:
- Examples include qr-code-generator.com and similar platforms.
- Input Your Data:
- Enter the text, URL, or information you want to encode into the generator’s input field.
- Download the QR Code:
- Save the generated QR code image to your device in formats like PNG or JPEG.
- Insert Into Excel:
- Open Excel and go to
Insert > Pictures > This Device
. - Select your downloaded QR code image and place it in the desired cell.
- Open Excel and go to
- Resize as Needed:
- Adjust the size of the QR code to fit the layout of your worksheet.
Advantages
- No technical setup required.
- Offers advanced customization options, such as colors, logos, and patterns.
- Accessible on any device with an internet connection.
Use Cases
- Event Promotions: Generate QR codes linking to event details.
- Educational Materials: Embed QR codes for additional resources.
Method 4: Using Excel Add-ins
Third-party add-ins, such as Kutools for Excel, offer a user-friendly way to generate QR codes directly within Excel.
- Install the Add-in:
- Download and install the add-in, such as Kutools for Excel, from a trusted source.
- Access the QR Code Tool:
- Open Excel and navigate to
Kutools > Insert > Insert QR Code
.
- Open Excel and navigate to
- Select Data Range:
- Highlight the cells containing the information you want to encode into QR codes.
- Generate QR Codes:
- Specify the output location and click the
Generate
button to create QR codes for the selected data.
- Specify the output location and click the
- Adjust Settings:
- Use the add-in’s options to customize the appearance and size of the QR codes.
Advantages
- Ideal for bulk QR code generation.
- Provides extensive customization features.
- Simple and efficient for repetitive tasks.
Use Cases
- Retail: Generate QR codes for product labels.
- Data Analysis: Encode links to supplementary data.
Comparison of Methods to Generate QR Codes in Excel
Method | Best For | Ease of Use | Customization |
---|---|---|---|
IMAGE Function | Microsoft 365 users | Easy | Moderate |
VBA Code | Older Excel versions | Moderate | High |
Online Generators | Occasional manual use | Easy | High |
Excel Add-ins | Bulk QR code creation | Easy | High |
Tips for Using QR Codes in Excel
- Data Accuracy: Double-check the data in your cells to ensure the encoded QR codes are correct.
- Size Adjustments: Tailor the size of your QR codes to fit the layout and purpose of your worksheet.
- Testing: Always test your QR codes with a scanner or smartphone app to confirm functionality.
- Organized Layout: Arrange QR codes neatly within your worksheet for better readability and usability.
By following these detailed methods and tips, you can efficiently create and manage QR codes in Excel, catering to various needs and applications. Whether you’re automating workflows, organizing data, or creating marketing materials, Excel offers versatile solutions to meet your requirements.
Frequently Asked Questions
How do I create a QR code in Excel using the IMAGE function?
To create a QR code in Excel using the IMAGE function, input your data in a column and use the formula =IMAGE("https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=" & A2)
. Adjust the size parameter if needed, and drag the formula down to generate multiple QR codes.
Can I generate QR codes in older versions of Excel?
Yes, you can use VBA (Visual Basic for Applications) to generate QR codes in older versions of Excel. Write a custom VBA function that fetches the QR code URL from an online API, and use the function in your spreadsheet to generate QR codes.
What are the advantages of using Excel to generate QR codes?
Generating QR codes in Excel is efficient because it allows for automation, data integration, and batch processing. Additionally, you can customize the size and content of QR codes based on the data in your spreadsheet.
Are there any third-party tools for creating QR codes in Excel?
Yes, you can use third-party add-ins like Kutools for Excel to generate QR codes easily. These add-ins provide a user-friendly interface and allow for bulk QR code creation without the need for custom formulas or scripts.
Can I use online QR code generators with Excel?
Yes, you can create QR codes manually using online generators like qr-code-generator.com. After generating the QR code, download the image and insert it into your Excel worksheet using the Insert > Pictures option.
What should I do if my QR codes are not scanning correctly?
Ensure that your QR codes are of adequate size and clarity. Double-check the data being encoded and test the codes using a reliable QR code scanner. Adjust the size or resolution if needed to improve readability.

Vaishvi Desai is the founder of Excelsamurai and a passionate Excel enthusiast with years of experience in data analysis and spreadsheet management. With a mission to help others harness the power of Excel, Vaishvi shares her expertise through concise, easy-to-follow tutorials on shortcuts, formulas, Pivot Tables, and VBA.