Your top tools: SQL Formatter

SQL Formatter

Input

Output

About Online SQL query formatter Tool

How to use this Online SQL query formatter Tool?

Steps for Online SQL formatting:

  1. Enter the SQl query in the editor.
  2. Select Indentation with space or tabs. For space you can select the number of spaces for indentation.
  3. Check Uppercase checkbox to convert keywords in SQL statement uppercase
  4. Click Format Query button and it will format the code and show in output.
  5. Click copy button to copy the output.
  6. Click Share-Output to share the output code with a link.

What is SQL formatter Tool?

SQL formatter is an online Tool to easily format your SQL query.

Why to Format SQL queries?

Formatting SQL queries helps developers to easily read, understand and debug the code. It also makes it easier for developers to read other developers codes as well.

How does this SQL query formatter tool works?

This online SQL query formatter tools uses regular expression to matches the codes and add appropiate indentations, wrap lines and remove extra lines.

Example of Online HTML formatting

Check below for the simple example:

Input HTML code: select * from table_name where age>18

Output Formatted SQL query: check here

Check that the input one line of code is formatted to multiple lines with appropiate indentations and makes it really easy to read and debug for developers. Also, the formatted output will have syntax highlight.


Is this SQL formatter tool safe & secure?

Yes, this SQL formatter tool is safe & secure. We do not save any of your data in server. Neither the data is visible to any 3rd party.