Skip to main content

Kutools for Office β€” One Suite. Five Tools. Get More Done.

How to create a QR code in a Word document?

Author Xiaoyang Last modified
Text are converted to QR codes

Creating QR codes in Microsoft Word can be useful for embedding links, personal info, or scannable content directly in your documents. This guide introduces two methods to generate QR codes in Word and shows how to batch-generate them using Mail Merge.

Create a QR code in Word

Create multiple QR codes in Word with Mail Merge


Video: Create a QR code in Microsoft Word


Create a QR code in Word

This section introduces two simple methods for creating QR codes in Microsoft Word, allowing you to effortlessly insert QR codes into your documents.

Create QR code in a Word by using Field codes

Microsoft Word allows you to insert QR codes directly using field codes. Follow the steps below to create a QR code:

  1. Click where you want to insert the QR code.
  2. Press Ctrl + F9 to insert curly brackets {}. (It's necessary to use this key combination because manually typing curly brackets will not work correctly.)
    Curly brackets are inserted
  3. Within the curly brackets, type the following field code:
    DISPLAYBARCODE "http://www.extendoffice.com" QR \q 3 \s 100 \u
    The field code is pasted into the curly brackets
    Explanation of parameters:
    • http://www.extendoffice.com: The URL or data to encode.
    • QR: Specifies that the barcode is a QR code.
    • \q 3: Sets the error correction level to 3 (high).
    • \s 100: Defines the size of the QR code as 100x100 pixels.
    • \u: Ensures the data is treated as Unicode.
  4. After typing the field code, right-click the field and choose "Toggle Field Codes". The QR code will be displayed instantly.
    Field code with 'Toggle Field Codes' selected from the right-click menu, displaying the QR code immediately after
 

Create QR code in a Word by using Kutools for Word

Enhance your Microsoft Word documents with the advanced capabilities of Kutools for Word! Not only does this powerful add-in allow you to effortlessly insert QR codes into your documents, but it also offers the unique ability to customize these codes by adding logos directly within them. Whether you're aiming to brand your QR codes for business purposes or add a personal touch for private documents, Kutools makes it simple. Plus, you can conveniently save these QR codes as images, making it easy to use them across various platforms and media.

Kutools for Word, equipped with AI πŸ€–, offers over 100 handy features to simplify your tasks.
  1. Click where you want to insert the QR code, then go to "Kutools" > "Barcode" > "QR Code".
    QR Code command on the Kutools tab on the ribbon
  2. In the "Insert QR Code" dialog box, do the following:
    1. Select the QR code type from the "Type" dropdown list and set the size.
    2. Enter the data you want to encode into the "QR Code Data" box.
    3. If you want to insert a logo, check "Generate Logo QR code" and select your desired logo.
      Insert QR Code dialog box
  3. Click "Insert". The QR code will be inserted into your document.
    QR code is inserted into the document
Kutools for Word is the ultimate Word add-in that streamlines your work and boosts your document processing skills. Get It Now!

Create multiple QR codes in Word with Mail Merge feature

Creating multiple QR codes in a Microsoft Word document can streamline information sharing and enhance the functionality of business documents, event flyers, and more. By leveraging Word's Mail Merge feature along with QR code generation, you can efficiently produce personalized QR codes in bulk. This guide provides a detailed overview of how to use the Mail Merge feature in Word to create multiple QR codes simultaneously.

Step 1: Prepare the data you need

  1. Create the data in an Excel workbook that you want to insert QR codes for in the Word document. Once done, save and close the Excel file.
    Data information in an Excel workbook

    Note: When preparing your Excel data for Mail Merge, make sure the column that contains the QR code data (such as URLs, serial numbers, or contact info) has a clear and simple header, like "URL" or "Code". Avoid special characters or spaces in the header name to prevent merge errors in Word.

  2. Create a basic layout in the Word document.
    Data information in a Word document

Step 2: Apply the Mail Merge feature in Word

  1. Open the Word document where you want to insert the QR code. Then go to "Mailings" > "Select Recipients" > "Use an Existing List".
    Use an Existing List on the Mailing tab on the ribbon
  2. In the Select Data Source window, select the Excel file that contains the information you want to use.
    Select Data Source window
  3. Click "Open", then select the sheet that contains your data in the Select Table dialog box and click "OK".
    Select Table dialog box
  4. In the Word document, go to "Rules" > "Next Record" under the "Mailings" tab to insert a next record rule before each label.
    'Rules > Next Record' selected under the Mailing tab to insert the next record rule before each product label
  5. Click where you want to insert the QR code. Press Ctrl + F9 to insert a pair of field braces, and type this between them: MERGEBARCODE URL QR.
    Curly brackets are inserted
    Arrow
    The field code is pasted into the curly brackets

    Note: "URL" is the column header from the Excel file that you want to create the QR codes based on. You should change it to your actual column name.

  6. Right-click this field code and select "Update Field" from the context menu.
    Update Field option on the context menu
  7. Repeat steps 6 and 7 to insert all the necessary field codes.
    All field codes are inserted
  8. Click "Preview Results" under the "Mailings" tab to display all field codes as QR codes.
    Word document with 'Preview Results' selected under the Mailing tab, showing all field codes displayed as QR codes

Tip: You can also change the size and color of the QR codes. Please follow these steps:

  1. Right-click the QR code and choose "Edit Barcode".
    Edit Barcode option on the context menu
  2. In the "Select a Field and a Barcode Type" dialog box, click the "Advanced" button. Then, in the "Advanced option" dialog box, specify the size and color you need.
    Select a Field and a Barcode Type dialog box with the Advanced button highlighted, and the Advanced option dialog box open, showing size and color options
  3. Click "OK" > "OK" to close the dialogs. The QR code will be formatted as needed.
    The QR code is formatted

Related Articles:

  • How to insert text to the margin of the Word document?
  • As we all know, we can only type the text in the edit area of the Word document. But, sometimes, you may want to insert some text on the margin of the Word document as following screenshot shown. How could you insert text to the margin of the Word quickly and easily?

Best Office Productivity Tools

Kutools for Word - Elevate Your Word Experience with Over 100 Remarkable Features!

πŸ€– Kutools AI Features: AI Assistant / Real-Time Assistant / Super Polish (Preserve Format) / Super Translate (Preserve Format) / AI Redaction / AI Proofread...

πŸ“˜ Document Mastery: Split Pages / Merge Documents / Export Selection in Various Formats (PDF/TXT/DOC/HTML...) / Batch Convert to PDF...

✏ Contents Editing: Batch Find and Replace across Multiple Files / Resize All Pictures / Transpose Table Rows and Columns / Convert Table to Text...

🧹 Effortless Clean: Sweap away Extra Spaces / Section Breaks / Text Boxes / Hyperlinks / For more removing tools, head to the Remove group...

βž• Creative Inserts: Insert Thousand Separators / Check Boxes / Radio Buttons / QR Code / Barcode / Multiple Pictures / Discover more in the Insert group...

πŸ” Precision Selections: Pinpoint Specific Pages / Tables / Shapes / Heading Paragraphs / Enhance navigation with more Select features...

⭐ Star Enhancements: Navigate to Any Location / Auto-Insert Repetitive Text / Toggle Between Document Windows / 11 Conversion Tools...

🌍 Supports 40+ Languages: Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Kutools and Kutools Plus tabs on the Word Ribbon
πŸ‘‰ Want to try these features? Download Kutools for Word now! πŸš€
 

✨ Kutools for Office – One Installation, Five Powerful Tools!

Includes Office Tab Pro Β· Kutools for Excel Β· Kutools for Outlook Β· Kutools for Word Β· Kutools for PowerPoint

πŸ“¦ Get all 5 tools in one suite | πŸ”— Seamless integration with Microsoft Office | ⚑ Save time and boost productivity instantly

Best Office Productivity Tools

Kutools for Word - 100+ Tools for Word