Tools / SQL Formatter

SQL Formatter

Format SQL queries for SQL, PostgreSQL, MySQL or SQLite locally.

Up to 100 KiB. Formatting does not execute SQL or validate database objects. Stored procedures and custom statement delimiters are outside this tool's scope. All processing stays on this device.

Options

Result

Your result will appear here after processing.

How do I use this tool?

Choose the query's dialect and format it with two-space indentation. Strings and comments stay part of the query.

What does it support?

Up to 100 KiB. Formatting does not execute SQL or validate database objects. Stored procedures and custom statement delimiters are outside this tool's scope.

Does my input leave my device?

No. Processing runs locally in your browser. Input and results are kept only on this page and are cleared when you leave, reload or clear the tool. Copy and download happen only when you choose those actions.