Dialect:
Input
Output
Format SQL queries for readability and code review
Format and beautify SQL queries for readability. Indents keywords, aligns clauses, and standardises capitalisation. Useful for code reviews, documentation, and debugging complex queries involving joins, subqueries, and window functions.
Frequently Asked Questions
- What SQL dialects does the formatter support?
- It supports standard ANSI SQL and works well with PostgreSQL, MySQL, BigQuery, Snowflake, and Spark SQL syntax.
- Does formatting change query logic?
- No. The formatter only changes whitespace and capitalisation — it never alters keywords, table names, column names, or query logic.
- Can I use this for Spark SQL or Snowflake queries?
- Yes. Spark SQL and Snowflake SQL are both based on standard SQL and format correctly with this tool.
- Is my SQL sent to a server?
- No. Formatting is done entirely client-side in your browser.