Browser-based mail merge

CSV Mail Merge to Word

Fill a letter template with each CSV row and download one Word file with a page per recipient. Write placeholders as {{Column Name}}, check a preview of any record, then download the .docx. Your CSV stays in this browser tab.

1. Recipients CSV

Paste CSV or upload a CSV file of recipients with a header row

3 records, 5 columns: First Name, Last Name, Plot, Amount, Due Date

2. Letter template

Placeholders match column names, ignoring case and extra spaces. A blank line starts a new paragraph; a single line break stays a line break.

423 / 20,000 characters

Insert a placeholder

Buttons add the placeholder at the end of the template.

3. Check and download

Word document (.docx), one page per recipient

Columns the template does not use
Last Name. This is fine if you do not need them.

Preview

Dear Priya,

Your allotment rent for plot 14B for the 2027 season is £42.00. Please pay by 31 March 2027, either at the site hut on a Saturday morning or by bank transfer using your plot number as the reference.

If you no longer want the plot, let us know before the due date so it can be offered to the next person on the waiting list.

Kind regards,
Margaret Ellis
Treasurer, Riverside Allotment Society

Placeholders that match no column are shown as written. In the Word file each record starts on a new page, in 11 pt text with 1-inch margins.

CSV Mail Merge to Word

Operator: Abdulla Al Fahad. How tools are built and checked

Mail merge is the job of writing one letter and printing it many times, each copy addressed to a different person with their own figures filled in. Word can do it through its mail merge feature, which links a document to a data source and inserts merge fields.

One run takes up to 1,000 recipients and a letter of up to 20,000 characters, with placeholders such as {{First Name}} where each person's details belong. The tool produces a single .docx file in which every recipient gets their own page.

Key features

  • Placeholders written as {{Column Name}}, matched to headers after trimming and ignoring case
  • A list of unknown placeholders that blocks generation until fixed
  • Per-placeholder counts of rows with an empty value
  • A note of CSV columns the template does not use
  • Preview of the finished text for any record number
  • One .docx download with each recipient starting on a new page
  • Blank lines become paragraphs, single line breaks stay line breaks
  • Runs entirely in the browser, with nothing uploaded

A placeholder is any text between double curly braces, for example {{Due Date}}. When the tool fills it in, it trims spaces from the name inside the braces and compares it with the CSV headers without regard to case. {{first name}}, {{ First Name }} and {{FIRST NAME}} all pick up the column headed First Name. Spelling still has to match: {{FirstName}} without the space, or a typo such as {{Nmae}}, matches nothing.

Before the download button becomes available, the tool lists every placeholder that matches no column. Generation stays blocked until each one is fixed, because a letter that prints a literal {{Nmae}} in the greeting is worse than no letter. Columns the template never uses are listed separately as a note only; a CSV with a phone number or an internal ID column you do not want in the letter is perfectly fine.

Empty cells are filled in as nothing at all. The tool counts, for each placeholder, how many rows are blank, so you can see that {{Amount}} is missing for 4 of 120 people before those 4 letters go out with a gap where the figure should be.

In the Word file, a blank line in your template starts a new paragraph and a single line break stays a line break inside the same paragraph, which suits the lines of an address or a signature block. Each record after the first begins with a page break, so 40 recipients with a one-page letter give a 40-page document, with no empty page at the end. The document uses Word's default styles with an 11 pt body and 1-inch margins on every side.

How it works

The CSV is read with the same parser the other tools on this site use, so quoted fields containing commas or line breaks stay in one cell. The first row supplies the column names. The template is scanned for every {{...}} placeholder, and each one is compared with the headers using a trimmed, case-insensitive match.

For each data row the tool replaces every placeholder with that row's cell text, then splits the result into paragraphs on blank lines and into line breaks on single new lines. The paragraphs are built as Word paragraph and text-run objects with the docx library, not assembled as HTML, so characters such as &, < and quotation marks are stored correctly. A page break is placed at the start of each record after the first, and the whole document is packed into a .docx in memory and handed to your browser as a download.

Common use cases

  • A club treasurer printing annual subscription reminders with each member's name, membership number and fee.
  • A school office producing permission letters for a trip, each naming the pupil and the class they are in.
  • A landlord with a handful of flats writing rent review notices that state each tenant's current and new rent.
  • A clinic preparing appointment letters with patient name, date, time and clinician, without sending the list to an online service.
  • A small charity writing thank-you letters to donors that quote the amount and date of each gift.
  • A wedding couple printing personalised notes to slip into each guest's invitation envelope.

How to use this tool

  1. Upload your recipients CSV, or paste it into the CSV box. Check that the record and column count under the box looks right.
  2. Replace the sample letter with your own text, using {{Column Name}} wherever a recipient's details should appear.
  3. Fix anything listed under 'Placeholders that match no column' and review the empty-value counts.
  4. Change the record number to preview a few individual letters.
  5. Click Download Word file, then open the .docx in Word, LibreOffice or Google Docs to print or make final edits.

Example

Recipients CSV and template

First Name,Plot,Amount,Due Date
Priya,14B,£42.00,31 March 2027
Tomasz,3,£28.50,31 March 2027
Helen,22A,,31 March 2027

Template:
Dear {{first name}},

Your rent for plot {{Plot}} is {{Amount}}, due by {{Due Date}}.

