SQL formatter
Format SQL into readable, indented code with keywords in capitals, and download the formatted query as a .sql file.
Formatting is structural only — it does not run the query or check it against a database.
How to use SQL formatter
- Paste a SQL query.
- Format it into readable, indented code with keywords in capitals.
- Download the formatted query as a .sql file or copy it back.
A good use for this
Making a long query readable before reviewing it or sharing it with a colleague.
Limits
Formatting is structural only — the tool does not run the query, check it against a database, or tell you whether it returns the right rows.