All tools Developer Tools

SQL Formatter

Format SQL queries so they are easy to read.

Your details

Paste your SQL here.

100 of 100 free uses left today

Your result will appear here

Fill in the details on the left and press the button. You will see the answer right here, without the page reloading.

About this tool

Paste a SQL query to get keywords on their own lines and clauses indented. It works with the common dialects (MySQL, PostgreSQL, SQL Server, SQLite). The query is only reformatted; it is never run. Your text is processed for this request only and is never stored.

Frequently asked questions

Which SQL is supported?

Common SQL syntax. Dialect-specific features may format differently.

Does formatting change the query?

No. Only layout changes.

Is it safe to paste a query?

Remove real passwords, personal data and private table details before pasting.

Related tools