Tamim Labs

SQL Formatter

Beautify or minify SQL across fifteen dialects, with control over keyword case, indentation and spacing. Everything runs in your browser's memory — your queries never leave your device.

Runs in your browser — nothing is uploaded

SQL input

Stays on your device
0 B in

Result

0 B out

What SQL Formatter does

  • Dialects: standard SQL, MySQL, PostgreSQL, SQLite, T-SQL and more
  • Keyword case: upper, lower or preserve
  • Indent width and blank line between queries
  • Own whitespace-safe minifier
  • Copy or download the result

How to use it

  1. 01

    Open the SQL tool.

  2. 02

    Paste a query and pick your dialect.

  3. 03

    Format or minify it; the result appears instantly.

  4. 04

    Copy or download the cleaned SQL.

Common questions

Are my SQL queries sent to a server?
No. Formatting happens in your browser, so real queries and customer data never touch a network connection.
Which SQL dialects are supported?
Standard SQL, MySQL, PostgreSQL, SQLite, T-SQL and more. You pick the dialect so keywords are cased the way your database expects.
Can it minify a query?
Yes. Alongside the formatter there is a whitespace-safe minifier that collapses a query to a single line.