SQL Formatter

Formats SQL queries for easy viewing (supports various SQL dialects!)

👉 Input area
👏 Output area

What is the SQL Formatter Tool?

The SQL Formatter Tool is an online tool that organizes and automatically formats input SQL queries for easy viewing. The tool increases the efficiency of debugging and code review by converting SQL code into an optimal format. It supports multiple SQL languages (dialects) and can be freely customized with options such as indentation and capitalization.

How to use the SQL Formatter Tool

  1. Enter SQL: Paste the SQL code you want to format into the input area. Formatting is automatically performed in real-time immediately after input. 2.
  2. Check the result of formatting: The formatted SQL code will be displayed in the output area. You can copy and use the formatted SQL code as it is.

About formatting options

SQL Language

You can specify the SQL language (dialect) to be formatted. The default is 'Standard SQL', but the following SQL languages are also supported.

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

Indentation

To improve the readability of SQL code, you can specify the number of spaces for indentation. The default is 2 spaces.

Keyword Case

Allows SQL reserved words and built-in function names to be unified into upper or lower case. By default, the original format is retained, but you can convert them if you prefer.