Reflow a one-line SQL query: break at keywords, uppercase main clauses, align indentation. Handy for reading code and debugging slow queries.
Paste SQL
Hint: only whitespace and keyword case are adjusted — semantics unchanged.
Formatted result
FAQ
Which SQL dialects are supported?
The formatter splits on keywords independent of dialect. Main clauses of common MySQL / PostgreSQL / SQL Server / Oracle statements — SELECT, INSERT, UPDATE, DELETE, JOIN, WHERE, GROUP BY, ORDER BY and more — are put on their own lines and uppercased.
Will it change my SQL semantics?
No. Formatting only adjusts whitespace, line breaks and keyword casing; fields, table names, conditions and string contents are untouched — safe for production troubleshooting.
Is my SQL uploaded?
No. Formatting happens entirely in your browser; the SQL is never sent to any server.