Format SQL queries, switch database dialects, minify snippets, and copy clean SQL locally.
SELECT u.id, u.email, count(o.id) AS orders FROM users u LEFT JOIN orders o ON o.user_id = u.id WHERE u.created_at >= now() - interval '30 days' GROUP BY u.id, u.email HAVING count(o.id) > 0 ORDER BY orders DESC LIMIT 20;
Format common SQL dialects including PostgreSQL, MySQL, BigQuery, SQLite, and T-SQL.
Choose uppercase, lowercase, or preserved keyword casing.
Tune tab width, expression width, and operator newline behavior.
Collapse whitespace for compact query strings and config values.
Copy formatted or minified SQL directly from the result panel.
Queries are formatted in the browser with no database connection.
No. It only formats text locally and never connects to a database.
Use the dialect closest to your database. PostgreSQL is a good default for common SQL syntax.
Yes. The minify option collapses whitespace while preserving the query text.