Text tools

SQL formatter & beautifier online

Turn long one-line SQL into readable queries with each clause on its own line. Choose the dialect (MySQL, PostgreSQL, SQL Server, Oracle, BigQuery and more), keyword case and indent, or minify a query to one line.

🔒 Files are processed in this browser and never sent to a server.

한국어

Loading tool…

How to use

  1. 1

    Paste your SQL.

  2. 2

    Pick the dialect and keyword case.

  3. 3

    Copy the formatted query.

When to use it

Long queries

Make them readable.

Code review

Consistent style.

Docs

Paste clean SQL.

Good to know

  • Uppercase keywords read well in reviews.
  • Format several queries at once.
  • Try another dialect if parsing fails.

FAQ

Executed?

No, only reformatted.

Dialects?

MySQL, PostgreSQL, T-SQL, PL/SQL, SQLite, BigQuery, Snowflake…

Comments?

Kept when formatting.

Related searches

  • #sqlformatter
  • #sqlformatteronline
  • #sqlformatteronlinefree
  • #sqlbeautifier
  • #sqlqueryformatter
  • #formatsqlquery