Skip to content

SQL Formatter

Format SQL for PostgreSQL, MySQL, SQLite, SQL Server and other dialects without running a query.

Input

Loading tool…

Result

Local processing

Your 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.

Browse developer