TM7 Tools
Developer ToolsRuns in your browser

SQL Formatter

Beautify SQL with keyword line breaks and consistent uppercase clauses.

Paste a SQL query to apply opinionated line breaks and keyword casing. Complex dialect-specific syntax may need manual tweaks.

Need a starting point?

SQL input

Formatted SQL

Overview

Paste a SQL query to apply readable line breaks and keyword formatting. Dialect-specific edge cases may still need manual edits after formatting.

How to use

  1. Paste one or more SQL statements.
  2. Run format to apply layout and keyword casing.
  3. Adjust indentation in your editor if your team style differs.
  4. Copy the formatted SQL into docs or a SQL client.

Examples

  • Readability

    Turn a one-line SELECT with joins into a multi-line query before a code review.

  • Docs

    Format a query excerpt for an internal wiki without installing a desktop formatter.