Skip to content
Jellykit

SQL Minifier

Minify SQL by removing comments, line breaks and extra spaces while leaving string literals untouched. Handy for logs, config files and code. Runs locally.

Runs in your browser. Nothing is uploaded.

About SQL Minifier

SQL Minifier collapses a formatted query onto one line: comments are stripped, runs of whitespace become a single space and spaces around commas and operators are removed. Text inside quotes is never touched, so 'paid now' stays exactly as written.

A one-line query is easier to paste into a JSON config, an environment variable, a log search or a string in code.

How to use SQL Minifier

  1. Type or paste your text into the input box. Press Sample to see an example.
  2. Adjust the options. The result updates as you type.
  3. Copy the result, or press Use as input to chain another transformation.

Frequently asked questions

Is it safe for string values?

Yes. Single-quoted strings, double-quoted identifiers and backtick identifiers are copied character for character.

Can I keep my comments?

Tick Keep comments. Block comments are kept inline; line comments are converted so they cannot swallow the rest of the query.

Is SQL Minifier free and private?

Yes. SQL Minifier is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.

See all developer tools →