Useful Hacks

SQL Formatter

Format and indent SQL queries for readability.

Processed locally in your browser. Nothing you enter is uploaded or stored.

Overview

Reformats a single-line or inconsistently indented SQL query into a readable, consistently indented statement.

How to use it

  1. 1Paste a SQL query.
  2. 2Choose keyword casing (UPPERCASE or lowercase).
  3. 3The formatted query appears instantly.

Tips

  • Formatting is keyword- and clause-aware but dialect-agnostic — review complex vendor-specific syntax (e.g. T-SQL hints) before running the result.

Related tools

All developer tools

Search tools

Search for any tool by name, category or keyword