Skip to content

How to Mail Merge from Google Sheets

Connect Google Sheets to your PDF template for live data mail merge. No downloads needed — import directly from your Google account.

Mail Merge with Google Sheets — No Downloads Needed

Skip the CSV export. Mergram connects directly to your Google Sheets for a seamless mail merge workflow. This guide covers everything you need to know about linking your Google Sheets data to PDF templates.

Prerequisites

Before you start, ensure you have:

Why Use Google Sheets?

Google Sheets offers several advantages over static file uploads:

Google Sheets vs. Excel upload

Use Google Sheets when your data changes frequently or when multiple people need to edit it. Use Excel/CSV upload for one-time merges with static data. Both produce identical merge results.

Setting Up the Connection

Connecting Google Sheets to Mergram takes just a few clicks:

  1. In the Mergram editor, click “Google Sheets” in the data source panel
  2. Authorize Mergram to access your Google Drive (per-file scope — Mergram can only see spreadsheets you select)
  3. Browse your Google Drive and select the spreadsheet
  4. Choose the sheet tab with your data

Authorization scope

Mergram uses Google’s drive.file scope, which means it can only access spreadsheets you explicitly select. It cannot modify, delete, or share your spreadsheets. You can revoke access at any time from your Google Account security settings.

Preparing Your Google Sheet

For best results, format your spreadsheet with these guidelines:

GuidelineWhy It Matters
First row = headersColumn headers become field labels in the editor
One row per documentEach data row generates one merged PDF
Clean dataRemove empty rows and formatting artifacts
Max 100,000 rowsMergram supports large datasets
No merged cellsMerged cells cause parsing errors
Consistent typesDon’t mix dates and text in the same column

Example of a well-structured sheet:

First NameLast NameEmailCompanyDue Date
AliceChenalice@acme.comAcme Corp2025-03-01
BobMartinezbob@globex.comGlobex Inc2025-03-01
CarolJohnsoncarol@initech.comInitech2025-03-15

Refreshing Data After Edits

One of the key advantages of Google Sheets integration is live data refresh. If you update your Google Sheet after importing:

  1. Click the refresh button in the editor data panel
  2. Mergram re-fetches the latest data from Google Sheets
  3. Your field placements and canvas layout are preserved
  4. New rows appear automatically; removed rows disappear

Column name changes

If you rename or delete a column in Google Sheets, you’ll need to re-map that field in the editor after refreshing. Mergram preserves existing mappings but cannot auto-remap renamed columns.

When to Use Google Sheets vs. Excel Upload

ScenarioRecommended Source
Data changes dailyGoogle Sheets
Multiple editors collaborateGoogle Sheets
One-time merge with static dataExcel/CSV upload
Data comes from a CRM exportCSV upload
Recurring monthly reportsGoogle Sheets
Offline work requiredExcel/CSV upload
Data is in a shared team DriveGoogle Sheets

Using Google Sheets with Email Campaigns

The Google Sheets integration pairs especially well with email campaigns. Since your data stays live in Google Sheets, you can:

  1. Maintain recipient lists in Google Sheets with columns for name, email, and personalization data
  2. Connect the sheet to Mergram and design your PDF template
  3. Set up an email campaign with merge fields in the subject and body
  4. Send personalized PDFs to every recipient — all driven by your Google Sheet

For full email campaign setup, see the email merge guide.

Common Issues and Troubleshooting

“Spreadsheet not found” error: Make sure you authorized access to the correct Google account. If the sheet was shared with you, ensure you have at least Viewer permissions.

Data appears stale after refresh: Google Sheets API caches responses briefly. Wait 30 seconds and try refreshing again. If the issue persists, disconnect and reconnect the sheet.

Special characters garbled: Ensure your Google Sheet uses UTF-8 encoding (default for Google Sheets). If you copied data from an external source, paste it as plain text to avoid encoding issues.

Blank rows appearing: Select only the range with data in your Google Sheet, or delete empty rows below your data. Mergram reads all rows up to the first completely empty row.

Best Practices for Team Workflows

Get Started

Open Mergram’s editor, upload a PDF, and click “Google Sheets” to connect your data. The entire setup takes under two minutes.

Step-by-step guide

  1. 1

    Connect Google Account

    In the Mergram editor, click 'Google Sheets' and authorize access to your Google account.

  2. 2

    Select Spreadsheet

    Browse your Google Drive and select the spreadsheet with your merge data.

  3. 3

    Choose Sheet Tab

    If your spreadsheet has multiple tabs, select the one with your data. First row is used as headers.

  4. 4

    Place Fields & Merge

    Drag column headers onto your PDF template and generate merged documents.

Frequently asked questions

Do I need to download my Google Sheet?
No! Connect your Google account to Mergram and select spreadsheets directly in the editor. Changes in Google Sheets are reflected when you refresh the data connection.
Can I use multiple sheets from the same spreadsheet?
Yes, when you connect a Google Sheet you can select which tab/sheet to use for your merge data. The first row of the selected tab is always used as column headers.
Is my Google data secure?
Mergram requests per-file access to your Google Drive via the `drive.file` scope — it can only see spreadsheets you explicitly select. Your spreadsheet data is only used during the merge process and is not stored permanently. OAuth tokens are encrypted with AES-256-GCM.
What happens if someone edits the Google Sheet during a merge?
The merge snapshot is taken at the time you start the job. Any edits made after the merge begins will not affect the current job. Refresh and re-merge to pick up the latest changes.
Can I schedule automatic merges from Google Sheets?
You can trigger merges programmatically using the Mergram API. Combine this with Google Apps Script or a tool like Zapier to schedule recurring merges based on your spreadsheet data.

Ready to try it yourself?

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

Related articles