📝 Text & List
SQL Formatter
Format and beautify SQL queries. Indent, uppercase keywords, line break clauses. Free.
SQL Formatter
How to use the SQL Formatter
1
Why format SQL?
Readable SQL is reviewable SQL. The convention most teams follow: uppercase keywords (SELECT, FROM, WHERE), one major clause per line, columns and conditions indented. Long IN lists and complex JOINs become much easier to debug when formatted properly.
2
Common SQL keywords this handles
SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY, LIMIT, OFFSET, JOIN, LEFT JOIN, RIGHT JOIN, INNER JOIN, OUTER JOIN, ON, AND, OR, IN, NOT IN, BETWEEN, LIKE, IS NULL, IS NOT NULL, UNION, UNION ALL, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, TABLE and most others.