← Blog

Guide

How to Create a QR Code in Microsoft Word (Windows, Mac and Web)

November 16, 2026 · 5 min read

A Word document with a QR code placed beside a paragraph, and an Insert panel with a QR code option.

You want a QR code in a Word document: on a flyer, a report cover, a sign-up sheet or a handout. Word can make one, but only in some versions, and the way it does it is well hidden. Here are the three ways to create a QR code in Microsoft Word, which one works on your computer, and how to make sure the code scans once it's printed.

Which method works where

MethodWindowsMacWeb
Word's built-in QR fieldYesNoNo
QR4Office add-inYesNot listedYes
Insert a QR code imageYesYesYes

Microsoft documents the built-in field for Word for Windows only, and the QR4Office listing names Word on Windows, on the web and on iPad, but not Word for Mac. On a Mac, inserting a code as a picture is the reliable way.

Method 1: Word's built-in QR code field (Windows)

Word for Windows can draw QR codes with a field called DisplayBarcode. There is no button for it, but it takes a minute:

  1. Click where you want the code.
  2. Press Ctrl + F9. Word inserts a pair of grey field brackets. (Typing the curly brackets yourself won't work.)
  3. Inside the brackets, type DisplayBarcode "https://example.com" QR \q 3, with your own link in the quotes.
  4. Right-click the field and choose Toggle Field Codes, or press Alt + F9 to switch every field in the document at once. The code appears.

A few optional switches change how the code looks. Add them after QR:

To change the link later, right-click the code, choose Toggle Field Codes, edit the address and toggle it back. Because Microsoft supports this field only in Word for Windows, Mac users trying the same steps often get an error instead of a code. Insert the code as a picture instead if the document will be edited on a Mac.

Method 2: The QR4Office add-in (Windows and web)

QR4Office is a free add-in that puts a QR code panel inside Word:

  1. Go to Insert > Add-ins (or Get Add-ins) and search for QR4Office.
  2. Add it, then open it from the Insert tab.
  3. Enter your link, choose colours and size, and insert the code into the document.

Two things to know. It is made by an independent developer rather than Microsoft, and was last updated in January 2023. And its listing says it can send data over the internet, which matters if the link or document is confidential.

Method 3: Insert a QR code as a picture (works everywhere)

The method that works in every version of Word, Mac included, is to make the code first and insert it as an image. It also gives you the most control over how the code looks:

  1. Make the code with our free QR code generator. It runs in your browser, so the link is never uploaded, and the code never expires. You can choose square or dotted modules, your colours and a logo.
  2. Download it as SVG, which stays sharp at any size. If your version of Word doesn't accept SVG files, download the 2048 px PNG instead.
  3. In Word, choose Insert > Pictures > This Device (on a Mac, Insert > Pictures > Picture from File) and pick the file.

For a PDF you want people to open from the code, put the PDF online first, then make a code for its link. The generator never sees the PDF itself.

Cleandocx cleans up Word and PDF files on your own machine. It fixes formatting set by hand, uneven spacing and headings that end up alone at the bottom of a page, and removes hidden metadata, with no uploads. Join the waitlist →

Barcodes, too

The same field makes ordinary barcodes in Word for Windows. Replace QR with a barcode type and give it the data that type expects. Add \t to print the digits under the bars:

If the data doesn't fit the type, for example letters in an EAN-13, Word shows no barcode.

A different QR code on every page (mail merge)

Making name badges, certificates or letters where each copy needs its own link? Word for Windows can merge QR codes too, with a field called MergeBarcode:

  1. Put the links in a spreadsheet column, for example a column named Link.
  2. In Word, go to Mailings > Start Mail Merge, choose the document type, then Select Recipients > Use an Existing List and pick the spreadsheet.
  3. Click where the code should go, press Ctrl + F9 and type MergeBarcode Link QR \q 3, using your column's name.
  4. Choose Finish & Merge. Each copy gets the code for its own row.

Like DisplayBarcode, this works in Word for Windows. On a Mac, make the codes as images instead.

Make a QR code that opens a Word document

A QR code can't hold a whole document, but it can hold a link to one. Save the document to OneDrive, SharePoint or Google Drive, share it so anyone with the link can view it, and paste that link into the QR code generator. Before you share it, run Word's Inspect Document to remove comments, tracked changes and your name from the file.

Make sure the code scans

A QR code that looks fine on screen can fail on paper. Before you print or send the document:

Will the code expire?

No. All three methods make static QR codes: the link is stored in the pattern itself, so the code works for as long as the link does. Codes that stop working are usually dynamic codes from online generators, which send people through the company's server and can be switched off when a free trial ends. Our generator page explains why some QR codes stop working.

The takeaway

On Windows, Word's hidden DisplayBarcode field makes a QR code in seconds. On a Mac, or when you want dotted modules, your colours or a logo, make the code first and insert it as a picture. Either way, test it on paper before it goes out.