Skip to content

How to Add a QR Code in Word and Google Docs

Ahmad Tayyem, founder of QRLynx.
Founder
· Updated July 6, 2026 · 8 min read · Reviewed by QRLynx product team
A document on a laptop and printed pages with QR codes being scanned by a phone.

Key Takeaway

Add a QR code to Microsoft Word or Google Docs. Choose the right native or pasted-image method, share cloud files safely, and test before printing.

Reviewed: July 2026

Microsoft Word field instructions, Chrome's QR sharing command, Google Drive access controls, and QRLynx plan facts were checked against current official documentation and current product code in July 2026.

To add a QR code in Word for Windows desktop, insert a DisplayBarcode field with Ctrl+F9, enter the destination and QR type, then toggle the field to display the code. In Google Docs, create or download the QR image first, then use Insert, Image to place it in the document.

These are two different jobs: you may want a QR visible inside a document, or a QR that opens the document when scanned. For the second job, create a shareable cloud-file link first, confirm the access level, and encode that link. A QR code does not bypass Google Drive, OneDrive, or organization permissions.

Use a static QR for a destination that is expected to stay fixed. Use a dynamic URL QR when the destination may change after the document is printed or when QRLynx scan analytics are useful. The dynamic code changes the redirect destination, not the permissions on the file it opens.

Choose the method that matches the document task

Choose the method that matches the document task
TaskPractical methodImportant limit
Put one QR inside Word for Windows desktop
Use Word's DisplayBarcode field or insert a downloaded image
DisplayBarcode is supported in Word for Windows desktop
Put one QR inside Word for Mac or Word for the web
Generate the QR elsewhere and insert it as an image
The image can be resized, but its encoded destination stays fixed if it is static
Put one QR inside Google Docs
Create the QR with Chrome, a reviewed add-on, or a QR generator, then insert the image
Chrome's command creates a QR for the current page, not arbitrary unpublished document content
Create unique QRs in a Word mail merge
Use MERGEBARCODE with a URL field in the merge data
Each output QR stores the value supplied for that row
Make a QR that opens a Word or Google document
Encode the file's verified share link
The scanner still needs whatever access the file owner requires
Keep the printed QR while changing where it leads
Create a dynamic URL QR and insert its image
The QR service manages the redirect; the destination service manages file access

Add a QR code in Word for Windows with DisplayBarcode

Microsoft documents this field for Word for Windows desktop.

1

Insert the field

Place the cursor where the QR should appear and press Ctrl+F9. Word inserts the field braces. Do not type the braces yourself, because ordinary braces do not create a field.

2

Enter the QR field code

Inside the field, enter DISPLAYBARCODE followed by the destination in straight quotation marks, then QR. Microsoft's example uses DISPLAYBARCODE "http://www.microsoft.com" QR \q 3. Replace the example address with the exact URL or text you need.

3

Display the barcode

Right-click the field and choose Toggle Field Codes to switch from the field instruction to the QR image. Microsoft notes that invalid data for the chosen barcode type may prevent rendering.

4

Test the finished document

Scan the displayed code, then print one sample and scan the physical page. Confirm the destination, file access, contrast, size, and quiet zone before distributing the document.

Microsoft's current DisplayBarcode documentation applies to Word for Windows desktop. For Word on Mac or Word for the web, use a downloaded QR image rather than promising that the Windows field workflow will render or update there.

Create several QR codes in a Word mail merge

Word also supports the MergeBarcode field. Connect the mail merge to a spreadsheet or other recipient list with a column containing each row's destination. In the document, insert a field such as MERGEBARCODE Link QR \q 3, where Link is the matching merge-column name, then complete and test the merge.

Mail merge creates a different QR from each row's value. It does not make those destinations editable after printing and it does not add QRLynx analytics. Validate the source rows before generating a large batch, keep unique links out of public files when they grant private access, and spot-check several merged outputs rather than only the first page.

How to create a document QR in QRLynx and add it to Google Docs

Create and test the QR in QRLynx, then insert the downloaded image into the document.

1

Prepare the destination

If the QR should open a Google Doc or Drive file, set the intended access level first and copy the final share link. Work or school administrators can restrict external sharing, so confirm the option available to the file owner.

2

Choose the QRLynx QR type and behavior

Choose Website / Link for a Google Doc, Drive file, or webpage. Use a static QR when the shared URL is final. Use a dynamic Website / Link QR when you may need to change the destination after distribution or want eligible redirect analytics.

3

Create, label, and download the QR

Paste the tested share URL into QRLynx. Give the saved code a clear name, keep strong contrast and the quiet zone, and add a short frame label when it helps explain the scan. Download a clean image for the document.

