Formatters

SQL Formatter

Beautify SQL for PostgreSQL, MySQL, SQLite, MS SQL, BigQuery, Snowflake, Redshift, and standard SQL. Adjust indent and keyword case to match your team's style guide.

SELECT
  u.id,
  u.name,
  count(o.id)
FROM
  users u
  LEFT JOIN orders o ON o.user_id = u.id
WHERE
  u.created_at > '2024-01-01'
GROUP BY
  u.id,
  u.name
ORDER BY
  3 DESC;

Related tools