← All tools
SQL Query Formatter
Format and minify common SQL without sending your query anywhere. Strings, quoted identifiers, comments and PostgreSQL dollar strings are kept intact.
0 / 500,000 characters
Formatter scope and safety
This is a structure-aware formatter, not a SQL parser or validator. The dialect choice recognizes common dialect-specific keywords and quoting, but does not certify syntax. Formatting preserves token text inside single quotes, double quotes, backticks, square-bracket identifiers, comments, and PostgreSQL dollar-quoted strings. Always review generated SQL before executing it.