Kind regards,
Margaret Ellis

Page 2 of 3 in allotments-letters.docx

Dear Tomasz,

Your rent for plot 3 is £28.50, due by 31 March 2027.

Kind regards,
Margaret Ellis

(The tool also reports that {{Amount}} is empty in 1 of 3 rows, so Helen's letter would read 'is , due by'. Fill in her amount before downloading.)

Tips for best results

  • Click a column button under the template to add its placeholder, which avoids typing mistakes in long header names.
  • Format numbers and dates in the CSV the way you want them printed. The tool copies cell text as it is, so 1200 prints as 1200, not £1,200.00.
  • Step through a few records in the preview, especially ones with long names or multi-line addresses, before downloading.
  • If the letter has a first and last name in separate columns, write {{First Name}} {{Last Name}} with a space between them in the template.
  • Print single-sided. Each recipient starts on a new page, not a new sheet, so double-sided printing would put the next person's letter on the back of the previous one.

Common pitfalls

A CSV exported from Excel may contain a header like 'Amount ' with a trailing space. Spaces around header names are not a problem for matching, but a header that differs by a character, such as Amount (GBP), is a different name and needs its own placeholder.

Two columns whose names differ only by case, such as Name and name, cannot be told apart by a placeholder. The first column with that name wins, so rename one of them before merging.

Excel sometimes saves dates in a CSV as 2027-03-31 or 31/03/2027 depending on regional settings. Check the preview, because the letter will print whichever form is in the file.

Placeholders cannot contain curly braces, and single braces such as {Name} are left as plain text, not treated as placeholders.

Common errors and how to fix them

The download button is disabled and {{Nmae}} is listed as matching no column.
The placeholder is misspelled. Change it to {{Name}}, or to whatever the header actually says, and the button becomes available.
A message says the CSV has more than 1,000 records.
Each run is limited to 1,000 records to keep the browser responsive. Split the CSV into parts, for example with a CSV splitter, and merge each part separately.
A message says the template is over 20,000 characters.
That is several pages of text. Shorten the letter, or move standard terms to a separate document that is printed once and enclosed with every letter.
All the letters are identical.
The template has no {{...}} placeholders, or they use single braces. Add double-braced placeholders that match your column names.
An address prints on one long line.
Keep each address line on its own line in the CSV cell (a quoted cell may contain line breaks), or use separate columns such as Address 1, Town and Postcode on separate lines of the template.

Best practices

  • Keep a clean copy of the recipient list and merge from that, rather than editing names in the generated Word file one by one.
  • Print one page first to check margins and that the letter fits your letterhead paper or window envelopes.
  • Resolve every empty-value warning that affects a sentence, such as an amount or a date, before downloading.
  • Add your logo, letterhead or fonts in Word after downloading; the tool produces plain text in default styles.
  • Delete the generated file when you are finished if it contains personal details you do not need to keep.

What this tool does not do

It is worth being exact about the limits, because 'mail merge' means different things in different products.

  • It does not send email. The output is a Word document for printing or reviewing; nothing is delivered to the recipients.
  • It does not read a Word template file. You paste or type the letter text into the template box, and formatting such as bold, tables, images or headers is not carried over.
  • It does not create or merge Word merge fields (MERGEFIELD codes). Each letter is written out as ordinary text, so the result cannot be re-merged with a new list inside Word.
  • It does not apply number or date formatting. Values print exactly as they appear in the CSV.
  • It does not produce one file per recipient. Everything goes into a single .docx, one page per row.

Why a page break between records rather than separate files

A single document is easier to print in one go, easier to scan through for mistakes, and easier to save as a PDF from Word if you need one. Putting the page break at the start of each new record, rather than after each letter, means the last page is the last letter and there is no blank sheet at the end of the print run.

If a letter is longer than one page, it simply continues onto a second page and the next recipient starts on the page after that. The page count then exceeds the number of recipients, which is expected.

Privacy

Recipient lists usually contain exactly the kind of personal data you should not paste into random websites: names, home addresses, amounts owed, sometimes health or school details. Here the page reads the CSV you pick or paste, fills in the letter for each row and builds the .docx in memory with the docx library running in the tab, then hands the result to your browser as a download. Nothing is saved to browser storage, and closing the tab discards the list and the letter.

Frequently asked questions

Is this the same as mail merge in Microsoft Word?

It produces a similar result, one personalised letter per row, but the method is different. Word links a document to a data source through merge fields; this tool writes each letter out as plain text into a new .docx. You do not need Word to create the file, only something that can open a .docx afterwards.

Do placeholders have to match the column name exactly?

Letters and spaces between words have to match, but capitals and spaces around the name do not. {{due date}} matches a column headed Due Date. {{DueDate}} does not.

Can it send the letters by email?

No. It only creates a Word document. For email you would need a mail service or an add-on built for sending.

Can I use an Excel file instead of a CSV?

Save the sheet as CSV from Excel first (File, Save As, CSV UTF-8). The tool reads CSV only, and using UTF-8 keeps accented names and currency symbols intact.

How many letters can I make at once?

Up to 1,000 records and a template of up to 20,000 characters per run. Larger lists can be split and merged in batches.

Will special characters like & or < break the document?

No. Text is added to the document through the docx library's paragraph and text objects, which store these characters safely. An entry such as 'Smith & Sons' prints as written.