Paste any SQL query and get clean, indented output in milliseconds. Supports major keywords, subqueries, CTEs, and dialects including Snowflake, Postgres, BigQuery, and MySQL. Runs fully in your browser - your SQL never leaves the page.
Well-formatted SQL is easier to code-review, easier to debug, and easier to compare against version control diffs. A single-line 500-character query with nested subqueries is a code smell waiting for a production incident. Auto-formatting enforces consistency across teams and eliminates entire categories of "but mine looks different" disputes in PRs.
The formatter is dialect-aware for the most common variants - Snowflake QUALIFY clauses, Postgres DISTINCT ON, BigQuery STRUCT/ARRAY literals, and MySQL backtick identifiers all pass through intact. Unusual dialects may need minor manual cleanup.
Yes. The formatter runs entirely in your browser using JavaScript - no network request is made, no SQL is logged, and nothing is stored. You can even use it offline once the page is loaded.
See the SQL window functions cheat sheet, Snowflake SQL cheat sheet, and Databricks cheat sheet for syntax references.
← Back to Home