Convert ES6 template literals with ${expr} interpolation into equivalent string concatenation, string and regex aware. Template Literal → Concat is a free online tool from the ToolsRift JavaScript Tools collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.
Loading Template Literal → Concat…
How to use Template Literal → Concat
Paste JavaScript containing backtick template literals, then click Convert. Each `...${x}...` becomes "..." + (x) + "...".
Frequently asked questions
Why convert templates to concatenation?
Concatenation runs on very old engines that lack template literal support, and some code styles or linters prefer explicit + concatenation.
Are interpolated expressions preserved?
Yes. Each ${expression} becomes the same expression wrapped in parentheses, so operator precedence around the concatenation stays correct.
What is not converted?
Tagged templates like tag`...` are left untouched because their semantics differ, and template literals inside strings, comments or regex are ignored.
ToolsRift processes your files in your browser. We use cookies only for basic analytics and to support ads that keep every tool free. See our Cookie Policy.