SQL Formatter
Paste a messy query and get clean, consistently indented SQL — in the dialect you use.
Runs in your browser — nothing is uploadedHow to use SQL Formatter
- Paste your SQL.
- Pick the dialect, keyword case and indentation.
- Copy or download the formatted query.
Questions
Is my query sent anywhere?
No. Formatting happens entirely in your browser, so it’s safe for production queries.
Does it check that my SQL is valid?
It parses the query to format it and reports syntax it can’t understand, but it doesn’t run the query or check table names.