Home
Tom Utilities

SQL Formatter

Developer Utilities

Format SQL statements into readable, consistently indented queries.

Input

Result

How to use

Formatting SQL

Paste a statement and press Format. Keywords are uppercased and clauses are broken onto new lines.

  1. Paste SQL into the input editor.
  2. Press Format.
  3. Copy the formatted query.

Frequently asked questions

Which dialects are supported?

Standard SQL, MySQL, PostgreSQL, SQL Server, SQLite and more are available.

Does it change query meaning?

No, formatting only changes whitespace and keyword case.