Format messy SQL into readable, indented queries with consistent keyword casing, or minify it.
Long SQL queries become hard to read and review when written on one line. Consistent indentation, line breaks per clause and uniform keyword casing make joins, filters and subqueries easier to follow and diff.
Paste your query, pick an indent size and keyword case, and copy the formatted result. You can also minify a query back into a compact form.
Format a pasted query so reviewers can see each join clearly.
Reformat a textbook query to understand its structure.
You might also find these tools helpful.