How to Add a QR Code in Microsoft Word (Insert, Size, Wrap and Print)

Microsoft Word is still where a lot of flyers, handouts, forms, menus, resumes and event programs are made, so it is a natural place to want a QR code. Word doesn't have an obvious "QR code" button on the ribbon, but you don't need one. The simplest method works in every version: make the QR code as an image, then insert it like any picture. Desktop Word also has a lesser-known field code that can draw a QR code for you. This guide covers both, plus how to size, position and test the code so it scans reliably.

The short answer

  1. Make your QR code in the generator above and download it as a PNG (or SVG if your Word version supports it).
  2. In Word, click where you want the code and choose Insert → Pictures → This Device.
  3. Resize it from a corner handle so it stays square, and set Wrap Text to place it where you want.
  4. Keep a clear white margin around the code.
  5. Print a test page and scan it with a phone before printing copies.

Make a free QR code for a link, WiFi or contact card — generated in your browser.

Open the free QR code generator →

Step 1: Make the QR code image

Decide what the code should do: open a website, show a PDF, join WiFi, save a contact or open a form. Enter that in the generator, then:

Test the code on your screen with your phone before you put it in the document.

Step 2: Insert the QR code into Word

  1. Click in the document where you want the code.
  2. Go to Insert → Pictures → This Device (on a Mac, Insert → Pictures → Picture from File).
  3. Choose your QR code image and click Insert.

In Word for the web, the same option is under Insert → Picture → This Device. Menu names can vary slightly between versions, but "Insert" and "Pictures" are always the place to start.

Step 3: Size it correctly

Click the image and drag a corner handle, not a side handle. Side handles stretch the image and can distort the code.

For an exact size, select the image and use the Picture Format tab, where you can type a height and width. Make sure Lock aspect ratio is on (in Size options) so height and width stay equal.

How big should it be? It depends on scanning distance. A code on a handout read at arm's length can be fairly small; one on a poster across a room must be much bigger. Our QR code size for print and minimum QR code size guides help you choose, and the same rule applies in Word: when in doubt, go a bit bigger.

Step 4: Position it with text wrapping

By default, Word places a picture "In Line with Text," which treats it like a large character and can make positioning awkward. To move it freely:

  1. Select the image.
  2. Click the Layout Options icon next to it, or go to Picture Format → Wrap Text.
  3. Choose a wrapping style (see below).

To put a QR code in the same place on every page, such as a footer, double-click the footer area and insert the image there.

Step 5: Keep the white margin (quiet zone)

QR codes need a clear border of empty space around them, called the quiet zone. If text, a border or a colored background touches the code, scanners may struggle. Leave white space on all four sides, and if you place the code on a colored shape, put a white box behind it first. See QR code quiet zone for details.

Step 6: Stop Word from blurring the image

Word may compress pictures to reduce file size, which can soften the edges of a QR code. In desktop Word for Windows:

  1. Go to File → Options → Advanced.
  2. Under Image Size and Quality, tick Do not compress images in file and set a high default resolution.

You can also select the image and choose Picture Format → Compress Pictures, then make sure compression is not applied at a low resolution. Options differ slightly on Mac and in Word for the web.

Optional: Make the QR image clickable

If people will read the document on screen, make the code a link too:

  1. Select the QR image.
  2. Press Ctrl+K (Command+K on a Mac) or choose Insert → Link.
  3. Paste the same URL that the QR code points to.

Readers can then click instead of scanning. It is also good practice to print the short web address under the code for anyone who can't scan.

Advanced: The DISPLAYBARCODE field (desktop Word)

Desktop versions of Word include a field code called DISPLAYBARCODE that can draw a QR code directly in the document. It is less familiar and less forgiving than inserting an image, but it is handy for templates and mail merge.

  1. Press Ctrl+F9 to insert field braces { }. (Typing braces on the keyboard won't work.)
  2. Inside the braces, type something like: DISPLAYBARCODE "https://example.com" QR \q 3
  3. Right-click the field and choose Update Field, or press F9. Press Alt+F9 to toggle between the code and the result.

The \q switch sets the error correction level (0 to 3, from lowest to highest). Other switches can adjust scale and colors; check Microsoft's documentation for your version. Because field behavior varies between versions and platforms, always scan the result. Not sure what error correction does? See QR code error correction levels.

In mail merge, a merge field can be placed inside a DISPLAYBARCODE field so each letter or label gets its own code. This is powerful but fiddly; test a few merged records before printing the whole batch.

Save, share and print

If the code won't scan, the usual culprits are a blurry image, low contrast, a missing quiet zone or a code that is too small. Our QR code not scanning guide walks through the fixes.

Static or dynamic?

The free generator above makes static QR codes: the destination is built into the code itself. That's ideal for documents, because the code never expires. The trade-off is that you can't change the destination later, so if a link might change, point the code at a page you control. See static vs dynamic QR codes.

Frequently asked questions

Does Microsoft Word have a QR code generator?

Desktop Word has a DISPLAYBARCODE field code that can create a QR code, but there is no simple ribbon button. Most people find it easier to make the code as an image and insert it.

Why is my QR code blurry in Word?

Usually because the image was small and stretched larger, or because Word compressed it. Insert a larger PNG or an SVG, resize from the corner, and turn off image compression.

Can I change the color of a QR code in Word?

You can, but it is safer to choose colors when you create the code. Keep a dark code on a light background with strong contrast.

Will the QR code still work if I save the document as a PDF?

Yes, as long as the image stays sharp and has its white margin. Scan the PDF on screen and on a test print to be sure.

How do I put a QR code on labels in Word?

Insert the QR image into the first label and copy it to the others, or use mail merge with the DISPLAYBARCODE field to give each label its own code. Test-print one sheet on plain paper before using label sheets.

Make a free QR code for a link, WiFi or contact card — generated in your browser.

Open the free QR code generator →

Keep reading