SQL Formatter

Format SQL queries in 13 different dialects.

Open the SQL Formatter tool to get started. Paste your input and click the action button — all processing happens in your browser.

Features

  • Format SQL with customizable indentation
  • 13 dialects: MySQL, PostgreSQL, SQL Server, BigQuery, etc.
  • Minify SQL
  • Copy formatted output
  • Monaco editor with syntax highlighting
On this page