SQL Formatter

This tool formats the input SQL in an easy-to-read format.

👉 Input area
👏 Output area

What is SQL Formatter?

This is a SQL formatting tool that formats input SQL into an easy-to-read format.
SQL language (dialect), indent spaces, and capitalization can be specified as options during formatting.

How to use SQL Formatter

Formatting is performed in real time immediately after SQL is entered into the input area. The formatting results are output to the output area.

About formatting options

SQL Language

The SQL language (dialect) to be formatted can be specified. The default is 'Standard SQL'.
The following SQL languages are supported

  • Standard SQL
  • MySQL
  • MariaDB
  • PostgreSQL
  • DB2
  • SQLite
  • BigQuery
  • Redshift

Indent

The number of indentations can be specified. The default is a 2-space indent to format SQL.

KeywordCase

Converts SQL reserved words and built-in function names to upper or lower case. Default is to preserve original case (no conversion).