Home » Developer Tools » SQL Minifier
Paste SQL and get a compact version in seconds, right in your browser.
Your code never leaves your browser. Everything runs locally on your device.
Long SQL queries with comments and extra spacing are hard to paste into logs, chats, and config fields. The SQL Minifier shrinks your query into one compact line while keeping its logic exactly the same.
Everything runs in your browser, so your queries are never uploaded to a server. Paste your SQL, minify it, and copy the result straight into your project.
Yes, it is completely free with no sign up and no limits. You can minify as much SQL as you like, as often as you like.
Yes. Minifying only removes comments and extra whitespace. Your query keeps the same logic and returns the same results.
No. Text inside string literals and quoted identifiers is left untouched, even when it looks like a comment.
By default comments are stripped for the smallest output. Uncheck the strip comments option if you want to keep them.
No. All minifying happens in your browser on your own device, so your queries never leave your computer.
The tool shows a clear error message and keeps your input untouched, so you can fix the error and try again.
If you work with data files too, try the CSV to JSON converter to turn spreadsheet exports into JSON.