SQL formatter
Format SQL with consistent indentation and keyword casing. Supports SQL, MySQL, PostgreSQL, and SQLite dialects; runs in your browser.
Formatted SQL
Enter SQL to format.// About this tool
Make long queries easier to read, review, or share. Paste SQL, choose the dialect and keyword case, then copy the formatted query. Queries are only reformatted, never executed.
// How to use it
- Paste the SQL query.
- Select the dialect and keyword case.
- Copy the formatted SQL.
// Frequently asked questions
Does it execute the query?
No. It only reformats text; nothing is sent to a database.
Which dialects are supported?
Generic SQL, MySQL, PostgreSQL, and SQLite are available in the dialect selector.