🗄

SQL Formatter

Clean up and indent queries

Original SQL
Format Result
Formatted SQL appears here

How to use

Breaks lines and indents by keyword in SQL queries where SELECT, JOIN, WHERE and other clauses run together, turning them into a readable layout.

Q. Which SQL dialects are supported?

A. It formats based on standard SQL syntax and works fine for most MySQL and PostgreSQL queries.

Q. Can it run the query too?

A. No. This tool only formats text. It does not connect to a database or execute queries.