Skip to content

PDF Mail Merge for Pay Stubs

Generate personalized pay stubs in bulk from your payroll spreadsheet. Upload a pay stub template, map employee earnings and deductions, and produce hundreds of pay stubs in one batch.

What Is Pay Stub Mail Merge?

Pay stub mail merge is the process of producing personalized pay stubs for every employee in a single batch operation. Instead of creating each pay stub manually — copying employee names, earnings, taxes, and deductions one at a time — you upload a pay stub template once, connect your payroll spreadsheet, and generate all pay stubs in one run.

Mergram’s visual editor lets you drag data fields directly onto your pay stub layout — employee names, gross pay, tax breakdowns, deductions, net pay, and year-to-date totals. Each row in your spreadsheet produces a separate, professional pay stub PDF ready for distribution.

One pay stub template + one payroll spreadsheet = personalized pay stubs for your entire team.

Who Uses This?


How to Create Bulk Pay Stubs

Step 1 — Design Your Pay Stub

Create your pay stub layout in Canva, Microsoft Word, Google Docs, InDesign, or any tool that exports to PDF. Your template defines the static elements — your company logo, business name, and the overall layout structure. Leave blank spaces where dynamic data will appear.

A well-structured pay stub template typically includes these sections:

SectionContentStatic or Dynamic
Company headerLogo, company name, addressStatic
Employee informationName, address, employee IDDynamic
Pay period detailsPay period start, end, check dateDynamic
Earnings breakdownHours, rate, regular pay, overtime, bonusesDynamic
Deductions breakdownFederal tax, state tax, Social Security, Medicare, insurance, 401(k)Dynamic
Net payTotal after all deductions, often highlightedDynamic
YTD summaryYear-to-date earnings, taxes, deductions, netDynamic

Canva designs

Design your pay stub in Canva and import it directly into Mergram via the Canva integration. Your design becomes a merge-ready template — no manual PDF export step required.

Step 2 — Prepare Payroll Data

Create a spreadsheet with one row per employee. Include every data point that appears on the pay stub. Here is a typical column structure:

ColumnExamplePurpose
EmployeeNameJane DoeFull employee name
EmployeeIDEMP-1042Employee identifier
EmployeeEmailjane.doe@company.comEmail for delivery
PayPeriodStartJanuary 1, 2025Pay period start date
PayPeriodEndJanuary 15, 2025Pay period end date
CheckDateJanuary 20, 2025Date of payment
HoursWorked80.00Total hours in period
HourlyRate$35.00Hourly pay rate
RegularPay$2,800.00Regular earnings
OvertimePay$262.50Overtime earnings
GrossPay$3,062.50Total earnings before deductions
FederalTax$306.25Federal income tax withheld
StateTax$153.13State income tax withheld
SocialSecurity$189.88Social Security tax
Medicare$44.41Medicare tax
HealthInsurance$125.00Health insurance premium
Retirement401k$153.13401(k) contribution
OtherDeductions$0.00Additional deductions
TotalDeductions$971.80Sum of all deductions
NetPay$2,090.70Take-home pay
YTDGross$6,125.00Year-to-date gross earnings
YTDTax$1,297.42Year-to-date total taxes
YTDNet$4,181.40Year-to-date net pay

Upload as Excel (.xlsx, .xls, .ods), CSV (.csv, .tsv), or connect a Google Sheet directly.

Export from payroll software

If you use payroll software (QuickBooks, Gusto, ADP, Paychex), export your payroll report as CSV or Excel. The exported file often already has the columns you need — just upload it directly to Mergram without reformatting.

Step 3 — Map Fields to the Template

Upload your PDF template and spreadsheet to Mergram. The visual canvas editor displays your pay stub layout. Drag column headers from the sidebar onto the canvas:

Custom filenames

Set a filename template like PayStub_[[EmployeeName]]_[[PayPeriodEnd]].pdf to generate clean, organized filenames automatically. Characters invalid on Windows, macOS, or Linux are sanitized automatically.

Step 4 — Preview and Generate

Use the row selector to preview any employee’s pay stub with real data — rendered directly in your browser, no server round-trip needed. Verify that dollar amounts align, dates are correct, and all earnings and deductions are accounted for.

When you are satisfied, generate your pay stubs:


Password Protection

Pay stubs contain sensitive financial and personal information — earnings, tax withholdings, Social Security contributions, and retirement contributions. Always password-protect pay stubs before distributing them.

Mergram encrypts each pay stub PDF using 128-bit encryption. Set a password template based on your spreadsheet data:

Password TemplateExample ResultBest For
[[EmployeeID]]EMP-1042Companies with employee ID systems
[[SSN_Last4]]4827Using last four digits of SSN (employee already knows this)
[[EmployeeID]]_[[BirthYear]]EMP-1042_1990Extra security with a second factor

