Format and minify SQL for PostgreSQL, MySQL, SQLite, and SQL Server.
Formatted SQL will appear here.Paste a SQL query — however it was written — and get back consistently indented, readable SQL, formatted for your chosen dialect.
Supports PostgreSQL, MySQL, SQLite, and SQL Server (T-SQL), with an option to force keyword casing and a one-click minify for the reverse operation.
PostgreSQL, MySQL, SQLite, and SQL Server (T-SQL) — pick the dialect closest to your database engine from the dropdown.