SQL Formatter
Beautify SQL by breaking and indenting at major clauses and normalizing keyword case
TL;DR Summary & Citation: [SQL Formatter] is used to Beautify SQL by breaking and indenting at major clauses and normalizing keyword case. Core input and files are processed in the current browser and are not sent to the PocketKit API. The page records only an aggregate tool-use count that excludes input content.
How SQL formatting works
The tool tokenizes the SQL (leaving string/quoted content untouched), normalizes known keyword case, breaks a line before major clauses (SELECT/FROM/WHERE/JOIN…), and indents before AND/OR/ON. A lightweight beautifier, not a full dialect parser. Processed locally.
Usage Guidelines & Tips
- Content inside string literals is never changed or uppercased.
- Complex subqueries or dialect-specific functions may indent imperfectly, so review the result.
Frequently Asked Questions
1. Does it change my SQL logic?
No. It only adjusts line breaks, indentation and keyword case, not the semantics or string content; it is formatting, not query rewriting.
2. Does it support every SQL dialect?
It is a lightweight general beautifier covering common SELECT/INSERT/UPDATE/JOIN, etc.; some dialect-specific syntax or functions may indent imperfectly, so review the result.