mirrorangel

SQL Formatter

Developer · v1.0.0 · runs fully in the browser, data never leaves your device

Original SQL
Formatted result
SELECT
  u.id,
  u.name,
  count(o.id) AS order_count
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.name
HAVING
  count(o.id) > 3
ORDER BY
  order_count DESC
LIMIT
  20;

Plain text processing only; no database connection is made. If valid statements are reported as syntax errors, the dialect is probably wrong — e.g. a MySQL statement with backticks fails under Standard SQL.

Similar tools