Skip to content

SQL Formatter

Format and validate SQL and SOQL queries as expanded, compact, or minified output, with configurable keyword case.

The problem it solves

Queries pulled from logs, ORMs, or Salesforce debug output are hard to read, and they often contain real table names and data you shouldn’t paste online.

Included in the app for
  • macOS
  • Windows
  • Linux
SQL Formatter formatting a query with joins and subqueries

Features

  • SOQL support #

    Salesforce SOQL is formatted too, with child relationship subqueries indented as nested blocks.

  • Expanded, compact, or minified #

    Pick the layout that suits a code review, a log line, or a string literal.

  • Keyword case #

    Write keywords in the case your team uses.

  • Validation #

    Queries are checked as you type, and errors are reported before you copy.

Private by design

  • Your code and data stay on your machine: no stranger’s server sees them, and no AI trains on them.
  • Every tool works offline. The only network use is checking for updates.
  • Free to use with no ads or paywalls, ever. Source available on GitHub.