Security responsibility

Never use easily guessable passwords (employee first name, company name, “1234”). Choose a password template based on information only the employee knows. Communicate the password scheme to employees through a separate, secure channel — never in the same email as the pay stub attachment.


Email Delivery

Skip the download-and-forward workflow. Connect your SMTP server and Mergram sends each pay stub directly to the employee:

  1. Configure SMTP — Connect Gmail, SendGrid, Mailgun, Amazon SES, or any SMTP provider
  2. Compose the email body — Use rich text with merge field placeholders:
    Dear [[EmployeeName]],
    
    Your pay stub for the period [[PayPeriodStart]] – [[PayPeriodEnd]]
    is attached. Your net pay is [[NetPay]].
    
    This document is password-protected for your security.
    
    Regards,
    Payroll Team
  3. Generate and send — Mergram creates each pay stub PDF, encrypts it, and emails it as an attachment in one operation

Every send is tracked — see delivery status, opens, and bounces per recipient.

SMTP providers

Gmail SMTP is free for up to 500 emails per day, sufficient for most small and mid-size companies. For higher volume, use SendGrid, Mailgun, or Amazon SES — all work seamlessly with Mergram’s email campaign feature.


Best Practices

  1. Always password-protect pay stubs — Pay stubs contain sensitive personal and financial data. Use a password template based on information only the employee knows, such as [[EmployeeID]] or [[SSN_Last4]].
  2. Standardize your spreadsheet columns — Use consistent column names across pay periods so you can reuse the same template without re-mapping fields every cycle.
  3. Preview the largest values — Check that the longest employee name, the highest dollar amounts, and the widest deduction descriptions fit within their fields without overlapping or clipping.
  4. Include year-to-date totals — Employees and auditors expect YTD figures on pay stubs. Add YTD columns to your spreadsheet and place them as separate fields on the template.
  5. Test with a small batch first — Generate 3–5 pay stubs, verify formatting, amounts, and email delivery, then run the full batch.
  6. Save your template — After mapping all fields, save the template. Next pay period, just upload the updated spreadsheet and re-merge. No re-mapping needed.

Get Started

Generate your first batch of pay stubs in under 10 minutes. Upload a PDF pay stub template, connect your payroll spreadsheet, map your fields, and generate — no payroll software integration required.

What you need:

No credit card required. Start with your first batch for free.

Step-by-step guide

  1. 1

    Design Your Pay Stub

    Create a pay stub layout in Canva, Word, or Google Docs. Include spaces for company info, employee details, earnings, deductions, and net pay. Export as PDF.

  2. 2

    Prepare Payroll Data

    Create a spreadsheet with one row per employee. Include columns for name, ID, pay period, gross pay, all taxes and deductions, net pay, and YTD totals.

  3. 3

    Map Fields to the Template

    Upload your PDF and spreadsheet to Mergram. Drag text fields for each payroll column. Set fonts and alignment to match your pay stub design.

  4. 4

    Generate and Deliver

    Preview a sample pay stub to verify. Then generate all pay stubs — download as a ZIP, combine into one PDF, or email directly to employees with password protection.

Frequently asked questions

How do I generate pay stubs for my entire team?
Upload a PDF pay stub template to Mergram, connect a payroll spreadsheet with one row per employee (earnings, taxes, deductions, net pay), place dynamic fields for each column, and generate. Each row produces a separate pay stub PDF.
Can I password-protect employee pay stubs?
Yes, and it is strongly recommended. Use a password template like [[EmployeeID]] or [[SSN_Last4]] so each pay stub is encrypted with a password known only to the employee. Pay stubs contain sensitive financial information.
Can I email pay stubs directly to employees?
Yes. Configure your SMTP server, write an email template with merge fields (Dear [[EmployeeName]], your pay stub for [[PayPeriodEnd]] is attached), and Mergram sends each pay stub as a personalized PDF attachment.
What payroll data can I include on pay stubs?
Any column from your spreadsheet: employee name, ID, pay period dates, hours worked, hourly rate, gross pay, federal and state taxes, Social Security, Medicare, health insurance, 401(k), other deductions, net pay, and year-to-date totals.
Do I need payroll software to use this?
No. You can create the payroll data in any spreadsheet. However, Mergram works great alongside payroll software — export your payroll report as CSV or Excel and use it directly as the data source.
How do I include year-to-date totals?
Add YTD columns to your spreadsheet (YTD Gross, YTD Tax, YTD Net). Place these as separate fields on the template. Use spreadsheet formulas or export from your payroll system with YTD calculations already done.

Ready to try it yourself?

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

Related articles