SQL Formatter

Paste minified or messy SQL and get back a clean, indented, readable query. Supports multiple SQL dialects: MySQL, PostgreSQL, SQLite, T-SQL, PL/SQL, and BigQuery. Also minifies SQL for production use.

Loading tool...Loading tool...

Common Use Cases

  • Format SQL queries for code reviews
  • Beautify queries from ORM debug output
  • Minify SQL for production
  • Make complex JOINs readable

Frequently Asked Questions

Which SQL dialects are supported?

The formatter supports: sql (standard), mysql, postgresql, sqlite, tsql (SQL Server), plsql (Oracle), bigquery, db2, hive, n1ql, spark, trino, and mariadb.

Related Tools

Tool Info

CategoryformattingAI EnhancementNoData StorageZero retention