SQL Formatter
Pretty-print SQL queries with proper indentation. Supports MySQL, PostgreSQL, SQLite, SQL Server, BigQuery, Snowflake, Spark and more dialects.
Input
Output
Tip
The formatter is dialect-aware. Pick the right one (Postgres handles arrays differently than MySQL, BigQuery uses backticks differently). For most production code, set keyword case to UPPER for readability.