SQL Formatter

Format SQL for reading, or minify it, in the dialect you use.

Result
SELECT
  u.id,
  u.email,
  count(o.id) AS orders
FROM
  users u
  LEFT JOIN orders o ON o.user_id = u.id
WHERE
  u.created_at > '2026-01-01'
GROUP BY
  u.id,
  u.email
ORDER BY
  orders DESC

More in the yard