Excel Online has no built-in QR code generator, so you cannot right-click a cell and pick "Insert QR code." What you can do is generate the code with a free web-based generator (or a tiny formula-driven image service), then embed the resulting image into your workbook via Insert > Pictures. The code itself is just an image linked to a website's URL, so it will display in Excel Online but the barcode pattern is fixed at the moment you create it — editing the cell text afterwards will not update the code. This guide walks through the safest, most repeatable methods, what to watch for, and how to fix the usual failures.
What You'll Need
- A Microsoft account and access to Excel for the web (Excel Online) in a browser.
- The text or URL you want the QR code to encode — a web address, a Wi-Fi login, a phone number, a plain text note, etc.
- A free QR code generator website or add-in you trust. Stick to well-known, official sites; avoid anything requesting a login for a "premium" scan.
- A way to save the generated image (download the PNG to your computer first).
- An internet connection — Excel Online does not work offline.
Step-by-Step
- Decide exactly what the code should encode. Write the final text or URL in a plain cell first, so you have a single source of truth. Check it character by character — a QR code is unforgiving. If it is a URL, test it in a browser tab before generating.
- Open a reputable QR code generator in a new browser tab. Search for "QR code generator" and pick a well-known one. Most offer a text/URL field, a download button, and an option to choose PNG or SVG format.
- Paste your content and generate. Most sites auto-generate as you type. For a URL, paste the full address including
https://. For Wi-Fi, choose the site's Wi-Fi template if offered, then enter the network name and password. - Download the image. Choose PNG for normal use, or SVG if you want it to stay sharp when resized. Save it to a folder you can find again — Downloads is fine for a quick job.
- Go back to your Excel Online workbook. Click the cell where you want the code to sit (an empty cell with some room around it works best).
- Insert the picture. On the ribbon, open Insert and choose Pictures, then This Device (labels can differ slightly by version, device or region). Browse to your downloaded PNG, select it, and click Insert. The image appears anchored to the sheet.
- Resize and align. Drag a corner handle to resize while keeping the aspect ratio. Never stretch a QR code only horizontally or vertically — distortion is the fastest way to make it unscannable. Leave a clear white border around the code.
- Test it before sharing. Display the sheet on screen and scan the code with a phone camera or a scanner app from a normal viewing distance. Test at the zoom level you expect readers to use.
- Label the code. Put the URL or a short description in the adjacent cell, so people who cannot scan still know where it goes. This also helps you remember what the code contains months later.
- Save and, if needed, share. Excel Online saves automatically. Use Share to give view access; a viewer on a phone can scan the code straight off the screen.
Common Mistakes
- Expecting the code to update with the cell. It will not. The image is a static picture. To change the destination, regenerate it and replace the image.
- Encoding a local file path. Paths like
C:\Users\...only work on your machine. Use a web URL or a shared cloud link instead. - Stretching the image. Non-uniform resizing smears the modules and breaks scanning. Always resize from a corner.
- Low contrast or busy backgrounds. A QR code needs dark modules on a light background. Placing it over a coloured cell fill or behind gridlines can confuse scanners — cover the cells with a white shape or set a white fill first.
- Adding a logo too aggressively. Some generators let you drop a logo in the middle. Keep the logo small and use error correction at a high level, or the code may fail in poor light.
- Downloading a "free trial" PDF. Many generators give you a watermarked or downloadable-only-after-signup file. Choose PNG download directly where possible.
- Printing too small. On a printed sheet, a code smaller than roughly one inch across often fails. Give it more space than you think it needs.
Tips
- Keep the source text in a hidden or nearby cell, so anyone maintaining the sheet can regenerate the code later.
- Use a dynamic QR service if the destination may change. These give you a short redirect URL you control; the printed code stays valid while you update the target behind it. These are often paid, and free tiers can expire — check the terms.
- For a sheet of many codes, generate them in bulk once and insert each image next to its row. Excel Online's Insert > Pictures adds one image per insert, so plan the layout in advance.
- Prefer SVG when available — it scales without blurring and stays crisp in print and at high zoom.
- Name your images meaningfully (
product-page-qr.png) so you can match them to rows later. - Test with more than one phone. A code that scans on yours might fail on an older camera.
Troubleshooting
The image will not insert. Check the file is a normal PNG or JPG and not saved in a format the browser cannot read. Re-download it, then try Insert > Pictures again. If the browser blocks the upload, sign out and back in, or try another browser.
The code does not scan. Re-open the original image on your device — if it scans there, the problem is on-screen presentation: too small, too low contrast, distorted, or covered by cell gridlines or a conditional-format colour. If it does not scan even at full size, rebuild it with the URL copied fresh from the address bar.
The scanned link goes to the wrong page. The encoded text is wrong. Regenerate from the corrected cell, delete the old image, and insert the new one.
It looks blurry when printed. Replace the PNG with an SVG, or regenerate at a larger size. Excel Online prints the image at the resolution it carries; small PNGs blur at print size.
A colleague sees a broken image. Images inserted from your device travel with the workbook when shared, but if the file was converted or downloaded and re-uploaded, the image can be lost. Re-insert it and re-share the saved copy.
You want the code to change automatically. That is not possible with a plain image. The honest options are a dynamic redirect service, or regenerating and replacing the image yourself.
Frequently Asked Questions
Does Excel Online have a built-in QR code tool?
No. There is no native QR generator in Excel for the web. You generate the code externally and insert it as an image.
Can a QR code in a cell update when the cell text changes?
No. The image is static. Changing the cell does nothing to the code; you must create a new image and swap it in.
Will the code work when the workbook is viewed on a phone?
Yes, once the image is embedded and saved. A viewer can scan it off the screen with another device's camera. Scanning an on-screen code with the same phone is awkward, so a second device or a printed copy is better.
What is the smallest size I can make it?
There is no universal figure — it depends on the amount of data encoded and the scanner. Practically, keep it comfortably large, around an inch or more when printed, and test before you distribute.
Can I generate QR codes for a whole column of rows at once?
Excel Online has no batch generator. Use an external bulk tool, download the images, and insert them one by one, or use a paid dynamic service that hosts the codes for you.
Are free QR generators safe to use?
Reputable ones are, but never encode passwords, personal data or internal links into a third-party generator you do not trust — treat the encoded content as public. For anything sensitive, check the site's privacy terms and prefer a service that generates the image in your browser without uploading the content.