What it does
The minifier removes -- line comments and /* */ block comments, collapses all whitespace into single spaces and drops spaces around commas and brackets. Text inside single quotes, double-quoted identifiers and backtick-quoted names is left untouched, so values like 'New York' keep their exact spacing. The result runs exactly like the original query.
When to use it
One-line SQL is easier to paste into a log search, a JSON config, a spreadsheet cell or a string in application code. It is also handy for comparing two queries that differ only in formatting. To read a long query, do the opposite with the SQL Formatter.
Everything runs in your browser — your code and data are never uploaded, so it is safe to paste private config files and API responses.
Frequently asked questions
Will it change my string values?
No, quoted strings and identifiers are preserved exactly.
Does it work with stored procedures?
Yes, though procedural code is easier to maintain formatted.
Are optimizer hints kept?
Hints in /*+ … */ comments are removed if “Remove comments” is on — untick it to keep them.
Last updated 2026-11-21 · Built by Vinayak Agarwal · Part of Developer & Web (77 tools)