SQL Minifier

Collapse a SQL script onto as few lines as possible, with optional comment removal and keyword uppercasing.

How it works

  • Comments (-- and /* */) can be removed and runs of whitespace collapse to a single space.
  • String literals and quoted identifiers keep their exact contents, including any newlines inside them.
  • The result is shown together with how much shorter the statement became.