How to Create a QR Code in Word
You can learn how to create a qr code in word using a Word-native field code (no add-ins), then place it anywhere in your document like any other element. If you need an easier UI or many personalized codes, you can also use Office Add-ins from AppSource or Mail Merge with the MergeBarcode field code.
Microsoft Word can generate a scannable QR code directly inside the document, which is handy when you want everything to stay in one file. The main trick is using Word field braces correctly and rendering the field so it displays as a QR code (not as text).
TLDR: Use Word’s DisplayBarcode field code for a quick, no-add-in QR code, and render it by toggling field codes. Use an Office Add-in from AppSource if you prefer a form-based interface. Use Mail Merge with MergeBarcode when you need one QR code per row in a data source.
Quick answer: create a QR code in Word without add-ins
How do I create a QR code in Word without an add-in? Use the built-in DisplayBarcode field code, inserted with real field braces (not typed braces), then toggle field results so the QR code renders.
- Click where you want the QR code to appear in Microsoft Word.
- Press Ctrl+F9 to insert Word field braces. This creates a pair of braces you can type inside.
- Inside the braces, type the field code (example below).
- Click on the field, then render it by using Toggle Field Codes or Ctrl+Shift+F9 (this varies by setup).
- Test-scan the rendered QR code with a phone camera before you share or print the document.
Copy/paste-ready example (remember: insert braces with Ctrl+F9, do not type them):
{DisplayBarcode "http://www.microsoft.com" QR \q 3}
Decision flow: which method fits your document?
- If you need one QR code and want no add-ins, use
DisplayBarcode. - If you want a simpler interface and do not want to touch field codes, use an Office Add-in (from AppSource).
- If you need many QR codes that change per person, label, or row, use Mail Merge +
MergeBarcode.
Method comparison (single vs bulk)
| Method | Best for | Setup effort | Output behavior in Word |
|---|---|---|---|
| DisplayBarcode field code | One-off QR codes without add-ins | Low, but requires field code typing | This varies by tool. Often behaves like a field result that can update and re-render |
| Office Add-ins (AppSource) | Quick insertion with a UI | Medium | This varies by add-in. Usually inserts a graphic-like object |
| Mail Merge + MergeBarcode | Many personalized QR codes | Medium to high | Generates one QR per record during merge |
Takeaway: Choose DisplayBarcode for speed, add-ins for convenience, and Mail Merge when your QR content comes from a list.
Before you start: what makes a QR code scannable
A QR code is a two-dimensional barcode standard covered by ISO/IEC 18004. It was invented in 1994 by Masahiro Hara at Denso Wave. Most of the time, scanning issues in documents are not about the data. They are about layout.
Finder patterns and why they matter
A QR code has three finder patterns, the large corner squares. They help the camera locate and align the code quickly, even if the code is rotated or slightly skewed. If you cover or crowd these corners with nearby shapes, lines, or text, scans can fail.
The quiet zone (the whitespace that protects scanning)
The quiet zone is the clear whitespace border around the QR code. In a Word document, this is where layout causes trouble most often, especially when a code is placed:
- Too close to a table border
- On top of a background image or watermark
- Next to dense text, shapes, or other barcodes
Keep the area around the QR code uncluttered, and avoid wrapping text tightly around it.
Conceptual visual: what not to block
[ Finder pattern ] [ Data modules ] [ Finder pattern ]
(Corner) (Body) (Corner)
Quiet zone = clear whitespace around the entire outer edge.
If content touches the edge, the quiet zone is reduced and scanning can fail.
This varies by tool. QR error correction can help a damaged code scan, but it cannot fix a code that is visually “merged” into surrounding page elements. QR codes also come in different versions (from Version 1 at 21×21 modules up to Version 40 at 177×177 modules), which affects density and tolerance to printing and resizing.
Method 1 (built-in): DisplayBarcode field code in Microsoft Word
This method is Word-first. You type a field code, render it, then place it like any other element in the layout. It is a good fit when you want to keep everything inside Microsoft Word and you only need a few QR codes.
What is the DisplayBarcode field code for a QR code in Word? It is a Word field that can output barcodes, including QR, using a structure like {DisplayBarcode "value" QR ...switches...}.
This varies by tool. One Word-native way to generate QR codes is the built-in DisplayBarcode field code, which renders as a QR symbol when you toggle from field code view to field result view.
Why typing curly braces does not work
Why doesn’t typing curly braces work for Word field codes? Word requires special field braces that are inserted by Word itself (for example with Ctrl+F9), and typed { and } are treated as plain characters.
This varies by tool. In Word, you insert field code brackets with Ctrl+F9. If you type braces from the keyboard, Word will not treat the content as a field, so nothing will render.
Step-by-step: insert, render, and test
-
Place your cursor where the QR code should appear (common spots are headers, footers, cover pages, or next to a short instruction line).
-
Press Ctrl+F9 to insert the field braces.
-
Click between the braces and type your field, such as:
DisplayBarcode "http://www.microsoft.com" QR \q 3Your field should look like this in the document (with real Word field braces):
{DisplayBarcode "http://www.microsoft.com" QR \q 3} -
Render the QR code by toggling field display. This varies by tool. You can use Toggle Field Codes, or in some setups use Ctrl+Shift+F9.
-
Scan the rendered QR code with a phone camera to confirm it opens the right destination before you distribute the file.
Screenshot-style visual: before vs after toggling
Field code view (before render)
{DisplayBarcode "http://www.microsoft.com" QR \q 3}
Field result view (after render)
[ QR CODE SYMBOL APPEARS HERE ]
Placement tip: Put the QR code where it will not be squeezed by last-minute edits. For example, a tightly packed table cell or a text box with aggressive wrapping can reduce the quiet zone.
DisplayBarcode syntax and switches you can use (QR)
DisplayBarcode supports switches that control how the QR code is generated and shown. Keep changes simple at first, then adjust only what you need for layout and scan reliability.
How do I change QR error correction in Word? This varies by tool. In Word’s DisplayBarcode, the \q switch accepts values 0 to 3 to change the QR error correction setting.
At a standard level, QR codes have four error correction levels L, M, Q, and H, which are often described as restoring roughly 7%, 15%, 25%, and 30% of codewords, respectively. Word’s numeric \q setting is a Word-specific control and may not use those letter labels directly.
Copy/paste-ready examples
Basic QR:
{DisplayBarcode "Example1" QR}
With error correction and scaling:
{DisplayBarcode "Example1" QR \q 3 \s 200}
Show text under the QR code:
{DisplayBarcode "Example1" QR \t}
DisplayBarcode and MergeBarcode cheat sheet
| Switch or field | What it changes | Example |
|---|---|---|
DisplayBarcode ... QR | Creates a single QR code from a fixed value | {DisplayBarcode "Example1" QR} |
\q (error correction) | This varies by tool. Sets QR error correction using values 0 to 3 | {DisplayBarcode "Example1" QR \q 3} |
\s (scaling) | This varies by tool. Sets scaling from 10 to 1000 (percentage points) | {DisplayBarcode "Example1" QR \s 200} |
\t (show text) | Shows the encoded text under the code | {DisplayBarcode "Example1" QR \t} |
\f (foreground color) | This varies by tool. Sets foreground color (hex RGB) | {DisplayBarcode "Example1" QR \f 000000} |
\b (background color) | This varies by tool. Sets background color (hex RGB) | {DisplayBarcode "Example1" QR \b FFFFFF} |
\r (rotation) | This varies by tool. Rotates using values 0 to 3 | {DisplayBarcode "Example1" QR \r 1} |
MergeBarcode ... QR | Creates QR codes per-record in Mail Merge | {MergeBarcode Project_Link QR} |
Takeaway: Start with just QR, then add \q or \s if you need more tolerance or a better fit in the layout.
Limitations in Word and a workaround if you need a true image
This varies by tool. In Word, the DisplayBarcode result may behave like a character-based object rather than a normal picture. That can limit how you resize, crop, or apply picture formatting compared to an inserted image.
If you need a static graphic that behaves like a typical image, there is a practical workaround described in research: copy the rendered QR code and use Paste Special as an image in PowerPoint, then bring it back into Word.
Workaround steps: convert the rendered QR to an image-like object
- Render the QR code in Word so you can see the QR symbol (not the field code text).
- Copy the rendered QR code.
- Open PowerPoint and use Paste Special to paste it as an image.
- Copy the pasted image from PowerPoint.
- Paste it back into Word where you need it.
Note: After conversion, the QR code will no longer update as a field. If you need to change the destination later, you will need to regenerate and replace the image.
Method 2: add a QR code to a Word document with Office Add-ins (AppSource)
If you prefer not to deal with field codes, Office Add-ins can provide a form where you enter a URL or text, then insert a QR code into the document.
How to add qr code to word document using this path usually means installing an add-in once, then using its panel to generate and insert the code.
This varies by tool. An alternative method is installing Office Add-ins from Microsoft’s AppSource marketplace through Word.
Steps: find and insert via Word’s add-ins
- Go to the Insert tab in Microsoft Word.
- Choose Get Add-ins.
- Search for a QR-related add-in and add it (the exact names and options vary by add-in).
- Open the add-in, enter the content you want encoded, and generate and insert the code into the document.
- Test-scan the inserted code, then adjust placement to preserve the quiet zone.
Pros and cons vs DisplayBarcode
Pros:
- Usually easier than typing field codes.
- Often inserts something that behaves more like a typical graphic object.
Cons:
- This varies by tool. Add-ins differ in features and how they render in the document.
- You may still need to manage placement and whitespace to keep scanning reliable.
Method 3 (bulk): generate multiple QR codes with Mail Merge + MergeBarcode
Use this when you need many QR codes that differ per row, such as attendee handouts, asset labels, or personalized letters. The idea is simple: your data source has a column of values, and Word creates a unique QR code for each record during the merge.
How can I generate multiple QR codes in Word from Excel? Use Excel (or another spreadsheet) as the Mail Merge data source, then insert a MergeBarcode field that references the column name so each row produces its own QR code.
This varies by tool. For bulk or personalized codes, Word can use Mail Merge with the MergeBarcode field code, for example {MergeBarcode Project_Link QR}.
What your data source needs
- A spreadsheet table with a header row.
- One column that holds the QR content (often a URL, an ID, or a short text string).
- A clean column name you can reference in Word (example:
Project_Link).
Copy/paste-ready MergeBarcode example
{MergeBarcode Project_Link QR}
High-level steps: Mail Merge + QR per record
- Prepare your spreadsheet and confirm the column name that contains your QR content (for example,
Project_Link). - In Word, start Mail Merge and select your data source.
- Place the cursor where the QR code should appear in the template.
- Insert a MergeBarcode field using Word field braces (Ctrl+F9), then reference your column name:
{MergeBarcode Project_Link QR}
- Complete the merge so each output document or label gets a QR code generated from its own row.
Outcome: Each merged record produces a different QR code, based on the value in the referenced column.
Troubleshooting: common issues when QR codes won’t render or scan
Most failures fall into two buckets: Word field mechanics (nothing renders), or layout/scanning issues (it renders but will not scan). Use this checklist to isolate the cause.
If the QR code will not render in Word
- Confirm you inserted field braces with Ctrl+F9, not typed
{and}. - Confirm you are not viewing field codes when you expect a QR image (use Toggle Field Codes).
- This varies by tool. If you used Ctrl+Shift+F9, remember it can stop the field from behaving dynamically, depending on setup.
- Check for small syntax errors:
- Missing quotes around text that includes special characters.
DisplayBarcodeorMergeBarcodemisspelled.QRmissing from the field.
If it renders but scanning fails
- Confirm the content is correct, especially for URLs or IDs.
- Ensure there is clear whitespace around the QR code (quiet zone).
- Move it away from visual clutter like borders, shapes, and table gridlines.
- Avoid shrinking it until it becomes too dense to capture cleanly on a camera.
Quick checks (do these before you send or print)
- Scan the QR code with a phone camera after rendering.
- Confirm you inserted field braces with Ctrl+F9.
- Ensure there’s clear whitespace around the QR code (quiet zone).
- If using mail merge, confirm the column name matches the data source field.
Test from the final format
A QR code can scan on screen but fail after export or printing if the quiet zone is reduced or the code becomes blurry. Test-scan from the final artifact you will distribute (Word, exported file, or printout), and verify the destination content before sharing the document, especially when the QR encodes a URL.