4

Insert the image

In Google Docs, choose Insert, Image, then select the source that contains the downloaded QR. Keep the image square while resizing and avoid cropping the clear margin around the pattern.

5

Test access outside your account

Scan the QR from a signed-out browser or a separate test account when the intended audience should not need your account. A successful scan is not enough if the destination then shows a request-access screen.

Destination checked

Create the QR image for your document

Generate a clear URL QR, download the image, and insert it into Word or Google Docs. Choose dynamic when the destination may change after printing.

Create QR Code The free Starter plan includes 3 active dynamic QR codes, unlimited scans, and three months of analytics.
Sharing a Google document? Open the Google Docs QR guide

Static or dynamic QR for a document?

A static QR stores the final URL or text in the visible pattern. It is suitable when that value is stable. If the page at the same URL changes, the QR still opens that URL. What cannot change is the value encoded in the pattern itself.

A dynamic URL QR stores a managed short link. You can update that link's destination without replacing the QR image in every printed document. QRLynx can also record the scan activity available to the account's plan. A scan shows an interaction with the QR, not proof that someone read the document, submitted a form, or downloaded a file.

The free Starter plan includes 3 active dynamic QR codes, unlimited scans, and three months of analytics. Deeper geographic or device breakdowns and export capabilities depend on plan entitlements. For the full decision, see static versus dynamic QR codes.

A dynamic QR does not repair destination permissions

Changing the redirect can recover from a moved or replaced file, but the new destination must still be accessible to the intended audience. Test both the QR redirect and the final document-access screen after every destination change.

Share a cloud document without exposing the wrong access

Google Drive supports Restricted access, specific people, and, when the account or organization permits it, Anyone with the link. Viewer is usually the appropriate role for a public reference document. Google warns that work or school accounts may not be allowed to share outside their organization.

Do not automatically change every document to Anyone with the link. Review whether the file contains personal, customer, employee, student, financial, or confidential information. If access must stay restricted, say so near the QR and make sure the intended scanners know which account to use.

  • Copy the share link after setting the intended access.
  • Open it in a signed-out window or separate account that matches the audience.
  • Check whether the destination asks for access, sign-in, or a verification code.
  • Use Viewer unless collaboration is required.
  • Remove comments, revision details, or embedded information that should not be public.
  • Retest after moving, replacing, or changing ownership of the file.

Google's official Drive sharing guide explains the available access levels. For a file-specific workflow, use the Google Drive QR guide.

Resize and print the QR without making it unreliable

There is no single correct physical size for every document. Required size depends on the encoded data, print method, viewing distance, camera, lighting, material, contrast, and surrounding design. Use a shorter destination when practical, keep the QR square, and preserve the quiet zone on every side.

  • Resize from a corner so width and height stay proportional.
  • Use dark modules on a light background with strong contrast.
  • Do not place text, borders, or artwork inside the quiet zone.
  • Start with a sufficiently detailed image and avoid repeatedly compressing it.
  • Test a screen copy if the document will be digital.
  • Print one sample on the final paper and at the final scale.
  • Scan with more than one phone from the expected viewing distance.
  • Use the QR code readability checker as a preflight check, then verify the physical result.

QR codes in Word and Google Docs questions

Current answers for document creation, sharing, and testing.

How do I insert a QR code in Microsoft Word?

In Word for Windows desktop, press Ctrl+F9, enter a DisplayBarcode field with the destination and QR type, then right-click and choose Toggle Field Codes. In Word for Mac or Word for the web, create the QR elsewhere and insert it as an image.

What is the correct DisplayBarcode syntax for a QR code?

Microsoft documents the structure as DISPLAYBARCODE followed by the data, the barcode type, and optional switches. Its QR example is DISPLAYBARCODE "http://www.microsoft.com" QR \q 3. Use Ctrl+F9 for the field braces rather than typing them.

Why does DisplayBarcode show text instead of a QR code?

The braces may have been typed instead of inserted as a field, the field may still be showing its instruction, or the supplied data may not meet the barcode type's requirements. Use Ctrl+F9, then right-click the field and choose Toggle Field Codes. Also confirm you are using Word for Windows desktop.

Can Word create different QR codes in a mail merge?

Yes. Use MERGEBARCODE with a merge column that contains the destination for each row. Complete the merge and test several outputs. The generated QRs encode those row values and do not become editable or tracked automatically.

Does Google Docs have a built-in QR code generator?

Google Docs does not provide the same DisplayBarcode field workflow. Chrome can create a QR for the current webpage through More, Cast, save and share, Create QR code. You can download that image and insert it into Docs, use a reviewed Workspace add-on, or create the QR with a separate generator.

