SQL Format string Online
Apply printf-style placeholders to arguments.
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. Use PostgreSQL’s function reference to adapt the input to SQL syntax.
- Format string
"Site: %s Year: %d"
["manuals", 2026]
Site: manuals Year: 2026
Using this operation in SQL
The interactive result uses JavaScript. Check the database dialect. PostgreSQL text functions use SQL-style one-based positions and LIKE uses its own pattern syntax.