What does this formatter do?
It breaks a SQL statement onto separate lines at major clause keywords — SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY, and similar — and indents conditions, making long queries easier to scan. It's a formatting aid, not a query validator or SQL dialect parser.
Why format SQL at all?
A one-line query with several joins and conditions is hard to review in a pull request or debug at 2am. Consistent clause-per-line formatting makes it obvious at a glance which tables are joined, what's filtered, and how results are grouped or ordered.
Frequently asked questions
Does this validate my SQL syntax?
No. It only reformats whitespace and line breaks around recognized keywords — it doesn't parse your query against a specific database's grammar, so it won't catch typos or invalid syntax.
Does it support every SQL dialect?
It works on standard ANSI SQL keywords common to MySQL, PostgreSQL, SQLite, and SQL Server. Dialect-specific syntax (like T-SQL's TOP or PostgreSQL's RETURNING) still formats, but keyword recognition is broadest for standard clauses.
Is my query uploaded when I use this tool?
No. Formatting happens instantly in your browser — nothing is sent to a server. Still, avoid pasting queries containing real credentials or sensitive data into any third-party tool.