Online SQL formatter

Format SQL queries with readable indentation. Choose a supported SQL dialect, copy the formatted result and organize code without running queries.

Input

Processed in your browser: values are not sent.

Up to 200,000 bytes and 8 seconds of processing. Choose the matching database dialect. Formatting changes whitespace and keyword case; it does not execute queries, inspect your database schema or optimize performance.

Result

No result yet. Fill in the fields and run the tool.


                
            

We count which tools are used most, without including entered values or file contents in the statistics. Privacy

How to use

Choose the SQL dialect, paste your query and format it. Review, copy or download the SQL result. No database is contacted.

Method and limits

Up to 200,000 bytes and 8 seconds of processing. Choose the matching database dialect. Formatting changes whitespace and keyword case; it does not execute queries, inspect your database schema or optimize performance.

Practical example

Input
Value: select id,name from users where id=1 Language: sql
Result
SELECT id, name FROM users WHERE id = 1

Sources

Favorites