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
- 1Paste a SQL query.
- 2Choose keyword casing (UPPERCASE or lowercase).
- 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.