QR Hub
BlogScan a codePricing
Englishen
Sign inStart free
← All articles

How to add a QR code to a Word document or Excel sheet

Put a QR code in Word or Excel that still scans when printed. Two easy ways for Word, one for Excel, plus size, quiet zone and file-type tips.

QR Hub team · 19 November 2026 · 7 min read

Also in:PortuguêsTürkçe

You have a flyer, a price list, a worksheet or a certificate in Word or Excel, and you want people to open a link from the printed page. The answer is a QR code — and adding one takes about two minutes.

The easiest way is to make the code as an image, then insert it like any other picture. Word on Windows also has a hidden built-in option. This guide shows both, plus the Excel steps and the small details that decide whether the code scans once it's on paper.

The quick answer

  1. Make your QR code for free on QR Hub and download it as SVG (or PNG).
  2. In Word or Excel, go to Insert → Pictures → This Device, pick the file and click Insert.
  3. Resize it by dragging a corner handle, keep a white border around it, and test a printed copy with your phone.

The rest of this post explains each step and the problems to avoid.

Step 1: Make the QR code image

  1. Open the free link QR code tool on QR Hub.
  2. Paste the link people should open: your website, a Google Form, a menu, a shared PDF.
  3. If you like, add a frame with a short call to action, such as "Scan to register" or "Scan for the price list". People scan more when they know what they'll get.
  4. Keep the code dark on a light background.
  5. Download the file.

Make this QR now

SVG or PNG? Choose SVG if you can. An SVG is a vector image, so it stays sharp at any size. Microsoft says SVG files can be inserted in Word, Excel, PowerPoint and Outlook for Microsoft 365, and resized "without any loss of image quality" (Microsoft Support). If you have an older Office version, or the SVG option doesn't appear, use PNG and download it large, then make it smaller in the document — never stretch a small PNG up.

Use a short link where you can. A QR code stores every character, so a shorter link gives a simpler code with bigger squares that scans faster and can be printed smaller.

Step 2: Add the QR code to a Word document

  1. Click where the code should go.
  2. Go to Insert → Pictures → This Device, choose your QR file and click Insert (Microsoft Support).
  3. To resize, click the code and drag a corner handle. Corners keep it square; the side handles squash it and can make it unreadable.
  4. To place it freely (for example, in the bottom corner of a flyer), click the picture and choose a text-wrapping option other than In Line with Text. Then you can drag it anywhere on the page.

Tip for a letterhead or every page: double-click the top or bottom margin to open the header or footer, then insert the picture there. It will repeat on each page.

Another way in Word: the built-in barcode field (Windows)

Word for Windows can draw a QR code itself with a field code called DisplayBarcode. Microsoft says it is supported in the Windows desktop app only (Microsoft Support).

  1. Click where you want the code.
  2. Press Ctrl + F9 to insert the special field brackets. Typing the brackets on the keyboard won't work.
  3. Inside the brackets, type: DisplayBarcode "https://example.com" QR \q 3 (with your own link between the quotes).
  4. Right-click the field and choose Toggle Field Codes to see the code.

\q 3 sets the highest error-correction level (the valid values are 0–3), and \s sets the size as a percentage from 10 to 1000 (Microsoft Support).

This is handy if you can't download files at work. The downsides: it doesn't work in Word for Mac or the web, it has no frame or call to action, and the code may show differently if someone opens the file in another app. For a document you'll share or send to a print shop, an inserted image is safer.

Step 3: Add the QR code to an Excel sheet

Excel works the same way, with one useful extra.

  • Floating over the sheet: go to Insert → Pictures, choose the file and insert it. Drag it where you want it and resize from a corner.
  • Inside a cell: in Excel for Microsoft 365 and Excel 2024, go to Insert → Illustrations → Pictures → Place in Cell, then choose This Device (Microsoft Support). The code then moves and sorts with its row — useful for a product list or an inventory sheet with one code per item.

Two things to know about Place in Cell: if you insert several pictures at once, Excel puts one in each cell going down the column and overwrites anything already in those cells. And make the row tall and the column wide enough first, because the code shrinks to fit the cell. Microsoft also suggests adding alt text to the picture (right-click → View Alt Text), so screen readers can describe it.

Size and spacing so it scans on paper

  • Leave a white border. The QR standard asks for an empty "quiet zone" of four modules (the small squares) on every side (Keyence). Don't let text, table lines or a background colour touch the code.
  • Don't crop or stretch it. Always resize from a corner and never cut off an edge.
  • Match the size to the distance. A code on a handout read up close can be small; one on a wall poster needs to be much bigger. For a business card, we suggest at least 2.5–3 cm — see Business card QR code.
  • Print one test copy at the real size and scan it with two phones before printing hundreds.

Not sure how to scan without an app? Read How to scan a QR code on any phone without an app.

Saving as PDF

If you send the file to a print shop or by email, save it as a PDF (File → Save As → PDF). The QR code is kept inside the PDF, so it looks the same on every computer. Open the PDF and scan the code from the screen once to be sure.

A printed page you can update later

A normal (static) QR code holds the link itself. If the link changes — a new form, a new price list, a new website — the printed code still opens the old one, and you'd need to reprint.

A dynamic QR code holds a short link on our site instead, and you can change where it points at any time. The printed worksheet or flyer stays the same. A free QR Hub account includes 2 dynamic codes. Read more in Do QR codes expire?

Common problems

  • The code won't scan when printed. It's too small, stretched, or too close to text. Make it bigger, resize from a corner, and add white space around it.
  • It looks blurry. You used a small PNG and made it bigger. Download the SVG, or a larger PNG.
  • The SVG option isn't there. Your Office version may not support SVG. Use a PNG instead.
  • The field code shows text instead of a code. Right-click it and choose Toggle Field Codes, and check you used Ctrl + F9 for the brackets.

A QR code in your document turns a printed page into a shortcut to your site, form or file. Make yours now — it's free and takes about a minute.

Contents

  1. The quick answer
  2. Step 1: Make the QR code image
  3. Step 2: Add the QR code to a Word document
  4. Another way in Word: the built-in barcode field (Windows)
  5. Step 3: Add the QR code to an Excel sheet
  6. Size and spacing so it scans on paper
  7. Saving as PDF
  8. A printed page you can update later
  9. Common problems

Make your QR code now

Free static QR codes with no sign-up and no expiry. Editable codes with scan stats when you need them.

Make this QR now

Related articles

  • What size should a QR code be? A simple print size guide7 min read
  • QR code scams: how to spot a fake code before you scan5 min read
  • Instagram or TikTok QR code: get more followers from your shop, flyer or stand4 min read
QR Hub

Free QR codes for everyone, with codes you can edit after printing.

QR codes

  • Link
  • WhatsApp
  • Wi-Fi
  • Menu
  • Business card
  • Location
  • Song
  • Google reviews
  • Invitation
  • PDF
  • Scan a QR code
PricingBlogTerms of ServicePrivacy PolicyRefundshello@qrhub.shop

© QR Hub

Englishen

Made in Saudi Arabia 🇸🇦