How do I make a QR code that opens a Google Doc?

Set the document's intended sharing access, copy its share link, create a URL QR from that link, and test it outside the owner's account. A QR does not make a restricted document public or bypass an organization's sharing policy.

Should I use Anyone with the link for a Google Doc QR?

Only when the document is meant for that audience and contains no information that should remain restricted. Viewer is usually the safer public role. Work or school administrators can disable external sharing, so confirm the available access setting.

Are Word and Chrome QR codes static?

DisplayBarcode and Chrome's downloaded page QR encode the supplied value in the QR pattern. To change that encoded destination after printing, use a managed dynamic URL QR and insert its image into the document.

Can QRLynx track whether someone read my document?

No. A QRLynx dynamic QR can record a scan interaction and the analytics available to the account's plan. It does not prove the person read the document, completed a form, or downloaded the file.

How large should a document QR code be?

Choose size from the actual viewing distance, encoded density, print method, and surrounding design rather than relying on one universal measurement. Preserve the quiet zone and strong contrast, print at final size, and scan the sample with multiple phones.

Finish the destination before formatting the document

Start by deciding whether the QR belongs inside the document or should open the document. Verify the destination and access first. Then choose Word's Windows desktop field, Chrome's page QR, a reviewed add-on, or a pasted static or dynamic QR image.

For a destination that may move, create a URL QR code and use the dynamic option before inserting the image. For many unique rows, review the Sheets and Excel bulk QR guide. In every case, test the actual file access and final printed or digital document before distribution.

Enjoyed this article? Share it!

Ahmad Tayyem, founder of QRLynx.

About the author

Founder of QRLynx, built through Jorbox LLC

Ahmad builds and runs QRLynx end to end: product, engineering, and the original QR research behind these guides. For how we research, test and review these guides, see our testing methodology and editorial policy.

Ready to Create Your Own QR Codes?

Start for free and upgrade as you grow. All plans include dynamic QR codes, analytics, and custom branding.

QRLynx pricing plans

Starter plan details selected

Starter

$0 /month
Free forever
  • 3 Dynamic QR Codes
  • 1 Folder
  • 5 MB per PDF upload
  • AI Insight Summaries
  • 3 Months Analytics
Most Popular

Pro

Best value for campaigns
$14 /month
Billed monthly
  • 300 Dynamic QR Codes
  • 25 Folders
  • 15 MB per PDF upload
  • 2 Years Analytics
  • Country Analytics
  • Password Protection
  • Smart Redirect Rules
  • Access Consent Screens
  • Expiry Rules
  • QR Scheduling
  • Bulk Dynamic QR: 100/batch
  • Instant QR Redirects
  • Full AI Insights
  • SVG / PDF Downloads

Business

For teams and agencies
$29 /month
Billed monthly
  • 1,000 Dynamic QR Codes
  • 100 Folders
  • 25 MB per PDF upload
  • 3 Years Analytics
  • City, Device & Browser Analytics
  • CSV Analytics Export
  • Bulk Dynamic QR: 250/batch
  • Team Management (10 Members)
  • Lead Capture Forms
  • Email Reports
  • Public API Access
  • Instant QR Redirects
  • Full AI Insights
  • Country Analytics
  • Password Protection
  • Smart Redirect Rules
  • Access Consent Screens
  • Expiry Rules
  • QR Scheduling
  • SVG / PDF Downloads

Enterprise

For white-label scale
$99 /month
Billed monthly
  • 5,000 Dynamic QR Codes
  • 500 Folders
  • 50 MB per PDF upload
  • Unlimited Analytics
  • Bulk Dynamic QR: 1,000/batch
  • Team Management (100 Members)
  • White Label Domains
  • Retargeting Pixels
  • Instant QR Redirects
  • Full AI Insights
  • Country Analytics
  • City, Device & Browser Analytics
  • CSV Analytics Export
  • Password Protection
  • Smart Redirect Rules
  • Access Consent Screens
  • Expiry Rules
  • QR Scheduling
  • Lead Capture Forms
  • Email Reports
  • Public API Access
  • SVG / PDF Downloads

Core features included in every plan

(free and paid, no exceptions)
  • Unlimited Static QR Codes
  • QR Pause & Activate
  • Unlimited Scans
  • Dynamic Projects Are Preserved
  • 61 QR Code Types
  • Apple & Google Wallet Passes
  • Custom Logo Upload
  • QR Code Frames
  • No Watermark
  • No Scan Ads
  • JPG, PNG, WEBP & HD Downloads
  • Bulk Static QR (up to 100/batch)

50% off for verified nonprofits, schools & open-source projects: contact us to apply.