Keywords
Indent
  • 100% Free
  • No Sign-Up
  • No Credit Card
  • No Free Trial
  • No Pro Tier
  • No Watermarks

Nothing is uploaded. Just open it and start.

Format and minify SQL in your browser

Paste a query to beautify it with consistent indentation and keyword casing for your dialect, or minify it to a single clean line. Fast, private, and free — no sign-up, nothing uploaded.

Beautify any query

Clean, consistent indentation and line breaks for even the gnarliest joins and subqueries.

Dialect-aware

Postgres, MySQL, SQLite, T-SQL, BigQuery, and Oracle — formatted the way each expects.

Safe minify

One-line output that strips comments and whitespace but never touches string contents.

Private & client-side

Your queries never leave the browser. No server round trip, ever.

Related tools

Frequently asked questions

Which SQL dialects are supported?
Standard SQL plus PostgreSQL, MySQL, MariaDB, SQLite, SQL Server (T-SQL), BigQuery, and Oracle (PL/SQL). Pick your dialect so keywords, functions, and quoting are formatted the way that database expects.
What does the minifier do?
It collapses a query onto a single line — stripping comments and reducing runs of whitespace to single spaces — while leaving the contents of string literals and quoted identifiers exactly as written. Useful for embedding a query in code or a config value.
Can I control the keyword case and indentation?
Yes. Format mode lets you uppercase, lowercase, or preserve keyword case and choose a 2- or 4-space indent, so the output matches your team's style guide.
Will it change my query's meaning?
No. Formatting and minifying only change whitespace, line breaks, and keyword casing — never the logic. String literals and identifiers are preserved byte-for-byte.
Is my SQL uploaded anywhere?
No. All formatting and minifying happen in your browser with JavaScript — nothing is uploaded, logged, or stored, which matters when a query contains schema or data details. It's free with no sign-up; a single unobtrusive ad slot covers hosting.