Ready
SQL Formatter
Format SQL queries for readability. Choose a dialect and copy cleaned output.
Lint hints
No obvious issues detected.
Tip: choose dialect for best results.
Formatted SQL
Input chars: 56
Formatted SQL will appear here.
How to use
- Paste SQL, pick a dialect, and choose Prettify or Minify (Cmd/Ctrl+Enter formats).
- Enable multi-statement formatting to split and format batches.
- Export as SQL/TXT, or copy output as Markdown (Cmd/Ctrl+Shift+C).
- Use samples to test common patterns (select, insert, join, CTE).
FAQ & privacy
Does formatting run locally? Yes. All formatting happens in your browser.
Which dialects are supported? SQL, MySQL, PostgreSQL, SQLite, and MariaDB via `sql-formatter`.
Can I download results? Yes. Download the formatted SQL or copy it directly.