String Template Editor
Edit template strings with live variables — placeholders auto-detected, values update the result as you type.
Type ${name} in the template to insert a variable · write \${ for a literal ${name}
Variables
Result
About template strings
Placeholders use the ${name} syntax: type one anywhere in the template and a value field appears below, updating the result as you type. Variable names can contain letters, digits, underscores and hyphens — Chinese names like ${姓名} work too. Unfilled placeholders stay visible in the output so you can see what's still missing, and \${ escapes into a literal ${name}.
Everything runs locally in your browser — your saved templates live in a list on this device and never leave it.
Frequently asked questions
What is a template string?
Text with named placeholders — type ${name} anywhere in the template and a value field appears below it. Fill the values and the result updates as you type. It's the same idea as template literals in JavaScript or ${...} in message files and config templates.
What characters can a variable name contain?
Letters, digits, underscores and hyphens — and Chinese names like ${姓名} work too. Placeholders are detected wherever they appear in the text, so one template can mix any number of variables.
How do I include a literal ${...} in the output?
Escape it with a backslash: writing \${name} renders the literal text ${name} instead of substituting a value. Unfilled placeholders stay visible in the result, highlighted, so you can see exactly what is still missing.
Can I save templates and reuse them later?
Yes — this tool keeps a list of templates. Create new ones, switch between them, rename, and delete; each remembers its own variable values and is timestamped by last edit. Everything is stored in this browser's local storage on this device.
What is it useful for?
Any text you rewrite with small changes: email replies, commit messages, shell commands with arguments to swap, SQL snippets, deployment runbooks, or filling in the same personal details across forms. Keep one template per recurring text and fill in the blanks.
Does it send my templates anywhere?
No. Parsing, rendering and storage all happen locally in your browser. Nothing you type is uploaded, and clearing your browser storage removes everything.