RevealTheme logo

SQL Formatter

Format and beautify SQL queries — line breaks at keywords, indented column lists.

What is SQL Formatter?

Reading minified or single-line SQL is painful. This formatter breaks lines at major keywords (SELECT, FROM, WHERE, JOIN, etc.) and indents column lists for readability. The output is functionally identical to the input — formatting doesn't change semantics.

Frequently asked questions

Will this rewrite my query?
No — formatting is purely cosmetic. Run the output through a linter if you want correctness checks.

Related tools