SQL Formatter

Format SQL queries with syntax highlighting.

SQL query
Result
SELECT id, name FROM users WHERE active = TRUE ORDER BY id;

This formatter aligns SQL queries with proper indentation and line breaks, and converts keywords to uppercase — improving readability for complex queries with JOINs and subqueries.

Which SQL dialects are supported?

The formatter focuses on standard SQL, compatible with most systems like MySQL, PostgreSQL, and SQLite.

Does it execute the query against a database?

No, the tool only formats the text; it does not connect to any database.