Skip to content
Robert Askam

SQL Minifier

Minify SQL online by removing comments, line breaks and extra spaces. String literals and quoted identifiers are never changed.

How to use it

Paste SQL and copy the single-line version. Choose MySQL for backslash escapes, # comments and /*! */ hints, or PostgreSQL for dollar-quoted function bodies.