SQL Formatter
Tidy up a SQL query: uppercase keywords, break major clauses onto their own lines and normalise spacing. Strings and comments are preserved, and everything runs locally. 100% Local
How to Use the SQL Formatter
Paste a SQL query, choose keyword casing and indentation, then press Format. The result puts each major clause on a new line.
What is preserved
- String literals, quoted identifiers and comments are left untouched.
- Keywords can be upper- or lowercased to taste.
- This is a formatter, not a parser — it does not validate your SQL.
Features
- Keyword casing options
- Major clauses placed on new lines
- Strings and comments preserved
- All processing runs locally in your browser. Your SQL is not uploaded to any server.
- Formatting is a cosmetic tool result — always test the query against your real database.