SQL Minifier
Put an SQL query on one line without comments.
What it does
Puts an SQL query on a single line and removes its comments. Useful when you need to paste a query into code, a config value or a command line where line breaks get in the way. The query does the same thing.
About the .sql format
.SQL file extension.sql Structured Query Language Data File
Database Files
- File Type
- Structured Query Language Data File
- Category
- Database Files
- MIME
application/sql
SQL is a database query and data manipulation language. The .SQL extension refers to a file that stores SQL commands in a text file.
Related tools
More in Code Formatters
SQL Formatter
Break long SQL queries into lines and capitalise the keywords.
XML Formatter
Indent XML, SVG and RSS and check that they are well formed.
HTML Beautifier
Indent HTML so the nesting of tags is easy to follow.
CSS Beautifier
Put each CSS rule and property on its own line with even indentation.
JavaScript Beautifier
Format minified or messy JavaScript with consistent indentation.
CSS Minifier
Remove comments and whitespace from CSS to make the file smaller.
JavaScript Minifier
Shrink JavaScript by removing comments, whitespace and line breaks.
HTML Minifier
Remove comments and extra whitespace from HTML.
SQL Minifier questions
How do I use the SQL Minifier?
Paste the text into the Input box or open a file, set the options, then copy or download the result.
Does renaming a file to .sql change its format?
No. The extension only tells programs what to expect, and the content of the file stays the same. To change the format, convert the file. The .sql page lists programs and converters for it.