$ sql --format
sql formatter.
Format and beautify SQL queries with syntax highlighting. 100% client-side.
0 chars
0 chars
1
-- Click Format to beautify
The tool supports MySQL, PostgreSQL, SQLite, and standard SQL. Keywords and functions are highlighted based on common SQL syntax.
Yes, CTEs (WITH clauses), subqueries, JOINs of all types, and window functions are properly formatted with correct indentation.
Yes, click the "Minify" button to collapse the query into a single line, useful for embedding in application code.
learn more in our detailed guide.
→ read the guide