Document Template Filler (DOCX Mail Merge)

This document template filler is a mail merge for Word files. Type placeholders like {{client_name}} or {{fee}} into a .docx template, drop it here, and fill the fields from a form or from a CSV with one row per document. It keeps your formatting, headers and footers, names each file from a pattern such as {{client_name}} - engagement letter, and downloads every document in one ZIP. Several templates can be filled together, and text, Markdown and HTML templates work too. It runs in your browser.

CSV columns become fields

Template textCSV columnResult
Dear {{contact}},contact = Ms PatelDear Ms Patel,
Fee: {{fee}}fee = £18,000Fee: £18,000
{{client_address}}a value with a line breaktwo lines in Word
{{missing}}no columnkept or left blank (your choice)

When to use it

  1. Produce engagement letters for a list of clients.
  2. Generate NDAs with each counterparty's details.
  3. Fill offer letters or contracts from an HR spreadsheet.
  4. Create certificates or notices in bulk.
  5. Fill a pack of related documents from one row.

How to Use

  1. Drop one or more templates.
  2. Fill the form, or paste a CSV with matching columns.
  3. Set a file name pattern.
  4. Download the documents or the ZIP.

Features

  1. DOCX placeholders across runs
  2. Form or CSV rows
  3. Headers, footers and notes filled
  4. Several templates at once
  5. Named files in a ZIP
  6. 100% client-side

FAQs

How do I make a template?

Write the document in Word and type placeholders in double curly braces, like {{client_name}}. Save it as .docx.

Will it keep my formatting?

Yes. Only the placeholder text changes; styles, tables, headers, footers and images are copied as they are.

What if Word splits my placeholder?

Word often breaks text into several runs. The filler reads whole paragraphs, so split placeholders are still found.

Can it do loops or conditions?

No. Use one template per variant, or put the variable text in a field.

Is anything uploaded?

No. Files are read and processed in your browser; nothing is sent to a server.

Technical Details

The DOCX is opened as a ZIP and its document, header, footer, footnote and endnote XML is scanned paragraph by paragraph for {{field}} placeholders, even where Word has split one placeholder across several formatting runs. Each value is written into the run where the placeholder starts, XML-escaped, with line breaks turned into Word line breaks; everything else in the file is copied unchanged. CSV columns are matched to field names loosely, and each row produces one document per template, named from a pattern and packed into a ZIP. Text, Markdown and HTML templates work the same way.

Business & Legal Tools

Business & Legal Tools

  • Sample Size Calculator (A/B Test and Survey)
  • Ad Metrics Calculator (CPM, CPC, CTR, CPA, ROAS)
  • Email Signature Generator
  • Kitchen Par Level Calculator
  • Hotel Occupancy, ADR and RevPAR Calculator
  • Tailor Measurement Sheet
  • Cleaning Job Quote Calculator
  • Event Seating Plan Maker