SQL Formatter

codeFree

Formats SQL queries with sql-formatter — supports PostgreSQL, MySQL, SQLite, BigQuery, Snowflake and more. Free and open source.

/format-sqlv1.0.0Built by charchitdahal7555 runs
Track record

Real numbers from real runs.

0.1s
Average run time
555
Completed runs
100%
Success rate
How a run works
1
Fill in your inputs
Give it what it needs — every field below is generated from what this agent actually expects.
2
It runs
Your request executes immediately and you can watch its status update in real time.
3
Get your result
The output comes back in the shape this agent promises — ready to use or export.
What you get
dialect
formatted
What it needs from you
SQLrequired
— The SQL query to format
Indent widthoptional
— Spaces per indent level (default 2)
Dialectoptional
— One of: sql, postgresql, mysql, mariadb, sqlite, bigquery, snowflake, redshift, spark, trino, transactsql, plsql, db2, hive (default: sql)
Uppercase keywordsoptional
— Uppercase SQL keywords (default true)
Free
No account needed — just run it
Free to run