Add a QR Code in Microsoft Word & Google Docs (Free Methods)

Key Takeaway
Add a QR code in Microsoft Word and Google Docs the free native way — plus when the built-in DisplayBarcode code bites you (static, Windows-only, untrackable) and when a dynamic, trackable QR is better.
To add a QR code in Microsoft Word for Windows, type a URL, select it, and use the DisplayBarcode field code with Ctrl+F9 to generate a static QR image. In Google Docs, use Chrome's built-in Create QR code feature or a QR add-on, then paste the image into your document. Both native methods are free and work in seconds, but the codes they produce are static, uneditable, and cannot track scans.
This guide does two things most articles skip. First, it walks the complete free native workflow inside Word and Google Docs, including bulk QR codes by mail merge. Then it tells you honestly when that free static code will bite you, and when a dynamic, trackable code is the smarter choice.
Two things people mean by a QR code in Word or Docs
When someone says they want a QR code in a document, they usually mean one of two distinct tasks. Knowing which one you have saves real frustration later.
The first task is generating the QR image itself. You want a working code that points somewhere useful, like a website, a form, or a file.
The second task is placing that image cleanly into your Word or Google Docs page so it prints sharp and sits where you want it.
Word for Windows can do both natively with its field-code engine. Google Docs handles task one through Chrome or an add-on, then you paste the image for task two.
The audience here is enormous. Microsoft reported 89.0 million Microsoft 365 Consumer subscribers as of its FY2025 fourth quarter, and Google Workspace has reached around 3 billion monthly active users. Demand on the scanning side is real too, with eMarketer projecting US smartphone QR scanners rising to 99.5 million in 2025, roughly one in three US smartphone owners. If you are new to the topic, our broader how to create a QR code guide covers the fundamentals first.
Insert a QR code in Word the free native way (DisplayBarcode)
Word for Windows has a hidden field code that draws barcodes and QR codes directly on the page. It is called DisplayBarcode, and it ships with Office 2016 and later.
The big advantage is that nothing leaves your document. No website, no upload, no copy and paste from an external tool. Word renders the code itself.
The catch, which we cover in full below, is that this code is permanent. Once the field updates, the QR encodes exactly what you typed, and it cannot be redirected or tracked afterward.
Think of DisplayBarcode as a built-in static generator. It is perfect for a fixed link that will never change, like a stable company homepage or a permanent product page.
If your destination might change later, or you want to know how many people scanned, skip ahead to the dynamic section. For everything else, the field-code method below is genuinely free and takes under a minute.
The Ctrl+F9 field-code method, step by step
Place your cursor and open an empty field
Click where you want the QR code to appear in your Word for Windows document. Press Ctrl+F9 to insert an empty field, which shows as a pair of curly braces with gray shading. Do not type the braces manually, because typed braces are plain text and will never render as a code.
Type the DisplayBarcode syntax
Inside the braces, type the field exactly like this: DISPLAYBARCODE "https://qrlynx.com" QR. The first part is the data you want to encode, wrapped in straight double quotes, and QR tells Word which symbol type to draw. Replace the URL with your own link, form address, or short web address such as a URL QR code destination.
Update the field to render the code
Select the whole field and press F9, or right-click it and choose Update Field. The braces collapse into a black-and-white QR code on the page. If you see the raw text instead, press Alt+F9 to toggle field codes off so the rendered image shows.
Test the code before you print or share
Open your phone camera and scan the rendered QR code on screen. Confirm it opens the exact URL you intended, with no typos in the protocol or domain. Always test before committing the document to print, because a static code cannot be fixed after it leaves your hands.
Bulk QR codes in Word with mail merge (MERGEBARCODE)
Need a different QR code on every page, like unique links for a batch of certificates or name badges? Word has a merge-aware cousin of DisplayBarcode called MERGEBARCODE.
Start a standard mail merge and connect a data source, such as an Excel sheet or CSV with a column of URLs. The Mailings tab walks you through selecting recipients.
Where you want each code, insert a field using Ctrl+F9 and type: MERGEBARCODE then the merge field, then QR. For example, MERGEBARCODE Link QR pulls from a column named Link.
When you finish and complete the merge, Word generates one unique QR code per row of your data. Each printed page carries its own encoded link.
This is the native answer to bulk codes, but it inherits the same limitation. Every generated code is static and untrackable. If you are building merged documents from a spreadsheet, our guide to QR codes from Sheets and Excel covers the trackable alternative.
The catch: DisplayBarcode is Windows-Office-only
Here is the warning almost no tutorial mentions. The native Word field codes are not universal across the Office family.
According to Office Watch, the DisplayBarcode and MERGEBARCODE fields work only in Word for Windows, Office 2016 and later. They do not work in Word for Mac, and they do not work in Word on the web.
If you are a Mac user, the Ctrl+F9 trick will produce an empty field that never renders a code. The same disappointment hits anyone editing in the browser version of Word.
There is also a sharing trap. If you build a document with DisplayBarcode on Windows and a Mac colleague opens it, the code may display but cannot be re-rendered or edited on their machine.
For cross-platform teams, the reliable path is to generate the QR image with an external tool and paste it as a picture. That image renders identically everywhere, on Mac, web, and Windows alike.
Add a QR code in Google Docs
Google Docs has no DisplayBarcode equivalent and no built-in QR menu inside the document editor. You generate the image elsewhere, then insert it as a picture.
The two free routes are Chrome's built-in QR feature and a Google Docs add-on. Both are genuinely free for a basic static code.
Once you have the image, the insertion step is identical in either case. Use Insert, then Image, then Upload from computer, and place the file on your page.
Docs treats the QR as an ordinary image, so all the usual wrap, resize, and alignment controls apply. We cover sizing and print quality in the final section.
Chrome built-in Create QR code, and Google Docs add-ons
The fastest free method needs no add-on at all. Open the page you want to link in Chrome, click the share icon in the address bar, and choose Create QR code.
Chrome instantly draws a QR for the current URL and offers a Download button. Save the PNG, then insert it into your Doc as an image.
This is ideal when your document points to a public web page that already exists. It is also the same code your readers would get by scanning any link, so it is dependable.
The second route is a Google Docs add-on. Open Extensions, then Add-ons, then Get add-ons, and search for a QR code generator inside Google Workspace Marketplace.
A good free add-on lets you type any text or URL and inserts the resulting QR directly into your document. Vet permissions before installing, since add-ons request access to your files.
Both Chrome and add-on codes are static. They encode a fixed value with no tracking. If you want a Google-native form behind the code, see our Google Forms QR codes walkthrough.
Free native QR methods compared
| Method | Where it works | Code type | Best for |
|---|---|---|---|
| Word DisplayBarcode | Word for Windows only | Static, untrackable | A fixed link inside a Windows document |
| Word MERGEBARCODE | Word for Windows only | Static, untrackable | Bulk unique codes from a spreadsheet |
| Chrome Create QR code | Any browser, any OS | Static, untrackable | A public page you paste into Docs or Word |
| Google Docs add-on | Google Docs, any OS | Static, untrackable | Quick in-document insert without leaving Docs |
| Dynamic QR, pasted image | Any document, any OS | Dynamic, trackable | Links that may change or need scan analytics |
Static vs trackable: when the free native code bites you
Every native method above produces a static QR code. The data is baked into the pattern at creation time and can never be changed.
That is fine until something shifts. The URL you encoded gets retired, a campaign link breaks, or the document goes to print and you realize the destination was wrong.
A static code offers no recovery. The only fix is to regenerate the code and reprint or resend every copy.
Static codes also tell you nothing. You cannot see how many people scanned, when, where, or on what device.
As one QR resource explains, static codes are not editable after creation, while dynamic codes let you update the destination and track scans, locations, times, and device types even after printing. That single difference decides which method you should use. For the full breakdown, read our guide to static vs dynamic QR codes.
What you give up with a static native code
| Capability | Static native code | Dynamic trackable code |
|---|---|---|
| Edit destination after printing | No | Yes |
| Scan count and timing | No | Yes |
| Location and device data | No | Yes |
| Fix a wrong or dead link | Reprint everything | Update once |
| Works on Mac and web | Only as a pasted image | Yes, as a pasted image |
| Cost | Free | Free on Starter for 5 codes |
When to use a dynamic, trackable QR instead (and how)
Choose a dynamic code whenever the destination might change, or whenever scan data matters. Marketing flyers, resumes, event handouts, and shared documents all benefit.
The workflow is simple, because there is no Word or Docs plugin to install. You generate a trackable code, download the image, and paste it into your document like any picture.
With the free QRLynx generator, you create a dynamic URL code that resolves through a redirect you control. Point it at your Google Doc, OneDrive file, web page, or form.
The free Starter plan includes 5 dynamic QR codes, unlimited scans, 90-day analytics, logo upload, and PNG-HD download with no watermark. That is enough to put a trackable code on a document at zero cost.
If the link ever changes, you edit the destination once and every printed copy keeps working. You can also track scans to see real engagement. A dynamic code is especially smart on a QR code on a resume, where you may want to swap portfolios over time.
One honest note. There is no QRLynx Word or Office plugin and no public developer API outside the Enterprise tier. The integration is the simple one above: generate, download, paste.
The private-file gotcha: sharing must be anyone with link
This trap catches more people than any field-code error. A QR code that points to a Google Doc or OneDrive file only works if the recipient can actually open that file.
By default, cloud documents are private. A scanner who is not on your access list hits a permission wall, not your content.
Before you generate the code, open the file's sharing settings and change access to Anyone with the link. Set the role to Viewer unless you genuinely want edits.
Copy that shareable link, then build your QR from it. Test by scanning from a phone that is signed out of your account, which mimics a stranger.
If sharing a Drive file is your real goal, see our dedicated guide on how to share a Drive file by QR. If you would rather hand people a self-contained file, exporting to PDF and using a PDF QR code avoids permission walls entirely. QRLynx hosts PDFs up to 5 MB free.
Resizing, placement, and print quality in documents
A QR code is only useful if it scans cleanly off the page. A few placement habits make that reliable.
In Word, click the rendered code or pasted image, then use the corner handles to resize while holding the aspect ratio square. Use the Layout Options button to set text wrapping if you want text to flow around it.
In Google Docs, click the inserted image and pick Wrap text or In line, then drag a corner to size it. Keep the shape square so the code never distorts.
For print, aim for at least one inch square, and larger if the scan distance is more than a foot. Leave a clear quiet zone of white space around all four sides so scanners can find the edges.
Always start from a high-resolution image. A pasted PNG-HD download stays crisp at print size, while a tiny upscaled image turns blurry and fails to scan.
Finally, print one test copy and scan it on paper, not just on screen. Real-world lighting and ink density reveal problems a monitor hides.
Frequently asked questions
Can you make a QR code for a Word document?
Yes. If the document lives online in Google Drive or OneDrive, you create a QR code that points to its shareable link, then paste that image into Word. If you want the document itself behind the code, export it to a PDF and host it, then link to the hosted file.
How do I insert a QR code in Microsoft Word?
In Word for Windows, place your cursor, press Ctrl+F9 for an empty field, and type DISPLAYBARCODE followed by your URL in straight quotes and the word QR. Select the field and press F9 to render the code. On Mac or the web version, generate the image elsewhere and insert it as a picture instead.
What is the DisplayBarcode field code in Word?
DisplayBarcode is a hidden Word field that draws barcodes and QR codes directly on the page from text you supply. It ships with Office 2016 and later on Windows. The output is a static code that encodes exactly what you type and cannot be edited or tracked afterward.
How do I create a QR code in Google Docs?
Google Docs has no built-in QR generator in the document editor, so you create the image first. Use Chrome's Create QR code feature for a public URL, or install a free QR add-on from Google Workspace Marketplace. Then insert the resulting image with Insert, Image, Upload from computer.
Does Google Docs have a built-in QR code generator?
Not inside the Docs editor itself. The closest native option is Chrome's built-in Create QR code button in the browser address bar, which generates a code for the current page. For an in-document insert you use a Google Docs add-on, then place the image like any picture.
How do I make a QR code from a Google Doc shareable link?
Open the Doc, click Share, and set general access to Anyone with the link as a Viewer. Copy that link, then paste it into a QR generator to create the code. Always test the code from a signed-out device, because a code to a private file fails for anyone without access.
Can I create multiple QR codes in Word using mail merge?
Yes. Use the MERGEBARCODE field inside a standard mail merge connected to a spreadsheet of URLs. Insert a field with Ctrl+F9, type MERGEBARCODE, your merge field name, and QR, then complete the merge. Word generates one unique static code per data row, one per page.
Why does my QR code field not show up in Word?
The most common cause is typing the curly braces manually instead of pressing Ctrl+F9, which leaves them as plain text. Another is forgetting to update the field with F9. If you are on Word for Mac or the web, the field codes will not work at all, since DisplayBarcode is Windows-only.
Are QR codes made in Word static or dynamic?
They are always static. The DisplayBarcode and MERGEBARCODE fields bake the data permanently into the QR pattern at the moment the field renders. You cannot change the destination later or collect any scan data, so use them only for links that will never change.
Can I track scans on a QR code added to a Word document?
Not with a native Word code, because static codes carry no tracking. To see scan counts, times, locations, and device types, generate a dynamic code from a tool like the free QRLynx generator and paste the image into Word. The free Starter plan includes 5 dynamic codes with 90-day analytics.
How do I resize a QR code in Word?
Click the rendered code or pasted image and drag a corner handle to resize while keeping it square, so the pattern never distorts. Use Layout Options to control text wrapping. For print, keep it at least one inch square with clear white space around all four sides.
What is the best free QR code add-on for Google Docs?
There is no single official one, so search QR code generator in Google Workspace Marketplace and pick a well-rated free add-on that inserts directly into Docs. Review the permissions it requests before installing. For trackable codes, generate a dynamic QR externally and paste it as an image, since add-ons produce static codes.


