How to Add a QR Code in Excel (Single Codes, Lists and Printing)

Excel is where a lot of real-world lists live: inventory, event guests, equipment, classroom rosters, product catalogs. Putting a QR code next to each row, or on a printed sheet, lets someone with a phone jump straight to a web page, form or record. Excel doesn't have a built-in QR code generator, but you can still add codes cleanly. This guide covers a single QR code, a QR code inside a cell, one code per row for a list, and how to print them so they actually scan.

The short answer

  1. Make your QR code in a generator and download it as a PNG (or SVG).
  2. In Excel, go to Insert → Pictures and choose the file.
  3. Hold Shift while resizing so the code stays perfectly square.
  4. Leave a white margin around it and test-scan before you share or print.

The rest of this guide covers the details that make the difference between a code that scans and one that doesn't.

Step 1: Make the QR code image

Decide what the code should open: a website, a Google Form, a PDF, a Wi-Fi network or a contact card. Paste that content into the generator, then download it.

Not sure which to pick? See SVG vs PNG for QR codes.

Make a free QR code for a link, WiFi or contact card — generated in your browser.

Open the free QR code generator →

Step 2: Insert it into Excel

Floating picture (works in all versions): Insert → Pictures → This Device (or "Picture from File" on Mac), then select your image. The code sits on top of the grid and can be dragged anywhere.

Picture in a cell (newer Microsoft 365): Some versions offer Insert → Pictures → Place in Cell, or a right-click option to place an existing picture in a cell. The image then belongs to the cell: it moves, sorts and filters with the row. That's handy for lists, but the code is limited to the cell's size, so make the row tall and the column wide enough.

To make a floating picture follow its row when you sort or resize, right-click it → Format Picture → Size & Properties → Properties and choose Move and size with cells. For QR codes, "Move but don't size with cells" is often safer, since it keeps the code from being squashed when row heights change.

Step 3: Keep it square and sharp

A QR code must stay square. Stretched codes often fail to scan.

Step 4: Keep the white margin

Every QR code needs a clear border of white space, called the quiet zone. Excel cells, gridlines and borders can creep into it.

More on why this matters: QR code quiet zone.

One QR code per row: working with a list

If you have dozens of items, such as one link per product or one form per room, plan the content in Excel first, then generate the codes.

Build the link for each row with a formula

Say column A has an item ID and you want each code to open https://example.com/item/ followed by that ID. In B2:

="https://example.com/item/"&A2

Fill down. Now column B holds every link. Tips:

Generate and name the images

Generate a code for each link and save each file with the row's ID as its name, such as A1043.png. Matching filenames to IDs makes it easy to insert the right picture in the right row and to check your work later.

Insert and check

Insert each image into its row (Place in Cell is quickest where available). Then spot-check: scan the first, last and a few random rows and confirm each opens the right link. Swapped images are an easy mistake when working with long lists.

A note on online formulas: you may see suggestions to use Excel's IMAGE function with a third-party web address that returns a QR code image. That sends every value in your sheet to an outside service, and the codes break if that service changes or shuts down. For anything private, such as names, emails or internal links, generate images yourself instead.

Printing labels, badges and asset tags

Excel is often the last step before printing. A few settings keep codes scannable on paper:

Static or dynamic?

The codes you make in a free generator are usually static: the link is built into the pattern and can't change. If you might need to update where a code points after printing, either point it at a page you control and can edit, or use a dynamic QR service. For the full trade-off, see static vs dynamic QR codes.

Common problems and fixes

ProblemLikely causeFix
Code won't scanStretched, cropped or too smallReset to square, restore the white margin, print larger
Blurry on screen or printSmall source image enlarged, or compressionUse a larger PNG or SVG; turn off image compression
Codes moved after sortingFloating pictures not tied to cellsUse Place in Cell or "Move with cells"
Wrong page opensImages and rows mismatchedName files by ID and spot-check scans
Link breaks on some rowsSpaces or special characters in IDsUse TRIM and ENCODEURL in the link formula

Frequently asked questions

Does Excel have a built-in QR code generator?

No. Excel has no QR code button. Make the code with a generator, download it as an image, and insert it with Insert → Pictures.

Can I put a QR code inside a single cell?

Yes, in newer Microsoft 365 versions with Place in Cell. In other versions, insert the picture, size it to the cell, and set it to move with the cell.

How do I create QR codes for a whole list in Excel?

Build each row's link with a formula, generate one code per link, name each file by its row ID, and insert each image in its row. Test a sample before sharing or printing.

Can I use a barcode font to make QR codes in Excel?

Not with an ordinary barcode font. Those fonts are made for one-dimensional barcodes, while a QR code is a two-dimensional pattern with built-in error correction that has to be calculated, not just typed. Use a QR generator to make the images.

Will the QR code still work if I save the sheet as a PDF?

Yes, as long as it stays square and sharp. Open the PDF, zoom in, and scan it from the screen to check.

Make a free QR code for a link, WiFi or contact card — generated in your browser.

Open the free QR code generator →

Keep reading