HomeDev Tools › SQL Formatter

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

  1. Paste your SQL statement.
  2. Click format.
  3. 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.