SQL Formatter
Format and indent SQL queries.
About this tool
Format and indent SQL queries for readability. Keywords are uppercased and major clauses are placed on their own lines so complex queries become easy to scan.
Key Features
- Uppercases keywords
- Clause-based line breaks
- Indented sub-clauses
- Works with any SQL dialect
How to Use
- Paste your SQL query.
- Click Format.
- Copy the formatted SQL.
Benefits
- Review complex queries
- Standardize team SQL
- Spot logic errors
Frequently Asked Questions
No — it only reformats the text. It never connects to a database.