Skip to content

PDF Mail Merge from Excel

Merge data from Excel spreadsheets (.xlsx, .xls, .ods) into PDF templates. Bulk-generate invoices, certificates, and contracts from your Excel data.

What Is PDF Mail Merge from Excel?

PDF mail merge from Excel is the process of filling a PDF template with data from an Excel spreadsheet — generating one personalized PDF document per row. It works like traditional Word mail merge, but outputs PDF files instead of printed letters.

If you have an Excel file with client names, invoice amounts, dates, or any structured data, you can merge those values into a PDF template automatically. One template + one spreadsheet = hundreds of individualized documents.

Prerequisites


How to Mail Merge from Excel

Step 1 — Upload Your PDF Template

Open the Mergram editor and upload a PDF file from your computer. You can also import a design directly from Canva via the built-in integration. Your template defines the static layout — logos, borders, headings, and any content that stays the same across all generated documents.

Accepted template formats:

Step 2 — Upload Your Excel File

In the Data Source tab, upload your Excel file. Mergram supports three spreadsheet formats:

FormatExtensionSource
Excel Workbook.xlsxMicrosoft Office 2007+
Legacy Excel.xlsMicrosoft Office 97–2003
OpenDocument.odsLibreOffice, OpenOffice, Google Docs export

The first row of your spreadsheet is treated as column headers. Each subsequent row is one record to merge.

Multi-sheet workbooks

If your workbook has multiple tabs, Mergram shows a sheet picker dropdown in the editor. Select the worksheet that contains your data before placing fields.

Step 3 — Place Data Fields on Your PDF

Drag column headers from the sidebar directly onto your PDF pages. Each column becomes a positioned field you can resize, align, and configure:

Position fields freely on any page. Snap-to-center guides help with alignment.

Form field auto-detection

If your PDF has fillable AcroForm fields, Mergram auto-detects them and suggests column mappings using fuzzy matching — no manual placement needed. Review and adjust mappings before generating.

Step 4 — Preview with Real Data

Use the row selector to preview any row rendered directly in your browser. This runs client-side — no server round-trip, no data upload for preview. Check alignment, font sizes, and data formatting before committing to a full run.

Step 5 — Generate & Download

Choose your output format:

Background workers process up to 100,000 rows with real-time progress tracking, pause, and resume support.


Excel Data Tips

Spreadsheet Structure

Your Excel file should follow a simple tabular structure:

RowPurpose
Row 1Column headers (field names)
Row 2+Data records (one row per document)

Column header best practices:

Formula Handling

Mergram reads computed cell values from your Excel file, not the underlying formulas. If your spreadsheet uses formulas (e.g., =A2+B2), make sure the calculated results are the values you want merged.

Formula-heavy spreadsheets

If your workflow depends on complex formulas, use Paste as Values in Excel before uploading. This ensures Mergram reads the final computed values, not placeholder cells or broken references.

Data Cleaning Checklist

Before uploading your Excel file, verify:

  1. No merged cells — Merged cells can cause column misalignment
  2. No blank header rows — The first row must contain your column names
  3. Consistent data types — Dates should be in a standard format, numbers without text prefixes
  4. No leading/trailing spaces — Extra spaces in headers may create duplicate-looking field names
  5. Remove empty columns — Unnecessary columns add clutter to the field sidebar

Encoding and Character Support

Mergram supports full Unicode in cell values — accented characters (é, ñ, ü), CJK scripts (写真, テスト, 한글), Cyrillic (фото), Vietnamese tone marks (tài), and emoji. Your data displays correctly without any special configuration.


Common Use Cases

Use CaseTypical Excel ColumnsOutput
Bulk invoicesClient, Amount, Due Date, Invoice #Individual PDFs (ZIP)
Graduation certificatesName, Course, Date, GradeCombined PDF
Employee ID cardsName, Department, Photo, ID NumberIndividual PDFs (ZIP)
Shipping labelsAddress, City, ZIP, Tracking #Combined PDF
ContractsParty A, Party B, Date, TermsEncrypted individual PDFs

Best Practices

  1. Use .xlsx format when possible — It’s the most widely supported and handles large datasets efficiently
  2. Keep a clean header row — Clear, unique column names make field mapping straightforward
  3. Preview before bulk generating — Check at least 2–3 rows to verify formatting and alignment
  4. Use filename templates — Name output files dynamically: Invoice_[[InvoiceNumber]]_[[ClientName]].pdf
  5. Save your template — After placing fields, save the template so you can re-run merges with updated data without re-placing fields

Get Started

Upload your PDF template and Excel file to Mergram, drag column headers onto your template, and generate personalized documents in minutes. No coding, no desktop software — everything runs in your browser.

Try it free: mergram.com/new

New to mail merge? Start with the free demo — no sign-up required.

Step-by-step guide

  1. 1

    Upload Your PDF Template

    Upload a PDF file (or import a Canva design). This is your static layout — logos, headers, borders, and any content that stays the same across all documents.

  2. 2

    Upload Your Excel File

    Drag your .xlsx, .xls, or .ods file into the editor. Mergram reads the first row as column headers. For multi-sheet workbooks, pick the right tab from the sheet selector.

  3. 3

    Place Data Fields

    Drag column headers from the sidebar onto your PDF pages. Each header becomes a positioned field — choose text, QR code, barcode, or image rendering.

  4. 4

    Preview with Real Data

    Use the row selector to preview any row in your browser. Check alignment, font sizes, and data formatting before generating.

  5. 5

    Generate & Download

    Choose your output — individual PDFs (ZIP), a combined PDF, or email delivery. Background workers process up to 100,000 rows with real-time progress.

Frequently asked questions

How do I mail merge a PDF from an Excel file?
Upload your PDF template to Mergram, then upload your Excel file (.xlsx, .xls, or .ods). The first row becomes column headers. Drag the columns onto your PDF as fields, preview with real data, and generate — one PDF per row.
What Excel file formats does Mergram support?
Mergram supports .xlsx (Office 2007+), .xls (Office 97–2003), and .ods (LibreOffice, OpenOffice). All formats use the first row as column headers.
Can I use a specific sheet from a multi-sheet workbook?
Yes. When you upload a multi-sheet Excel workbook, Mergram shows a sheet picker dropdown in the editor. Select the worksheet tab you want to use as your data source.
How many rows can I process from an Excel file?
Up to 100,000 rows in a single merge job. Browser-side preview uses a single row for instant feedback, while bulk processing runs on background workers with progress tracking.
Does Mergram preserve Excel formatting and formulas?
Mergram reads the computed cell values from your Excel file — not the formulas or formatting. Make sure your spreadsheet contains the final values you want merged. Use 'Paste as Values' if your cells depend on formulas.
Can I preview the merge before generating all PDFs?
Yes. Use the row selector to preview any individual row rendered directly in your browser. This lets you verify alignment, fonts, and data formatting before committing to a full bulk generation.

Ready to try it yourself?

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

Related articles