SQL Formatter
SQL ToolsFormat one-line SQL into readable, indented statements.
Runs entirely in your browser โ nothing is uploaded
Features
- Dialect-aware for Postgres, MySQL, SQLite, T-SQL and BigQuery.
- Keyword casing and indent width options.
- Keeps comments and string literals intact.
- Handles CTEs, subqueries and window functions.
How to use the SQL Formatter
- 1Paste your SQL query.
- 2Choose the dialect and indentation.
- 3Copy the formatted statement.
Frequently asked questions
Will it change what my query does?
No. Only whitespace and keyword casing change; identifiers, literals and structure are untouched.