SQL Formatter
Format SQL statements: capitalizes keywords, breaks lines by clause, and indents AND/OR/ON.
SQL Formatter indents and beautifies long SQL statements, capitalizing keywords and adding sensible line breaks for readability and review.
How to use SQL Formatter
- Paste your SQL statement.
- Click format.
- Copy the formatted SQL.
Frequently asked questions
Which database's SQL dialect does it support?
The tool formats general SQL syntax, compatible with MySQL, PostgreSQL, SQL Server, and SQLite.
🔒 SQL Formatter runs entirely in your browser — the data you enter is not sent to any server. Free, no sign-up required. See145 free dev tools more.