Developer
SQL Formatter
Paste a query to break it onto readable lines, with each major clause and column clearly separated.
Good to know
Frequently asked questions
Is my query sent to a database?
No. Nothing is executed and nothing leaves your browser — it is purely text formatting.
Does it validate the SQL?
No. It formats text; syntax errors are your database's job to report.
Can it handle subqueries?
Yes, though deeply nested subqueries may benefit from manual tidying afterwards.
Can I keep keywords lowercase?
Yes — use the lowercase formatting button.