Skip to content

How to Mail Merge from a Word Template

Convert your existing Word mail merge templates into PDF templates and generate personalized documents with data from Excel or CSV. Step-by-step migration guide.

Complete Guide: Converting a Word Mail Merge Template to PDF

If you have an existing Word mail merge template — letters, invoices, contracts, certificates, or any other document — you can convert it to a PDF template and generate personalized documents with Mergram. This guide walks you through the entire process.

The migration is straightforward: export your Word template as PDF, upload it to Mergram along with your spreadsheet, place data fields visually, and generate. Your existing data files work as-is.


Before You Start

What you need

What you don’t need

Your data file stays the same

You do not need to change your spreadsheet. The same Excel or CSV file you use with Word mail merge works directly with Mergram — same columns, same rows, same format.


Step 1 — Prepare Your Word Template

Open your .docx mail merge template in Microsoft Word. Before exporting to PDF, make these adjustments:

Remove merge fields

Delete all Word merge fields («FirstName», «LastName», «Address», etc.) from the document. You’ll replace them with Mergram’s visual field placement in a later step.

Keep all static content

Leave everything that doesn’t change between documents:

Verify the layout

Scroll through the entire document and confirm:

Design freedom

You’re not limited to Word for designing templates. Use Canva, Google Docs, InDesign, or any tool you prefer. Export as PDF, then upload to Mergram. The editor shows your template exactly as the final output will appear.


Step 2 — Export as PDF

Export your Word document as a PDF file:

The PDF preserves your layout exactly — fonts, images, tables, headers, footers, and spacing are locked in. This PDF becomes your merge template.

PDF is the final format

Unlike Word mail merge (which produces .docx files that then need manual PDF conversion), Mergram generates PDF output directly. Your template is already in the correct format — no conversion step needed at merge time.


Step 3 — Upload to Mergram

  1. Go to Mergram’s editor and sign in
  2. Click Upload PDF and select the PDF you exported
  3. The editor displays your template with accurate rendering — this is exactly what the final output looks like

For multi-page templates, all pages are loaded and available for field placement.


Step 4 — Upload Your Data

Upload the same spreadsheet you’ve been using with Word mail merge:

  1. Click Upload Excel in the data sidebar
  2. Select your .xlsx, .xls, .ods, or .csv file
  3. Mergram reads the first row as column headers and displays them in the sidebar
FormatExtensionNotes
Excel.xlsx, .xls, .odsMulti-sheet workbooks — select the correct tab
CSV.csv, .tsvComma, semicolon, or tab delimiters
Google SheetsLive connectionPull latest data on every merge

Google Sheets alternative

If your data lives in Google Sheets, connect it directly — no file download needed. Select any spreadsheet from your Google Drive and choose the worksheet tab. The data refreshes automatically on each merge.


Step 5 — Place Data Fields

Drag column headers from the sidebar directly onto your PDF pages. This replaces Word’s merge field insertion with a visual, drag-and-drop editor.

Field placement

Field types

Each field can render data in different ways:

TypeUse ForExample
TextNames, addresses, amounts, dates, any textJohn Smith, $1,250.00
QR CodeURLs, verification links, unique IDshttps://example.com/verify/12345
BarcodeOrder IDs, SKUs, tracking numbersORD-2025-00421
ImagePhotos, logos, product imagesjohn_photo.jpg

Word can't do images, QR, or barcodes

These three field types are not available in Word mail merge. They’re built into Mergram — no plugins or add-ons needed. Add a QR code for document verification, a barcode for warehouse scanning, or a photo for personalized ID cards.

Field styling

Select any text field to configure:

Multi-page support

For multi-page templates, navigate between pages and place fields on any page. Each page is rendered with the correct data for the current row.


Step 6 — Preview & Verify

Before generating the full batch, preview individual records:

  1. Use the row selector to pick any row from your spreadsheet
  2. The editor renders the merged output in real time — directly in your browser
  3. Check alignment, text overflow, font sizes, and data accuracy
  4. Switch between rows to verify different data lengths and formats

Preview before you merge

Always preview a few rows before generating the full batch — especially the longest and shortest data values. This helps you spot text overflow or layout issues early.


Step 7 — Generate Your Documents

When you’re satisfied with the preview, choose your output:

Individual PDFs (ZIP download)

Each row generates a separate PDF. All files are packaged as a ZIP download. Ideal for distributing individual documents to different recipients or departments.

Combined PDF

All rows are concatenated into a single PDF document. Useful when you need one file containing all records — for example, a packet of signed contracts or a batch of certificates.

Email delivery

