SQL Formatter

FAQ

What can the SQL formatter do?

The SQL formatter provides the following capabilities:

  • SQL formatting: turns messy SQL into clean, readable structure
  • SQL minifying: compresses SQL into one line for scripts and logs
  • SQL keyword case conversion: supports preserve, UPPER, and lower
  • Multi-dialect SQL formatting: outputs syntax by database dialect rules
  • One-click copy: quickly copies processed SQL results

Which SQL dialects are supported?

The formatter supports the following SQL dialects:

  • SQL (Standard SQL) formatting
  • MySQL formatting
  • MariaDB formatting
  • PostgreSQL formatting
  • SQLite formatting
  • SQL Server (T-SQL / Transact-SQL) formatting
  • TransactSQL formatting
  • TSQL formatting
  • BigQuery formatting
  • ClickHouse formatting
  • DB2 formatting
  • DB2i formatting
  • DuckDB formatting
  • Hive formatting
  • N1QL formatting
  • PL/SQL formatting
  • Redshift formatting
  • Spark SQL formatting
  • TiDB formatting
  • Trino formatting
  • SingleStoreDB formatting
  • Snowflake formatting

Is my SQL uploaded anywhere?

No. Everything is processed locally in your browser and is not sent to a server.