Input
Output
Output appears here once you start typing
Ready
·
Waiting for input
About this SQL formatter
This tool reformats SQL queries with consistent keyword casing and clause-by-clause line breaks, so a dense one-line query becomes readable at a glance — SELECT columns, FROM, JOIN, WHERE, GROUP BY, HAVING, and ORDER BY each land on their own line.
String literals are preserved exactly as written, and you can choose uppercase or lowercase keywords and 2- or 4-space indentation to match your team's style.