Skip to content

SQL Minifier

Collapse a formatted SQL query onto a single compact line.

Runs locally · Nothing uploaded
SQL input
Minified SQL
Result will appear here…
Advertisement

About SQL Minifier

Strips comments and collapses whitespace so a multi-line query becomes one compact statement — handy for log searches, string literals in code, and query parameters. String contents are preserved exactly, and the dialect setting keeps dialect-specific tokens intact.

Related tools

All tools · More in this category