UTILS.
100% in-browser

SQL Formatter

Format SQL by uppercasing keywords and putting clauses on their own lines.

output

About this tool

Tidy up a SQL query with uppercased keywords and clause line breaks, all in your browser.

Frequently asked questions

Which keywords are recognized?
Common ones like SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY, LIMIT and the main DML keywords.
Is this a full SQL parser?
No — it uses lightweight regex formatting, so very complex queries may need a manual touch-up.

More tools