How do I use the SQL formatter?
- Paste your SQL.
- Choose the dialect and keyword case.
- Copy the formatted query.
SQL formatter: frequently asked questions
Which SQL dialects are supported?
PostgreSQL, MySQL, MariaDB, SQLite, SQL Server (T-SQL), BigQuery and standard SQL.
Does it run my query?
No. It only reformats the text.
Is my query uploaded?
No. Formatting runs in your browser.
Why uppercase keywords?
It makes keywords stand out from table and column names. Untick it to keep your original case.
Can it format several statements?
Yes. Separate them with semicolons.
Why did formatting fail?
Usually a syntax the chosen dialect does not recognise. Try another dialect or check the query.
Is there an API for this tool?
Selected tools are available through a rate-limited public API. Contact us if you need higher volumes.
Is the sql formatter free?
Yes. It is free with no sign-up and no usage limits for normal use.
Is my data sent to your servers?
No. This tool runs entirely in your browser, so what you type never leaves your device.
Does it work on my phone?
Yes. The tool works in any modern browser on iPhone, Android, tablet or computer.
