SQL Formatter / Minifier is a free online developer tool to beautifully format messed up SQL statements with your preferred indentation level or minify SQL statements to be compact for production.
This tool is split into two modes:
SQL Formatter and
You can either browse an SQL file or enter SQL statements manually.
SQL Formatter - Beautifully formats messed up SQL statements to be human-friendly and more readable with your preferred indentation level.
Enter SQL statements you'd like to format, and then select the language type; i.e.
IBM DB2, or
Select the indentation level you prefer from the list; e.g.
tab, and click the format button to format SQL statements.
SQL Minifier - Minifies SQL statements to be compact by removing all the unnecessary whitespace characters and comments from SQL statements.
When you're done, you can either copy the result to your clipboard using the copy button or download it as an SQL file to your device.