SQL Minifier

Strip whitespace and comments for production deployment. Preserves string literals.

Paste your SQL
Input
Output

Frequently Asked Questions

+What does the minifier do?
It strips comments and collapses whitespace so your query fits in a single line — useful for embedding SQL in JSON payloads, logs, or environment variables.
+Does it preserve string literals?
Yes. Whitespace, newlines, and comment syntax inside quoted strings are left untouched.
+Will it change the meaning of my query?
No. Only whitespace and comments are removed. The resulting query is semantically identical.
Advertisement