Search for a command to run...
Indent and tidy complex SQL so queries stay readable.
Pick tabs or 2/4 spaces; both are common in SQL.
Convert SELECT/FROM/WHERE and JOIN keywords to uppercase.
Place each SELECT column on its own line after commas.
Move AND/OR to new lines inside WHERE/HAVING for scan-friendly filters.
Start JOIN and ON clauses on their own lines to visualize join chains.
Remove spaces at the end of formatted lines.
What
A SQL formatter organizes queries with line breaks and indentation.
Cases
Make complex joins readable
Review and share queries with teammates
Spot syntax issues in long statements
How To
A step-by-step guide to making SQL queries easier to read.
Paste your SQL query into the input.
Choose keyword casing and line-break options.
Run formatting and copy the formatted SQL.
Knowledge
FAQ