FreeDev Tools

SQL Minifier

Minify SQL queries β€” strip comments and collapse whitespace, string literals untouched.

Runs locally in your browser. Your input is not uploaded.

How to Use

  1. 1

    Paste a formatted query

    Multi-line SQL with comments and indentation.

  2. 2

    Get the one-liner

    Comments are removed and whitespace collapsed automatically.

  3. 3

    Copy the result

    Paste the compact query into your code or config.

Frequently Asked Questions

It removes -- line comments and /* */ block comments and collapses all whitespace so a formatted query becomes a compact one-liner, ready for logs, config files, or embedding in code.