SQL Minifier
Reduce redundant SQL whitespace while retaining comments and literal bytes.
SQL Minifier workspace
Up to 200,000 input characters, depth 40 and 20,000 JSON nodes. Processing stays on this device; no input is stored. Use an example to inspect the accepted input structure.
Enter input or use the example.
How to use SQL Minifier
Paste SQL, choose keyword case, then copy or download the result.
Supported workflow and acceptance requirements
Remove only redundant whitespace/comments when semantics are preserved; honor strings and comment-sensitive SQL; never join tokens into new identifiers.
Limits and local processing
Comments and hints remain intact. Line comments retain a newline so following SQL is not swallowed. Backslash-escaped strings are rejected. Input is processed on this device without uploads. Browser workers and Web Crypto are required for the applicable tools; clipboard access depends on browser support.