Text Template with Variables — Online Mail Merge
Paste your text, define variables with double braces, fill in the values once — all occurrences are replaced instantly. Save your frequent templates and generate multiple versions for different recipients. Free, no sign-up.
Use {{variable}} to define replacement zones
🔒 100% local — your text never leaves your browser
100% secure
Your files are never shared
Ultra-fast
Processing in seconds
Privacy
Automatic deletion after 1h
How to use the Text Template tool
Write or paste your template
Enter your text and use double braces to mark the parts that should change, for example: name, date, city.
Fill in the variable values
The tool detects your variables automatically and shows an input field for each one. Type the replacement values.
Copy the result
The preview updates in real time. When you are satisfied, click Copy to get the final text. Add multiple recipients if needed.
What is mail merge and why is it useful?
Mail merge (or publipostage) is a technique that lets you create multiple personalized documents from a single template. Instead of manually editing each copy, you define variables that are automatically replaced with individual data — names, dates, addresses, or any other detail that changes between recipients.
This approach saves time and reduces errors. Whether you need to send 5 follow-up emails or 200 event invitations, the template stays the same while only the variable values change. Our tool brings this capability directly to your browser, with no software to install and no data leaving your device.
Common use cases
Text templates are used everywhere: sales follow-up emails, appointment confirmations, welcome messages, personalized quotes, event invitations, cover letters, customer support replies, and internal memos. Any situation where you write essentially the same text with a few details that differ is a perfect candidate.
Professionals in sales, HR, real estate, healthcare, and education rely heavily on templates. By saving your most common templates, you can generate personalized communications in seconds instead of minutes, letting you focus on what matters most.
Best practices for templates
Name your variables clearly — use descriptive names like first_name rather than x or var1. This makes the form easier to fill in, especially if someone else uses your template. Keep variable names short but meaningful.
Always review the preview before copying. Save templates you use frequently so you do not have to recreate them. For important communications, double-check that every variable has been replaced — unreplaced variables will appear as placeholders in the preview, making them easy to spot.
The double-brace syntax
The double-brace notation comes from popular templating engines like Mustache, Handlebars, and Jinja. It has become a widely recognized standard for marking placeholders in text. The syntax is intuitive: anything between two opening and two closing braces is treated as a variable name.
Variable names can include letters, numbers, underscores, and hyphens — no spaces. This makes the syntax flexible enough for most use cases while remaining unambiguous. If your text naturally contains double braces (rare outside of code), simply avoid using a valid variable name between them.
Text Template with Variables — Online Mail Merge — Frequently asked questions
How do I define a variable in my text?
Surround the variable name with double braces: e.g. name, date, company. The tool automatically detects all variables and generates an input field for each one. If the same variable appears multiple times in the text, it will be replaced everywhere with a single entry.
How many variables can I use?
There is no limit. You can use as many variables as needed in your text. Each unique variable generates an input field. Variable names can contain letters, numbers, hyphens and underscores.
Are my templates sent to a server?
No. Everything happens in your browser. Your templates are saved locally (localStorage) and never leave your device. No data is transmitted to our servers.
Can I generate multiple versions for different recipients?
Yes. Click 'Add recipient' to create multiple sets of variables. Each recipient has their own values and the tool generates a personalized version of the text for each one.
How do I save a template for reuse?
Click 'Save template' and give it a name. Your templates are stored in your browser and appear in the 'My templates' section. You can also export all your templates as a JSON file to back them up or transfer them to another device.
What happens if I clear my browser data?
Saved templates will be lost because they are stored in your browser's localStorage. We recommend using the 'Export' feature regularly to keep a backup of your templates.