Skip to content

PDF Mail Merge from Google Sheets

Connect Google Sheets directly to your PDF template for live data mail merge. No file downloads — pull the latest data from your Google account.

What Is PDF Mail Merge from Google Sheets?

PDF mail merge from Google Sheets lets you connect a live Google spreadsheet directly to your PDF template — no file downloads, no manual uploads. Every merge reads the current values in your sheet at that moment, so your documents always reflect the latest data.

This is the fastest workflow when your data lives in Google Sheets and changes frequently. Team members can update the source spreadsheet collaboratively, and the next merge automatically picks up their edits.

Prerequisites


How to Connect Google Sheets to PDF Mail Merge

Step 1 — Upload Your PDF Template

Open the Mergram editor and upload a PDF file from your computer, or import a design from Canva. Your template is the static layout — logos, borders, headings — that stays the same across all generated documents.

Step 2 — Connect Your Google Sheet

In the Data Source tab, select the Google Sheets option. You’ll go through a one-time OAuth flow:

  1. Click Connect Google Sheets
  2. Sign in to your Google account and grant read-only access
  3. Select the spreadsheet from your Google Drive
  4. Choose the worksheet tab (for multi-tab spreadsheets)

Mergram reads the first row as column headers and each subsequent row as one record. The connection is saved to your team — you only authenticate once.

Permissions

Mergram requests read-only access to your Google Sheets. It can view spreadsheet content but cannot modify or delete any data. OAuth tokens are encrypted with AES-256-GCM before storage.

Step 3 — Place Data Fields

Drag column headers from the sidebar onto your PDF pages. Each column becomes a positioned field:

Step 4 — Preview & Generate

Preview any row directly in your browser — no server round-trip needed for single-row preview. When you’re ready, choose your output:

Background workers process up to 100,000 rows with progress tracking.


Why Use Google Sheets Instead of File Upload?

FeatureGoogle SheetsFile Upload (Excel/CSV)
Live data✅ Always reads latest values❌ Static snapshot at upload time
Collaboration✅ Multiple editors in real time❌ One person manages the file
Re-merging✅ No re-upload needed❌ Must upload updated file
Auto-refresh✅ Picks up changes automatically❌ Manual re-upload required
File management✅ No downloads or uploads❌ Download, edit, re-upload cycle
FormatsGoogle Sheets only.xlsx, .xls, .ods, .csv, .tsv
Offline access❌ Requires internet✅ Works with local files

Best of both worlds

You can switch between data sources for the same template. Use Google Sheets for live collaborative data, then switch to an Excel upload when you need offline access or one-time data that lives in a local file.


Live Data & Auto-Refresh

Always-Current Data

When you connect a Google Sheet, Mergram reads the sheet contents at merge time — not at connection time. This means:

There’s no “sync” button or manual refresh step. The data is always live.

Collaborative Editing

Google Sheets supports real-time collaboration. Multiple team members can edit the source spreadsheet simultaneously, and those changes are reflected in subsequent merges. This is particularly useful for:

Re-Merging Without Re-Uploading

The most common workflow with file uploads is: export → upload → merge → realize a value was wrong → fix in spreadsheet → re-export → re-upload → re-merge.

With Google Sheets, that cycle becomes: fix the cell → re-merge. No export, no upload, no file management.

Saved templates

When you save a template with a Google Sheets data source, the connection is saved too. Open the template later, and your Google Sheet is still connected — just click merge.


Google Sheets Workflow Tips

Spreadsheet Setup

Follow these guidelines for best results:

  1. First row = headers — Use clear, descriptive column names (e.g., Client Name, Invoice Number)
  2. Data starts from row 2 — Each row is one record to merge
  3. One sheet per purpose — Use separate tabs for different merge types (invoices, certificates, etc.)
  4. Avoid merged cells — They can cause column misalignment during parsing
  5. Use data validation — Dropdown lists and date pickers ensure consistent data entry across collaborators

Sharing & Permissions

For team workflows, share the Google Sheet with collaborators using Google’s built-in sharing. Mergram only needs the account that connected the sheet to have access — collaborators don’t need Mergram accounts to edit the source data.

When to Use Google Sheets vs. Excel Upload

Use Google Sheets when:

Use Excel upload when:


Best Practices

  1. Use a dedicated sheet tab — Keep merge data in its own tab, separate from calculations or notes
  2. Lock the header row — Use Google Sheets’ “Protect range” feature to prevent accidental edits to column names
  3. Share with edit access carefully — Use Google’s commenting or suggestion modes for review before changes go live
  4. Preview before bulk merge — Check 2–3 rows in the browser preview to verify field placement
  5. Save your template — Saved templates remember the Google Sheets connection, so you can re-merge in one click

Get Started

Connect your Google Sheet to a PDF template and generate personalized documents in minutes. No downloads, no file management — just live data flowing into your templates.

Try it free: mergram.com/new

Prefer to start with a file? See PDF Mail Merge from Excel or PDF Mail Merge from CSV.

Step-by-step guide

  1. 1

    Upload Your PDF Template

    Upload a PDF file or import a Canva design. This is your static layout that stays the same across all generated documents.

  2. 2

    Connect Google Sheets

    In the Data Source tab, click Google Sheets. Authenticate with your Google account, pick a spreadsheet, and select the worksheet tab.

  3. 3

    Place Data Fields

    Drag column headers from the sidebar onto your PDF. Choose rendering types — text, QR code, barcode, or image.

  4. 4

    Preview & Generate

    Preview any row in your browser, then generate — individual PDFs, combined PDF, or email delivery. Data is read live from your sheet.

Frequently asked questions

How do I connect Google Sheets to a PDF mail merge?
In the Mergram editor, go to the Data Source tab and click the Google Sheets option. You'll authenticate with your Google account via OAuth, then pick a spreadsheet and worksheet tab. No file download required — data is pulled directly from Google.
Does the merge use live data from Google Sheets?
Yes. Every merge reads the current values in your Google Sheet at the time of generation. If a teammate updates a cell between merges, the next run automatically picks up the new value — no re-uploading needed.
Can multiple team members collaborate on the source data?
Absolutely. Google Sheets supports real-time collaboration. Any edits your team makes to the connected spreadsheet are reflected the next time you run a merge. This is ideal for shared data sources like event attendee lists or client databases.
What permissions does Mergram need for Google Sheets?
Mergram requests read-only access to your Google Sheets via OAuth. It can view the spreadsheets you select but cannot modify them. The connection is encrypted and stored securely.
Can I re-merge with updated data without re-uploading?
Yes. Since the data source is a live Google Sheet, you can re-run a merge at any time and it will pull the latest values. This is the key advantage over file uploads — no manual re-upload step.
How many rows can I merge from a Google Sheet?
Up to 100,000 rows in a single merge job, the same limit as Excel and CSV file uploads. Browser-side preview uses a single row for instant feedback.

Ready to try it yourself?

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

Related articles