Runs locally
SQL Formatter
Lay out a SQL statement.
Ctrl+Enter runs. Ctrl+Shift+Backspace clears.
Export and import are available after you sign in. Sign in
Formats the statement you paste. It does not connect to a database or run the query.
About this tool
Make a one-line query from a log or an ORM readable before reviewing or debugging it. Paste the SQL and get clauses, joins and conditions laid out on separate lines.
How to use it
- 01
Paste the SQL query.
- 02
Review the formatted query.
- 03
Copy it into your editor or review.
FAQ
Frequently asked questions
Does it run my query?
No. It only formats the text and never connects to a database.
Which SQL dialects work?
Standard SQL as used by PostgreSQL, MySQL, SQLite and similar databases formats well.