flashman
← All tools

Sql

sql • format

select
  id,
  name
from
  users
where
  created_at > now () - interval '7 days'
order by
  created_at desc;

About this tool

Format SQL queries with consistent indentation for reviews, documentation, and learning. Supports common SELECT/INSERT/UPDATE style statements.

Your input is processed in the browser. We do not upload tool payloads to our servers.

Common use cases

  • Beautify queries copied from ORM logs.
  • Prepare SQL snippets for README files.
  • Make complex joins easier to read in code review.

Examples

Formatted SELECT

Keywords align vertically so nested clauses are easier to scan.

FAQ

Does it validate SQL against my database?
It focuses on formatting, not dialect-specific execution or schema validation.