Why Format SQL?
Query logs from ORMs, database profilers, and auto-generated code are notoriously unreadable. One-liner selects with 20 joins are impossible to debug. Formatting turns those into structured, indented, instantly-scannable code.
What does the formatter do?
Breaks clauses onto new lines (SELECT, FROM, WHERE, JOIN, GROUP BY), indents sub-expressions, normalizes whitespace, and applies consistent keyword casing.
When to use MINIFY?
When pasting queries into logs, environment variables, or scripts where newlines cause issues. Strips all extra whitespace to a compact one-liner.
Is my SQL sent anywhere?
No. 100% client-side JavaScript. Your queries never leave your browser. Safe for proprietary schemas and production data.
What dialects are supported?
Generic SQL, MySQL, PostgreSQL, SQLite, and MSSQL / T-SQL. Dialect selection adjusts keyword recognition for accurate formatting.
Multiple statements?
Yes. Separate statements by semicolons — each is formatted independently and counted in the stats strip above the editor.
Validation checks?
The formatter flags unmatched parentheses, missing FROM after SELECT, bare DELETE without WHERE, and missing semicolons — common mistakes caught before they hit production.