How to use SQL Formatter
- Paste the SQL you need to format into the input box.
- Adjust the Dialect option to match what you need.
- Watch the output update instantly while you adjust the SQL.
- Finish by choosing Copy to take the output with you.
About this tool
SQL Formatter runs entirely in your browser. SQL Formatter works on your query locally and returns a cleaner version instantly.
Keywords and indentation are normalised for readability. No data is sent anywhere, so it stays fast and private by default.
Frequently asked questions
How do I use SQL Formatter?
Use SQL Formatter to format your input without installing anything using the Dialect control; everything happens client-side.
Do I need an account for SQL Formatter?
No — SQL Formatter needs no account, sign-up or installation.
Is my input private in SQL Formatter?
Yes — your input never leaves your device; SQL Formatter does all the work in your browser.
Which SQL dialects does SQL Formatter understand?
SQL Formatter formats the common dialects in your browser and never sends your queries to a server.
Does SQL Formatter work offline?
Once the page has loaded, SQL Formatter keeps working with no network connection.