SQL Formatter

Format SELECT, INSERT, UPDATE, and common clauses so queries are easier to read in reviews and runbooks.

SQL is formatted locally and is not sent to a database or API.

Beautify SQL for review

Paste a statement and format it so keywords and clauses are easier to read in reviews and runbooks. The formatter does not run SQL against a database. For JSON payloads inside SQL strings, format the JSON separately with the JSON Formatter.

How to format SQL

  1. Paste a SQL statement.
  2. Select Format.
  3. Copy the indented query into your editor.

SQL Formatter FAQ

Which SQL dialect is supported?

The formatter is dialect-agnostic and focuses on readability. It does not execute SQL.

Are queries sent to a database?

No. Formatting is local. Never paste credentials inside SQL comments on shared machines.

Related tools

Guides: developer guides, service enquiry.