Word tasks · Inserting
Add a QR code or barcode image into a Word document
A QR code on an invoice, a sign or a product label only earns its place if a phone can actually read it off the printed page. This guide covers the three honest routes into Word — generate the code as an image and insert it, use an Office add-in, or use Word's own barcode field — and ends with the step people skip: printing one copy and scanning it before the run goes out.
Route one: generate the code as an image and insert it
This is the route that works in every version of Word, needs nothing installed, and survives sending the document to someone else: the code travels as an ordinary picture.
- Decide exactly what the code should contain. A QR code usually encodes a web address, but it can also hold plain text, a phone number or Wi-Fi details. Copy the exact address or text first — a code generated from a mistyped address scans perfectly and still goes to the wrong place.
- Generate the code with a reputable free generator. Use a well-known QR generator site or an app you already trust, paste in the address or text, and download the code as a PNG image. Prefer a plain black-on-white download at a generous size; decorative colors and logos inside the code make it harder for phones to read.
- For a barcode, generate it the same way. Pick the barcode type your reader or point-of-sale system expects (a retail product barcode and a warehouse label barcode are different formats), enter the number, and download the image. If you do not know which format is expected, ask the people who will scan it before generating anything.
- Insert the image in Word. Click where the code belongs, then choose Insert > Pictures and select the downloaded file. The code lands at the cursor like any other picture.
- Set a sensible size and lock it. Drag a corner handle (never a side handle, which distorts the squares) or use the size boxes on the Picture Format tab. As a working minimum, print a QR code at about 2 cm (roughly 3/4 inch) square or larger, with the white border around the code — the quiet zone — left intact. Do not crop the border away.
Save the downloaded code image alongside the document. If the address ever changes, generate a fresh code and swap the picture — never try to edit the pattern of squares by hand, and never reuse a code from an old document without checking what it actually encodes.
Route two: a Word add-in that builds the code in place
If you make codes often, an add-in puts the generator inside Word. Microsoft's help on viewing, managing and installing add-ins covers the store route used below.
- Open the add-in store from Word. Choose File > Get Add-ins (in some versions, Insert > Get Add-ins or Home > Add-ins), then search the store for a QR code or barcode add-in.
- Read what the add-in asks for before adding it. Check the add-in's description, ratings and privacy notes — it will process whatever text you encode, so pick an established one. Select Add to install it.
- Generate and insert from the add-in pane. Open the add-in from the ribbon or the Home tab, type the address or text, and insert the code it builds. The result is placed in the document as an image or graphic you can move and resize like the downloaded kind.
- Remember the document does not need the add-in afterward. Once the code is in the page as a picture, anyone opening the document sees and prints it without the add-in. Only regenerating a code needs the add-in again.
Route three: Word's built-in barcode field, used modestly
Word has a barcode field of its own. Microsoft's reference for the field codes: DisplayBarcode field documents it: the field draws a barcode from a value in the document, and it was designed mainly for mail-merge work, where each merged record can carry its own code. It is a real route, but a narrower one than the image routes above.
- Click where the barcode belongs. Place the cursor in the document (or in the merge template, if you are merging).
- Insert the field. Choose Insert > Quick Parts > Field. In the Field dialog, choose
DisplayBarcodefrom the field names list. - Give the field its value and type. In the field properties, enter the text or number the barcode should encode and the barcode type the field offers (for example a QR code or a standard linear barcode), then select OK. The barcode appears in the document.
- Update it like any field. If the underlying value changes, right-click the barcode and choose Update Field, or select it and press F9. In a mail merge, finish the merge to a new document so each record's barcode is generated from that record's data.
- Know its limits. The field route depends on the value and type being exactly right, offers fewer barcode formats than a dedicated generator, and can display differently in other programs that open the file. For a one-off label or sign, the image route is simpler and more predictable; keep the field for merge-driven documents where each copy needs a different code.
Size it, print it, scan it
- Print one copy at final size. Screen previews flatter codes. Print the actual page on the actual printer and paper the audience will get.
- Scan the printed code with a phone. Use the phone camera the way a reader would — arm's length, ordinary room light, no zooming in to help it. It should resolve in a second or two and open the right address or show the right text.
- Scan a photocopy too, if copies will circulate. Photocopying softens the squares. If the sign or handout will be copied, test the copy, and make the original code a size larger if the copy struggles.
- Check the destination, not just the scan. A code that scans to the wrong page is worse than one that does not scan at all. Open the result and confirm it lands where you intended.
End state
- The code sits in the document as a crisp black-on-white square or barcode, proportions intact, with its white border intact.
- A printed copy scans quickly with a phone camera at normal distance and opens the correct address, text or number.
- The original generated image (or the field value, for the field route) is saved so the code can be regenerated if the destination changes.
When it goes wrong
- The code scans on screen but not on paper. It is printed too small, the printer blurred it, or the quiet-zone border was cropped. Enlarge it, restore the border, and reprint.
- The barcode looks stretched. It was resized from a side handle. Undo, and resize from a corner so the proportions — which the scanner depends on — stay exact.
- The
DisplayBarcodefield shows an error or the code text instead of a barcode. The field's value or barcode type is missing or not recognized. Reopen the field (right-click > Edit Field) and check both entries, then update the field. - The add-in is missing on another computer. Expected: the code already inserted stays in the document as a picture. Only making a new code needs the add-in installed again.
Related document tasks
-
Add a document property and show it in the text with a field in Word
Add a document property in Word and show it in the text with a field: set Title, Manager or Company under File > Info or Advanced Properties, insert it with Quick Parts > Document Property or a property field, and refresh fields after changes.
-
Insert a 3D model or stock image into a Word document
Insert a 3D model or stock image into a Word document: add a model from the stock library or your own file, rotate it to the view you want with Pan & Zoom, and insert royalty-free stock images, icons and illustrations from the same Insert tab.
-
Add a signature line in Word and sign a Word document
A contract or consent form that says "sign here" should not leave the signer guessing where to sign, or the recipient guessing whether the file was signed at all.
-
Add a SmartArt diagram to a Word document
Add a SmartArt diagram to a Word document: insert a Process, Cycle, Hierarchy or other layout from Insert > SmartArt, type your points in the text pane, add and remove shapes, change levels, and restyle the whole graphic with colors and SmartArt Styles.
Sources
- Microsoft Support, Field codes:
DisplayBarcodefield — — what the field encodes, its barcode types and its mail-merge use. - Microsoft Support, View, manage, and install add-ins for Excel, PowerPoint, and Word — — how to find, add and manage Office add-ins from inside Word.