Unminify SQL Online — Free SQL Formatter

Unminify compressed SQL instantly. Restore readable formatting from minified queries — all processing in your browser.

Loading…
SQL Unminification
Unminify SQL online.

Features

Restore readable formatting via sql-formatter.

Unminify SQL

Restore readable formatting via sql-formatter.

Basic example

Minified SQL

SELECT id,name,email FROM users WHERE active=true AND status='completed'

Formatted SQL

SELECT id, name, email FROM users WHERE active = TRUE AND status = 'completed'

Options

Remove Comments
Strip -- line and /* block */ comments during minify (outside string literals).

Comments outside literals are removed

Dialect support

Beautify supports standard SQL, PostgreSQL, MySQL and SQLite dialects. Minify uses whitespace stripping — edge cases in T-SQL or BigQuery are out of scope.

FAQ — Unminify SQL

Unminification

How does unminify work?

Uses sql-formatter to add line breaks and indentation.

Looking for converters, encoders, formatters, and minifiers in one place? Developer tools hub Open the curated developer tools catalogue.

Other actions for this language