Data Engineering
SQL Formatter
Paste a SQL query to format it with consistent indentation, keyword casing, and line breaks. Supports ANSI, PostgreSQL, MySQL, BigQuery, Snowflake, and Redshift dialects. Runs entirely in your browser.
No data is transmitted โ everything runs locallyTool
About this tool
SQL Formatter
The SQL Formatter formats SQL queries with configurable indentation, keyword casing, and dialect-specific syntax support, running entirely in your browser.
โข Format a long ad-hoc query before adding to a dbt model
โข Normalize keyword casing across team SQL to match style guide
โข Improve readability of minified or concatenated SQL from a query log
โข Format a complex JOIN chain before code review
Next step
JSONPath Tester โ Test JSONPath expressions against a JSON document with real-time results.
Open JSONPath Tester โ
FAQ
What does this tool tell you?
The SQL Formatter formats SQL queries with configurable indentation, keyword casing, and dialect-specific syntax support, running entirely in your browser.
What affects the result most?
Formats SQL with configurable indentation, keyword casing, and dialect (ANSI, PostgreSQL, MySQL, BigQuery, Snowflake). Keyword normalization: uppercase SELECT, FROM, WHERE โ consistent across team SQL. Indentation levels: 2-space, 4-space, tab โ matches editor preferences.
How should I use the result?
The parsing and decoding happen entirely in your browser โ input is never transmitted. Copy the decoded output into your audit log, debugging session, or documentation; the transformation is reversible when the format specifies one.