Excel QR Code Generator Formula: One Cell or Bulk
The Excel QR code generator formula is =IMAGE("https://quickchart.io/qr?text="&ENCODEURL(A2)): paste it next to a column of links and drag down. Here is the one-cell version, the bulk drag-down, the add-in for older Excel, and how to get the codes onto paper.
The Excel QR code generator formula is
=IMAGE("https://quickchart.io/qr?text=" & ENCODEURL(A2)): paste it next to a column of links and drag down. TheIMAGE()function draws each code in its cell. Drag it down and you have five hundred. Same catch as every Office method: each code is static, frozen the moment you print. Here's the formula, the fallback for older Excel, and what to do when the printed codes still need to work after a URL change.Microsoft 365 or Excel 2024 for Windows: one formula, bulk codes. Older Excel: QR4Office add-in. Codes that have to survive a URL change: generate them dynamic first, then paste them in.
The Excel QR code generator formula uses IMAGE() to draw each code from a free QR API. Put a link in A2 and this in B2:
=IMAGE("https://quickchart.io/qr?text=" & ENCODEURL(A2))
It works in Excel for Microsoft 365 and Excel 2024 for Windows. Excel for Mac and Excel for the web have IMAGE() but not ENCODEURL(), which Microsoft's ENCODEURL reference says is not available there. On those, a link with no spaces, &, # or + works without it: =IMAGE("https://quickchart.io/qr?text=" & A2). One code first, then five hundred, then the part Excel can't do.
QR code generator Excel formula: one cell, one code
You need a version of Excel with the IMAGE function: Excel for Microsoft 365, Excel 2024, or Excel for the web (Microsoft's IMAGE reference lists the Mac and mobile apps too, but ENCODEURL is not available on Mac or the web). Put a link in A2, then in B2:
=IMAGE("https://quickchart.io/qr?text=" & ENCODEURL(A2))
Press Enter. The code renders in the cell. Three pieces:
1/ ENCODEURL(A2) escapes your link so characters like &, # and spaces don't break the request. Excel for Mac and Excel for the web don't have it (see above).
2/ The QuickChart QR API returns a PNG of the code.
3/ IMAGE() displays it in the cell, sized to fit.
Scan it with your phone right off the screen. It's a real code, not a preview.
The drag-down: five hundred codes before lunch
This is where Excel beats a point-and-click generator. Column A holds your links: one per asset tag, name badge, ticket, table card. Select B2, grab the fill handle, and drag down.
Every row computes its own code. Five rows or five hundred, same gesture.
Tune the output with API parameters:
# Bigger, with high error correction (survives print wear):
=IMAGE("https://quickchart.io/qr?text="&ENCODEURL(A2)&"&ecLevel=H&size=400")
# Brand-colored modules (keep them dark on light):
=IMAGE("https://quickchart.io/qr?text="&ENCODEURL(A2)&"&dark=003D5C&size=300")
What the formula depends on
Excel doesn't draw these codes. Every cell asks QuickChart's servers for an image, so the sheet depends on that service:
- The free tier has limits. QuickChart's free Community plan allows 1,000 QR codes a month and 60 a minute, with no SLA, per its QR API pricing page. A drag-down longer than 60 rows asks for more than a minute's allowance at once. A serialized run bigger than 1,000 needs a paid QuickChart plan or a different pipeline (more below).
- No service, no codes. If QuickChart is down, or your network blocks quickchart.io, the codes don't render. Excel shows
#CONNECT!when it can't reach the server, so paste the results as pictures once they load. - The image is static. Each picture encodes the link itself. Nothing can be edited after printing, and no scans are counted.
- These are screen-resolution PNGs. Fine for handouts and badges. For a poster or anything glossy, export real files from a generator instead. The print sizing guide has the numbers.
Older Excel: the add-in fallback
Photo: Lukas on Pexels
=IMAGE(...) returning #NAME? means your Excel predates the function. Excel 2021, 2019, 2016, and earlier don't have it. The fix is QR4Office, the free official add-in: Insert ▸ Get Add-ins ▸ search "QR4Office" ▸ Add, then open it from Insert ▸ My Add-ins, paste your link, and insert.
One code at a time. No drag-down. The add-in has no idea your column of links exists. Right tool for a single code in a worksheet, wrong tool for a hundred. (The full add-in walkthrough, including Word and PowerPoint, lives in the Microsoft Office guide.)
And if you've heard about the Ctrl+F9 field-code trick (DISPLAYBARCODE "your-link" QR): that's Word. Field codes don't exist in Excel, so there's nothing to activate. In Excel the formula does the same job, and you can drag it down.
Getting codes out of the grid
A code in a cell is a live formula result, not a file. To use it anywhere else:
1/ Into Word (handouts, badge sheets): copy the cell, then in Word use Paste Special ▸ Picture. The code freezes as an image and survives the trip.
2/ A handout template: lay out a two-column table. Name in one column, pasted code in the other. Word's mail-merge handles the names; Excel's drag-down handled the codes. Between them you've built a badge printer out of office software.
3/ As standalone files: Excel can't export a cell image cleanly. If you need actual PNG/SVG files per code (print vendors usually do), generate them in a real QR tool instead of screenshotting cells one at a time.
The catch: every one of them is frozen
Same limit as every Office method. The formula writes each URL permanently into its pattern. Static codes. After the badges are printed:
→ URL changes → all five hundred badges now point at a 404 → No scan data → you'll never know if anyone used them → Fixing it → a full reprint, plus the laminating
For links that will never move (a homepage on letterhead), static is the right call and you're done. For event badges, campaign cards, anything with a shelf life, you want the pattern pointing at a redirect you control. Unsure which you need? Static vs dynamic, two-minute read.
Old way (formula only) vs. new way (codes you can steer)
Old way. The sheet bakes the final URL into every code:
→ One wrong link in column A → reprint run → Destination moves after print day → reprint run → "How many people scanned badge 47?" → nobody knows
New way. The sheet feeds a generator that makes editable codes:
- Export your link column as a CSV.
- Upload it to QRBliss bulk generation (Business plan). Every row becomes a dynamic code with its own short link, exported as real PNG/SVG files.
- Or for a handful of codes: make up to 15 dynamic codes free at QRBliss with a free account, and paste them into the sheet like any image.
- URL changes later? Edit the redirect. The printed run keeps working. Nothing gets relaminated.
Scan counts by code, country, and device come with it. "Did the badges work?" becomes a column you can sort.
Excel vs. QRBliss
Excel =IMAGE() formula | QRBliss | |
|---|---|---|
| Cost | Free (needs M365 or Excel 2024 for Windows) | Free tier |
| Bulk from a column/CSV | Yes (drag down) | Yes (CSV upload, Business) |
| Output | In-cell PNG (screen-res) | Real PNG / SVG files |
| Editable after print | No | Yes, dynamic |
| Scan analytics | None | Counts, country, device |
| Logo + brand colors in the code | Color params only | Yes, auto-palette |
| Works offline once placed | After paste-as-picture | Yes (files) |
The recommendation
- A few codes in a worksheet, links that won't change? The formula. Two minutes, zero installs.
- Excel 2021 or older? QR4Office add-in, one code at a time.
- A print run that has to survive a URL change, or that you want to measure? Generate dynamic codes at QRBliss (15 free), or feed the whole CSV to bulk generation and place the exported files.
📌 What's shifted from 2024 to 2026: the formula used to be a power-user trick. Now IMAGE() is in Microsoft 365 and Excel 2024, so making five hundred codes is easy. The hard part is still what they point at after the print run ships.
For the full tool field, see the 7 best free QR code generators.
Drag the formula 📊 → Generate dynamic (free) → Paste, print, keep control ♻️
Frequently asked questions
How do I generate a QR code in Excel?
Why does my Excel QR formula show a #NAME? or #VALUE! error?
Can Excel make QR codes without an internet connection?
Does Ctrl+F9 make QR codes in Excel like it does in Word?
Can Excel generate QR codes for free?
Are QR codes made in Excel static or dynamic?
Create your first QR code.
Free tier. No signup required to start. Dynamic codes included.
Make a QR →