Back to tools
SQL Formatter
Format, beautify, minify, remove comments, and copy SQL queries instantly in your browser.
How to use SQL Formatter / Minifier
Paste SQL
Add your SQL query or statement into the input box.
Format query
Use Format SQL to beautify your query with proper indentation.
Minify SQL
Use Minify SQL to compress the query into a single line.
Remove comments
Strip SQL comments before using the query in production.
Copy output
Copy the processed SQL output instantly to your clipboard.
Clear editor
Reset the input and output areas when you want to start over.