ClickZM

Guides ·

How to use SQL Formatter

SQL Formatter. Format queries for MySQL, PostgreSQL and more. No. It only reformats text; it never connects to a database.

Open SQL Formatter

The short answer

To format SQL, paste a query, choose the dialect (standard SQL, MySQL, PostgreSQL, SQL Server, SQLite, BigQuery, Oracle and more) and keyword case, and click Format. Clauses, joins and subqueries are put on clear, indented lines.

It runs in your browser. What you enter is not uploaded.

How to use it

Type or paste your input into the SQL Formatter.

Choose any options you need.

See the result update instantly.

Copy the result or download it.

Limits worth knowing

Does it run or validate my query? No. It only reformats text; it never connects to a database.

Can I keep my keyword case? Yes. Choose Preserve, UPPER or lower for keywords.

Sponsored

A recommended offer

Opens in a new tab. It is separate from the calculators.

Continue

Advertisement