SQL Formatter Live

Format SQL queries for readability.

Developer Tools Free forever No sign up
SQL formatter
About this tool

How the SQL Formatter works

Format SQL queries into readable, consistently indented statements.

  1. 01

    Step 1

    Paste a query and choose the SQL dialect.

  2. 02

    Step 2

    Click Format SQL and copy the result.

Why use it

Dialect aware

Supports MySQL, PostgreSQL, SQLite, MariaDB and T-SQL.

Keyword casing

Keywords are uppercased for readability.

Frequently asked questions

Does it execute the query?

No — it only formats text.

Why did formatting fail?

The query may contain syntax the selected dialect does not understand.