You have a finished Word document such as a contract, letter, or flyer. You want to reuse its layout and text for a mail merge without starting from scratch. A mail merge template is a .docx file that contains field codes for recipient data like names and addresses. This article shows how to convert your existing document into a working mail merge template by adding merge fields and saving it correctly.
Key Takeaways: Converting a Document to a Mail Merge Template
- Mailings > Start Mail Merge > Step-by-Step Mail Merge Wizard: Guides you through selecting the document type and data source without altering your original layout.
- Mailings > Insert Merge Field: Adds placeholders for recipient data such as <
> and <> directly into your existing text. - File > Save As > Word Template (.dotx): Saves the document as a reusable template that retains the merge field layout for future mail merges.
What a Mail Merge Template Is and How It Works
A mail merge template is a Word document that combines fixed content such as a letter body with variable fields that pull data from a data source like an Excel spreadsheet or Outlook contacts. When you run the merge, Word replaces each field code with the actual value from the data source for each recipient. The result is a set of personalized documents.
The template itself can be any .docx or .dotx file. The difference between a regular document and a template is that the template stores the merge connection and field codes. You can create the template from scratch, but converting an existing document saves time because the layout, formatting, and boilerplate text are already in place.
Before you start, decide what data source you will use. The data source must be a table with column headers such as First Name, Last Name, and Address. Each column header becomes a merge field name. You do not need to have the data source open in Excel while you work in Word, but you must know its location.
Steps to Convert an Existing Document Into a Mail Merge Template
The process involves opening your document, connecting it to a data source, inserting merge fields where recipient data should appear, previewing the results, and saving the file as a template. Follow these steps in order.
- Open the existing document
Open the document you want to convert in Word. This can be a contract, letter, envelope, or any document that contains text you want to personalize for each recipient. Review the content and identify the spots where recipient-specific information will go, such as the salutation line or address block. - Start the mail merge process
Go to the Mailings tab. Click Start Mail Merge and choose the document type that matches your document. For a letter, choose Letters. For an envelope, choose Envelopes. For labels, choose Labels. This step tells Word what kind of output you want. It does not change your document content. - Select the data source
Click Select Recipients on the Mailings tab. Choose Use an Existing List. Browse to your Excel file, Access database, or Outlook contacts list. If your data source is an Excel file, select the worksheet that contains the data. A dialog box may appear if the column headers are not in the first row. Adjust the setting so that Word recognizes the headers. - Insert merge fields into the document
Place your cursor where you want the first piece of recipient data to appear. On the Mailings tab, click Insert Merge Field. A list of field names from your data source appears. Click a field name such as First_Name to insert it. The field appears as <>. Repeat this for every data point you need. Common fields include < >, < >, < >, < >, < >, and < >. If you need an address block, use the Address Block button instead of inserting individual fields. - Add the greeting line
Place your cursor where the salutation goes, such as after “Dear”. Click Greeting Line on the Mailings tab. In the dialog box, choose the format such as “Dear Mr. Randall” or “Dear Alex”. Word uses the data source to determine the appropriate greeting for each recipient. Click OK. - Preview the merge results
Click Preview Results on the Mailings tab. Word replaces the field codes with actual data from the first record in your data source. Use the arrow buttons in the Preview group to cycle through recipients. Check that the layout and spacing look correct. If a field is missing data, the preview shows a blank space. Adjust the field positions or add missing fields as needed. - Save the document as a Word template
Click File > Save As. Choose a location. In the Save as type dropdown, select Word Template (.dotx). Give the file a descriptive name such as “Client_Letter_Template.dotx”. Click Save. Saving as a .dotx ensures that the merge fields and data source connection are preserved. You can reuse this template for future mail merges without reinserting the fields.
Common Mistakes When Converting Documents to Mail Merge Templates
Merge fields appear as plain text like { MERGEFIELD First_Name }
If you see field codes instead of <
The data source is not available when you reopen the template
Word stores a reference to the data source file path. If you move the data source to a different folder or rename it, Word cannot find it. Keep the data source file in the same folder as the template or use a network path that does not change. To reconnect a lost data source, open the template, go to Mailings > Select Recipients, and choose the file again.
The document layout breaks after inserting merge fields
Merge fields are inline objects. If the field name is long, it may push text to the next line. Use a smaller font size for the field or insert a space before and after the field to control spacing. For address blocks, use the Address Block dialog to set the format and avoid manual line breaks.
You cannot save a document that is already connected to a data source as a .dotx
Word allows saving a mail merge document as a .dotx template. If you receive an error, close all other instances of Word and ensure the document is not read-only. Save the file to a local drive. If the problem persists, save a copy as .docx first, then open that copy and save as .dotx.
Mail Merge Template vs Regular Document: Key Differences
| Item | Mail Merge Template (.dotx) | Regular Document (.docx) |
|---|---|---|
| Contains merge fields | Yes, field codes like < |
No, only static text |
| Data source connection | Stored in the template | Not stored |
| Reusability | Open and run merge again | Must redo the merge process |
| File extension | .dotx | .docx |
| Default save behavior | Prompts to create a new document | Opens the existing file |
Converting your existing document to a mail merge template gives you a reusable file that keeps your formatting and merge fields intact. After saving the .dotx, you can run the mail merge again with a different data source by clicking Mailings > Select Recipients and choosing a new list. For advanced control, use the Rules button on the Mailings tab to add conditional logic such as “If City equals New York, insert a paragraph.” This lets you create highly personalized documents without editing the template each time.