How to Create a QR Code in Word
Word has no QR code button. The easiest way is to make the code here, download it, and insert it as a picture, which works in every version of Word. Word for Windows also has a hidden field that draws one, covered below.
A static code downloads as a PNG with no account. A dynamic code, which you can re-point after printing, needs a free account.
Method 1 · Every version
Insert a QR Code Image Into Word
This works in Word on Windows, Mac, the web, iPhone and Android, and in Google Docs, because to Word the code is just a picture.
- 1
Make the code
Paste your link into the generator above. Add a logo or colors if you like, but keep the squares dark on a light background. - 2
Download it as a PNG
A static code downloads at up to 1024 pixels with no account, which is plenty for a printed page. - 3
Insert it
In Word, click where the code should go, then choose Insert › Pictures › This Device and pick the file. On the web it is Insert › Picture › This Device. - 4
Size it and test it
Drag a corner, not a side, so it stays square. Make it at least 2 cm (0.8 inch) across, leave a white margin around it, and scan the printed page with a phone before you print a batch.
Word for Microsoft 365 also accepts SVG files, which stay sharp at any size. SVG downloads come with paid plans.
Method 2 · Word for Windows
Word's Hidden QR Code Field: DisplayBarcode
Word for Windows can draw a QR code itself with a field called DisplayBarcode. It is in Word for Microsoft 365, 2024, 2021, 2019 and 2016 on Windows desktop. It is not in Word for Mac or Word on the web.
- 1
Press Ctrl+F9
Word inserts a pair of gray field braces. Typing braces on the keyboard does not work; they have to come from Ctrl+F9. - 2
Type the field inside the braces
Replace the link with yours, keeping the quotes. QR is the barcode type.DISPLAYBARCODE "https://example.com" QR \q 3 - 3
Show the code
Right-click the field and choose Toggle Field Codes. The text turns into a QR code. Toggle again to edit it.
Options you can add
| Switch | What it does |
|---|---|
| \q 0–3 | Error correction. 3 is the highest and survives the most damage. |
| \s 10–1000 | Scale as a percentage. \s 200 doubles the size. |
| \f 0xRRGGBB | Color of the dark squares, for example \f 0x1F3A93. |
| \b 0xRRGGBB | Background color. Keep it much lighter than the squares. |
| \r 0–3 | Rotation in quarter turns. |
Where the field falls short
- Microsoft supports it in Word for Windows only, so on a Mac or on the web the code may not appear.
- If the field is typed wrong, Word may simply draw nothing, with no error to tell you why.
- No logo, no custom shapes, and no way to see how many people scan it.
- The link is fixed. If it changes, every printed copy is out of date.
Method 3 · Mail merge
A Different QR Code on Every Page
For certificates, name badges or letters where each copy needs its own code, Word for Windows has a mail merge version of the field called MergeBarcode.
- 1
Prepare the spreadsheet
One row per page, with a column of links. Name that column something simple, likeURL. - 2
Start the merge
In Word, go to Mailings › Select Recipients › Use an Existing List and choose the spreadsheet. - 3
Insert the field
Press Ctrl+F9 and type the field, using your column name:MERGEBARCODE URL QR \q 3 - 4
Merge
Choose Finish & Merge. Each page gets the code for its own row.
Need the codes as image files instead, or codes you can edit and track? The bulk QR code generator turns a spreadsheet into one code per row, on Plus and up. For spreadsheets themselves, see QR codes in Excel and Google Sheets.
Before you print
Will the Link Ever Change?
A code made by Word, or any static code, has the link built into its pattern. That is fine for a link that will never move. For anything else, such as a menu, an event page or a form, a printed static code goes out of date the day the link does.
A dynamic QR code points to a short link that you can re-point later, so the printed document keeps working, and it counts scans. A free account includes one dynamic code with 100 scans a month. It goes into Word exactly the same way, as a picture.







