Compact a formatted SQL statement into a single tidy line by removing comments and collapsing extra whitespace. Minified SQL is convenient when you need to embed a query in a config value, drop it into a log line, paste it into a single input field, or share it compactly in a message without losing any meaning. This tool strips single line comments that start with two dashes and block comments, then squeezes runs of spaces, tabs and newlines down to single spaces, while preserving the contents of quoted strings and identifiers so your data and column names stay intact. Paste your SQL, click minify, and copy the compact query. Everything is processed locally in your browser, so schema details and query logic never leave your machine.