SQL Formatter
Format messy SQL queries into a readable, consistently indented form.
SQL Query
Formatted SQL
Formatted SQL will appear here.
Supports Standard SQL as well as MySQL, PostgreSQL, T-SQL, Snowflake, BigQuery and other common dialects.
Adjust indent size, tabs vs. spaces, and keyword/identifier casing to match your team's style.
All formatting runs locally in your browser; nothing is sent to external servers.