SQL Formatter
Pretty-print and beautify SQL queries — real dialect-aware formatting (MySQL, PostgreSQL, SQLite, SQL Server, BigQuery, Snowflake and more) with configurable indent size and keyword casing. Runs entirely in your browser.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
SQL Query
Dialect
sql, mysql, mariadb, postgresql, sqlite, transactsql, bigquery, snowflake, redshift, db2, db2i, plsql, hive, spark, trino, n1ql, tidb, singlestoredb, duckdb, clickhouse Keyword Case
upper, lower, preserve Indent Size
1 <= x <= 8Use Tabs Instead of Spaces
Response
Tool output
The tool's slug, echoing the {slug} in the request path.
Output-contract version for this tool.
Credits this call consumed, after any settlement refund. 0 when metering is disabled.
Credits left in the current monthly allowance, or null when metering is disabled.
Correlation id, also sent as x-request-id.