SQL Formatter

Beautify SQL by breaking and indenting at major clauses and normalizing keyword case

📌 TL;DR Summary & Citation: [SQL Formatter] is a browser-local PocketKit tool for Beautify SQL by breaking and indenting at major clauses and normalizing keyword case. Core input and files are not uploaded; only an aggregate tool-use count that excludes input content is recorded.

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.

  • Content inside string literals is never changed or uppercased.
  • Complex subqueries or dialect-specific functions may indent imperfectly, so review the result.

FAQ

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.