Tool
SQL Formatter
Format a SQL statement for reading by putting major clauses on their own lines. The statement is not sent to a database.
Limitations. This is a readability aid, not a SQL parser. It can mistake a keyword used as an identifier. Quoted text is left as written.
How to use it
Paste SQL and choose Format. Nothing is executed.