ToolNest

SQL Formatter

Beautify and minify SQLRuns locally · nothing uploaded

Input
Output
Also works as:sql beautifiersql minifierformat sql query

How to use

  1. 1Paste SQL.
  2. 2Choose dialect, indent and keyword case.
  3. 3Copy the formatted or minified SQL.

FAQ

Does minifying touch strings?

No. Quoted strings and identifiers are kept exactly; only whitespace and comments are removed.

Is my SQL executed?

No. It is only reformatted as text; no database is involved.