Each PDF is sent as a personalized email attachment. Connect your SMTP server and configure:

Supported SMTP providers:

ProviderTypical Use
GmailSmall teams, testing
SendGridHigh-volume transactional email
MailgunDeveloper-friendly, API-based
Amazon SESCost-effective at scale
Any custom SMTPSelf-hosted mail servers

Word mail merge email vs Mergram email

Word’s email merge requires Outlook and a MAPI profile configured on the same machine. It’s fragile and doesn’t work on servers or shared machines. Mergram connects directly to any SMTP server via the cloud — no Outlook, no desktop dependency.


Advanced Features

Per-recipient password protection

Encrypt each generated PDF with a unique password derived from your data:

Custom filename templates

Control the output filename for each PDF:

Google Sheets live data

Instead of uploading a file, connect a Google Sheet directly. The data refreshes on every merge — no re-uploading updated spreadsheets.


Troubleshooting Common Migration Issues

Layout looks different in the PDF than in Word: This is a font rendering difference. Word uses screen rendering which differs from PDF rendering. The PDF version is the accurate one — it will look the same for every recipient. If the difference is significant, adjust spacing in Word and re-export.

Text overflows the field box: Increase the field box size in Mergram’s editor, or reduce the font size. The real-time preview shows overflow — use it to find the right dimensions before generating.

Special characters not rendering correctly: Make sure your CSV file uses UTF-8 encoding. Excel files (.xlsx) handle Unicode natively. If you see garbled text, re-save your CSV with UTF-8 encoding.

Multi-sheet Excel file loads the wrong tab: Use the sheet picker in the data sidebar to select the correct worksheet tab.

Old Word template uses mail merge rules (IF, SKIP, NEXT): Mergram doesn’t replicate Word’s merge rules. Instead, use spreadsheet formulas to pre-compute conditional values in a dedicated column. For example, =IF(C2="Premium", "Premium Member", "") in a column, then map that column to a field.

Word merge rules are not supported

Word mail merge supports rule fields like IF, SKIP, NEXT, and FILLIN. These are Word-specific features with no direct equivalent in PDF mail merge. Pre-compute all conditional logic in your spreadsheet before uploading.


Get Started

Upload your exported PDF template and spreadsheet to Mergram’s editor to start generating personalized documents. The free plan lets you test the full workflow — place fields, preview, and generate small batches. Upgrade when you’re ready for high-volume processing.

Step-by-step guide

  1. 1

    Export Word Template as PDF

    Open your .docx template in Word, remove merge fields, and export as PDF. Layout, fonts, and images are preserved.

  2. 2

    Upload PDF to Mergram

    Upload the exported PDF file to the Mergram editor. The template displays exactly as the final output will look.

  3. 3

    Upload Your Spreadsheet

    Upload the same Excel or CSV file used with Word mail merge. Column headers are read automatically.

  4. 4

    Place Fields & Preview

    Drag column headers onto the PDF pages. Preview any row in real time, then generate.

  5. 5

    Generate or Email

    Generate individual PDFs, a combined file, or send each PDF as a personalized email attachment.

Frequently asked questions

Can I use my existing Word mail merge template with Mergram?
Yes. Export your Word document as PDF (File → Save As → PDF), then upload it to Mergram along with your spreadsheet. Place data fields visually using the drag-and-drop editor — your layout stays pixel-perfect.
Will my formatting be preserved when converting Word to PDF?
Yes. PDF export preserves all fonts, images, tables, headers, footers, and layout. What you see in Word is what you get in the PDF — and that PDF becomes your merge template.
Can I still use my Excel data file?
Absolutely. Upload the same Excel (.xlsx, .xls) or CSV file you've been using with Word mail merge. Mergram reads column headers and rows the same way.
What if my Word template has merge fields already placed?
Remove the Word merge fields before exporting to PDF. In Mergram, you'll place new fields visually — drag column headers from the sidebar onto the exact position on the PDF. This gives you more control than Word's field placement.
Does Mergram support the same types of documents as Word mail merge?
Yes — letters, invoices, certificates, contracts, labels, envelopes, and any other document type. Plus, Mergram supports features Word can't do: dynamic images, QR codes, barcodes, per-recipient password encryption, and direct email delivery.
Can I generate the merged output as Word documents?
Mergram generates PDF output only. PDF is the standard format for business documents — it renders identically on every device and doesn't depend on installed fonts or software. If recipients need to edit the document, PDF isn't the right format for that use case.

Ready to try it yourself?

Start merging PDFs in minutes — free account required, no credit card needed.

Related articles