HomeDeveloper toolsSQL Formatter

SQL Formatter

Format SQL queries with a selected database dialect.

Processing stays in your browser. Formatting does not execute a query or establish that it is safe, valid, or efficient for your database.

How to use the sql formatter

Format SQL queries with a selected database dialect. Complete the sql query, sql dialect fields above, or upload a UTF-8 text file for the first field. Choose Run tool, review the output, then copy or download the result.

Example

select id from users becomes SELECT followed by an indented column and FROM clause.

Good to know

Formatting does not execute a query or establish that it is safe, valid, or efficient for your database.