Bytelify

SQL Minify

Strip comments and collapse whitespace in SQL to a single line, live as you type.

100% private, runs in your browser
Minified

Strips comments and collapses whitespace to a single line, live as you type — doesn't special-case comment-like text inside a quoted string literal. Runs entirely in your browser.

What is SQL Minify?

Paste a formatted SQL query and get it collapsed to a single compact line instantly — comments stripped, whitespace collapsed — useful before embedding a query in a config file or one-liner script. A compact single-line query is easier to paste into an environment variable, a shell command, or a log line without formatting getting mangled. Minification runs entirely in your browser.

FAQ

Yes, use SQL Formatter to reformat it with proper indentation.

No — only comments and whitespace are removed; the SQL keywords, identifiers, and logic stay exactly the same.