Toolora

SQL Formatter

Pretty-print SQL with configurable keyword case and indentation.

The SQL Formatter parses SQL statements and rewrites them with readable indentation and consistent keyword casing. It is useful for reviewing queries in logs and configuration files.

How to use

  1. Paste a SQL statement into the input field.
  2. Choose keyword case and indentation.
  3. Copy the formatted SQL.

Frequently asked questions

Does formatting change the query result?

No, only whitespace and keyword casing are adjusted.

Which SQL dialects are supported?

The formatter handles common standard SQL syntax used across major databases.