Developer tools

SQL formatter

Format SQL into readable, indented code with keywords in capitals, and download the formatted query as a .sql file.

Formatting is structural only — it does not run the query or check it against a database.

How to use SQL formatter

  1. Paste a SQL query.
  2. Format it into readable, indented code with keywords in capitals.
  3. Download the formatted query as a .sql file or copy it back.

A good use for this

Making a long query readable before reviewing it or sharing it with a colleague.

Limits

Formatting is structural only — the tool does not run the query, check it against a database, or tell you whether it returns the right rows.