JavaScript Format string Online
Format using % placeholders.
Run details
The output updates as you type. The tool processes input in your browser.
Worked example
Provide arguments as a JSON array and a format using %s, %d, %i or %f. Double a percent sign to display it literally.
- Format string
"Site: %s Year: %d"
["manuals", 2026]
Site: manuals Year: 2026
Using this operation in JavaScript
The interactive result uses JavaScript. JavaScript string indexes count UTF-16 code units. Use code-point iteration when working with supplementary Unicode characters.