Make SQL readable
Long queries copied from code or logs often arrive as one giant line. A formatter re-lays them out with proper indentation and uppercase keywords so you can actually read — and review — them. This tool supports the major dialects and can also compact a query back down when you need it inline.
How to use it
- Pick your SQL dialect and indent size.
- Paste your query.
- Click Format to beautify or Minify to compact, then copy the result.
Frequently asked questions
Which SQL dialects are supported? Standard SQL plus MySQL, PostgreSQL, SQLite, MariaDB, BigQuery, SQL Server (T-SQL) and Oracle (PL/SQL).
Does it change my query’s meaning? No — formatting only adjusts whitespace, line breaks and keyword casing. The query itself is unchanged.
Can it minify SQL? Yes — the Minify button collapses a query onto a single compact line.
Is my SQL uploaded? No. Everything runs in your browser, so your queries stay private.
