SQL Minifier

Strip comments and extra whitespace to compress a query onto one line. Runs entirely in your browser.

How to use:

  1. Paste your SQL query with comments and formatting
  2. Click "Minify SQL" to compress the query
  3. See the size reduction percentage
  4. Copy the minified result for use in production

Input

Minified

Minified SQL will appear here.