Skip to the tools
All kits

SQL formatter

Paste SQL and get it back cleanly indented, with keywords and clauses laid out to read. Pick the dialect so the formatting matches your database, or minify to a single line for a config or a log.

It uses the maintained sql-formatter library and runs entirely in the page, so no query you paste is sent anywhere.

Formatted

Formatted in your browser with sql-formatter. It changes only the layout, never what the query does, and nothing is sent anywhere.

Questions

Is what I paste sent anywhere?
No. Every tool in this kit runs in the page itself. There is no server here that receives what you paste, and you can check it in your browser's network tab: using a tool produces no request carrying your input at all.
Which dialects are supported?
Standard SQL plus the common ones: PostgreSQL, MySQL, MariaDB, SQLite, SQL Server (Transact-SQL), BigQuery and more. Picking the right one means dialect-specific syntax is laid out correctly rather than misread.
Does it change what my query does?
No. It only changes the spacing, line breaks and case of keywords. The statement itself is untouched, so a formatted query runs exactly as the original did. It does not execute anything.
Can it fix broken SQL?
No, and it does not try. It formats the SQL you give it. If a statement has a real syntax error the layout may look off around it, which is often a useful hint, but this is a formatter, not a linter or a fixer.

The other tools here