Excel has no built-in QR code generator, so the reliable way to add one is to use a free QR code service to create the image, then insert that image into your worksheet with Insert > Pictures. This works in Excel for Microsoft 365, Excel 2021 and 2019 on Windows, Mac and the web, and the resulting code is a static image that any phone camera can scan. If you need many codes at once, you can use a QR generator that supports batch upload from a spreadsheet, but the single-image method below is the one that needs no add-ins.
What You'll Need
- Excel for Microsoft 365, Excel 2021/2019, or Excel for the web (menu labels can differ slightly by version, device or region).
- A web browser to reach a free QR code generator. Use a reputable service and avoid ones that ask you to install an add-in from outside the official Microsoft add-in store.
- The text or URL you want the code to contain, already written in a cell so you can copy it exactly.
- An internet connection for the generator step only. Once the image is inserted, the file works offline.
Step-by-Step
- Type the destination into a cell. For a link, type the full address including
https://; for plain text, type the exact wording. Press Enter. - Copy that cell's contents with Ctrl+C (Cmd+C on Mac). Keeping the source text in the sheet means you can regenerate the code later if the link changes.
- Open a QR code generator in your browser and paste the text into its input field. Choose the plain URL or text option rather than a login-gated "dynamic" code unless you specifically need one.
- Generate the code and download it as a PNG or JPG. Save it somewhere you can find, such as your Downloads folder or Desktop.
- In Excel, click the cell where the top-left corner of the image should sit. A cell near your data but outside the print area works well.
- Go to Insert > Pictures > This Device (on Mac it is Insert > Pictures > Picture from File). In Excel for the web the same path is Insert > Pictures.
- Select the downloaded image and click Insert. The QR code appears as a floating picture over the grid.
- Drag a corner handle to resize it. Hold Shift while dragging to keep it square, which keeps the code scannable.
- Right-click the picture and choose Size and Properties if you want to lock the aspect ratio or set an exact height and width.
- Test it: open your phone camera, point it at the screen, and confirm the link or text appears correctly before you share the file.
Common Mistakes
- Stretching the code out of square. A QR code must stay square; a stretched image can fail to scan. Use Shift-drag or lock the aspect ratio.
- Letting the picture cover cells. A floating image hides the data underneath. Place it in an empty area or resize the row heights first.
- Typing the URL by hand into the generator. A single wrong character produces a code that leads nowhere. Copy from the cell instead.
- Using a dynamic code service without realising it. Some services host the redirect, so the code stops working if the account lapses. For a permanent code, use a static generator.
- Assuming the code updates when the cell does. The image is a snapshot. If you change the cell text, you must generate and insert a new image.
Tips
- Keep the source text in a cell next to the image and add a label such as "Scan for menu" so readers know what the code does.
- Generate the code at a reasonable size (around 300–500 pixels square) so it stays sharp when printed.
- For a sheet you print, check the code in Print Preview; a picture that sits over a page break can be cut in half.
- If you need a code inside a single cell that moves with sorting, anchor the picture to the cell with the Move and Size with Cells option under Size and Properties.
- For many codes, use a generator that accepts a spreadsheet upload, then insert the downloaded images in one pass rather than one at a time.
Troubleshooting
If the phone will not scan the code, first zoom in on the screen or print the sheet larger; codes need enough pixels per module. Check that the image was not resized unevenly. If the code scans but opens the wrong page, compare the source cell with the generator input character by character, including https:// and any trailing slash.
If Insert > Pictures is greyed out, the sheet may be protected or the workbook opened in a restricted view; close and reopen it normally. If the image appears but prints blank, open File > Options > Advanced and confirm that "Show picture placeholders" is not ticked, then check Print Preview again. If you are on Excel for the web and the picture will not insert, save the file to OneDrive first, then retry.
If the code worked yesterday and fails today, the likely cause is a dynamic redirect service that has expired or changed. Regenerate a static code from the same text and replace the image.
Frequently Asked Questions
Does Excel have a built-in QR code generator?
No. Excel can display a QR code image but cannot create one from a cell value without an add-in or an external generator.
Can the QR code update automatically when the cell changes?
Not with a plain inserted picture. The image is static; you must regenerate and reinsert it. Some third-party add-ins offer linked codes, but check that they come from the official Microsoft add-in store.
Will the QR code still work if I email the spreadsheet?
Yes, as long as the image is embedded in the file and the code is static. Dynamic codes depend on the service's redirect staying active.
Can I put a QR code inside a single cell?
Only as a floating picture positioned over the cell. Excel cannot store an image as a cell value, so the picture will not sort or filter with the data unless you anchor it.
Is it safe to use a free QR generator?
Use a well-known service, avoid uploading sensitive data, and never install an add-in from outside the official store. For confidential text, generate the code offline with a trusted desktop tool instead.
Why does my QR code look blurry when printed?
The source image was probably too small. Regenerate it at a larger pixel size and insert it again rather than scaling up a low-resolution picture.