Free SQL Formatter
Format and indent SQL queries.
Loading tool…
About the SQL Formatter
Free SQL formatter. Turn long, unreadable SQL into clean, indented queries with keywords aligned — supports standard SQL dialects, all in your browser.
How it works
- 1
Paste SQL
Add your query.
- 2
Format
Get a clean, indented query.
- 3
Copy
Copy the result.
Frequently asked questions
Standard SQL plus common dialects; the default works for most queries.
It formats rather than validates — it won't run or check your query against a database.