SQL Formatter
Format SQL for PostgreSQL, MySQL, SQLite, SQL Server and other dialects without running a query.
Result
Local processingYour result will appear here.
How to use it
Paste a query or open a UTF-8 SQL file. Select a dialect and the case for keywords, then format and copy or download the result.
Worked example
Format select name,count(*) from orders group by name; to put SELECT, FROM and GROUP BY on separate lines.