SQL Formatter

Format messy SQL queries into clean, readable SQL for MySQL, PostgreSQL, SQL Server and more.

How to use

  1. Paste SQL, pick your database dialect and click Format.

FAQ

Does it change what my query does?

No. Only whitespace and keyword case change.

Open SQL Formatter · All free tools