SQL Formatter

Paste a query, get readable, indented SQL back.

Input

Formatted

7 lines
1
2
3
4
5
6
7
SELECT id,
name,
email
FROM users
WHERE role = 'admin' AND created_at > '2026-01-01'
ORDER BY created_at DESC
LIMIT 20