123024.com · SQL Formatter

SQL Formatter

Turn a compact or messy SQL statement into a readable layout with keywords uppercased and major clauses on their own lines. Useful when reading logged queries or sharing snippets — all local in the browser.

How to use

Paste SQL into the input. After you stop typing, the tool formats automatically — no Format or Swap button. A short hint under the output confirms the SQL was formatted.

Tips

  • Major clauses (SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY, …) start new lines; keywords are uppercased for easier scanning.
  • This is a lightweight pretty-printer, not a full SQL parser — exotic dialects or broken quotes may need a quick hand edit.
  • While you are mid-edit, formatting still runs on whatever text is present; pause briefly after pasting a full query for a clean result.
  • Queries with secrets or PII should stay in a local tool, not on sites that upload content.