SQL Formatter
Pretty-print a messy one-line SQL statement so it is easy to read and review. Free, runs offline.
No signup100% in your browserFree forever
Frequently Asked Questions
- Which clauses does it break onto new lines?
- SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY, LIMIT and the main keywords get their own lines.
- Does it change the query?
- No. It only adds whitespace; the SQL logic is untouched.