Data Utilities
SQL Formatter
Format common SQL clauses with 2-space, 4-space, or tab indentation. Original identifier and keyword spelling, quoted values and comments are preserved. Choose the input style for quoting rules; this is a lexical layout formatter, not SQL validation or a complete dialect parser.
Calculations run locally in your browserTool
About this tool
SQL Formatter
The SQL Formatter adjusts common SQL layout in your browser while preserving original spelling, quoted data and comments. It does not change keyword case, execute SQL or validate dialect grammar.
• Format a long ad-hoc query before adding to a dbt model
• Keep original identifier spelling while improving layout for review
• 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 adjusts common SQL layout in your browser while preserving original spelling, quoted data and comments. It does not change keyword case, execute SQL or validate dialect grammar.
What affects the result most?
Formats common SQL clauses with configurable indentation; input style selects quoting rules only. Preserves original keyword and identifier spelling, including case-sensitive names. Indentation options: 2 spaces, 4 spaces, or tabs.
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.