SQL Formatter
Format SQL queries for readability.
Remove whitespace, line breaks, and comments from SQL to reduce its size.
SQL Minifier removes unnecessary whitespace, line breaks, indentation, and comments from SQL queries to reduce their size. Content inside string literals and quoted identifiers is protected, so compression is safe. Useful for reducing the size of SQL embedded in applications or simplifying log output.
No. Content inside single-quoted, double-quoted, and backtick-quoted strings or identifiers is protected and left unchanged.
Enable the "Remove comments" option to strip both "--" line comments and "/* */" block comments.
With "Keep single space between keywords" enabled, minimal readability is preserved (e.g. SELECT id FROM users). Disabling it compresses spacing as much as possible.
No. All processing happens in your browser.