Formatters tool
✦ Browser-firstSQL Formatter
Format raw SQL into readable, indented queries.
About this tool
Turn a one-line SQL query into clean, indented code with keywords on their own lines. Choose uppercase or lowercase keywords.
How to use the SQL Formatter
- Paste your SQL query.
- Choose the dialect and options if shown.
- Format it and copy the indented result.
Common uses
- Reviewing long queries
- Cleaning ORM output
- Documentation and code reviews
SQL Formatter questions
Does formatting change what the query does?
No. Only whitespace and keyword case are adjusted.
Which SQL dialects work?
Common statements such as SELECT, INSERT, UPDATE and DELETE format well across major dialects.
Is my query sent to a server?
No, it is formatted in your browser.