SQL Formatter

Lay out a SQL query so you can read it: one clause per line, one column per line, subqueries indented.

How it works

Lays out a SQL query with one clause per line and indented subqueries so you can read and review it.

Common questions

Does it change what the query does?
No. Only spacing and line breaks change.
Does it work for every dialect?
It handles common SQL. Very unusual syntax may be laid out plainly.
Is it uploaded?
No. Everything runs in your browser and nothing leaves your device.

More in Data.