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?
- HR departments — Distribute pay stubs to all employees every pay period without manual effort
- Payroll companies — Produce pay stubs for multiple client companies in bulk
- Small businesses — Generate professional pay stubs without expensive payroll software
- Accountants and bookkeepers — Batch produce pay stubs for clients who process payroll in-house
- Staffing agencies — Create pay stubs for temporary and contract workers across different placements
- Nonprofits and churches — Issue pay stubs for part-time staff, stipends, and honorariums
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:
| Section | Content | Static or Dynamic |
|---|---|---|
| Company header | Logo, company name, address | Static |
| Employee information | Name, address, employee ID | Dynamic |
| Pay period details | Pay period start, end, check date | Dynamic |
| Earnings breakdown | Hours, rate, regular pay, overtime, bonuses | Dynamic |
| Deductions breakdown | Federal tax, state tax, Social Security, Medicare, insurance, 401(k) | Dynamic |
| Net pay | Total after all deductions, often highlighted | Dynamic |
| YTD summary | Year-to-date earnings, taxes, deductions, net | Dynamic |
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:
| Column | Example | Purpose |
|---|---|---|
EmployeeName | Jane Doe | Full employee name |
EmployeeID | EMP-1042 | Employee identifier |
EmployeeEmail | jane.doe@company.com | Email for delivery |
PayPeriodStart | January 1, 2025 | Pay period start date |
PayPeriodEnd | January 15, 2025 | Pay period end date |
CheckDate | January 20, 2025 | Date of payment |
HoursWorked | 80.00 | Total hours in period |
HourlyRate | $35.00 | Hourly pay rate |
RegularPay | $2,800.00 | Regular earnings |
OvertimePay | $262.50 | Overtime earnings |
GrossPay | $3,062.50 | Total earnings before deductions |
FederalTax | $306.25 | Federal income tax withheld |
StateTax | $153.13 | State income tax withheld |
SocialSecurity | $189.88 | Social Security tax |
Medicare | $44.41 | Medicare tax |
HealthInsurance | $125.00 | Health insurance premium |
Retirement401k | $153.13 | 401(k) contribution |
OtherDeductions | $0.00 | Additional deductions |
TotalDeductions | $971.80 | Sum of all deductions |
NetPay | $2,090.70 | Take-home pay |
YTDGross | $6,125.00 | Year-to-date gross earnings |
YTDTax | $1,297.42 | Year-to-date total taxes |
YTDNet | $4,181.40 | Year-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:
- Text fields — Place
EmployeeNameat the top,NetPayprominently at the bottom,GrossPayandTotalDeductionsin the summary area. Set font, size, and alignment per field to match your pay stub design. - Barcode fields — Map
EmployeeIDto a Code 128 barcode for scanning and tracking purposes. Useful for filing systems and HR document management. - QR code fields — Map a column with a payroll portal URL so employees can scan to view their pay history online.
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:
- Individual PDFs — One file per employee, packaged as a ZIP download for easy distribution
- Combined PDF — All pay stubs concatenated into one document (useful for internal records and audits)
- Email delivery — Send each pay stub as a personalized email attachment directly to employees with password protection
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 Template | Example Result | Best For |
|---|---|---|
[[EmployeeID]] | EMP-1042 | Companies with employee ID systems |
[[SSN_Last4]] | 4827 | Using last four digits of SSN (employee already knows this) |
[[EmployeeID]]_[[BirthYear]] | EMP-1042_1990 | Extra 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:
- Configure SMTP — Connect Gmail, SendGrid, Mailgun, Amazon SES, or any SMTP provider
- 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 - 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
- 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]]. - Standardize your spreadsheet columns — Use consistent column names across pay periods so you can reuse the same template without re-mapping fields every cycle.
- 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.
- 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.
- Test with a small batch first — Generate 3–5 pay stubs, verify formatting, amounts, and email delivery, then run the full batch.
- 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:
- A PDF pay stub template — designed in Canva, Word, Google Docs, or any tool that exports to PDF
- A payroll spreadsheet — Excel, CSV, or Google Sheets with one row per employee
- A free Mergram account — sign up at mergram.com/new
No credit card required. Start with your first batch for free.