SQL Formatter + Beautifier
Fast browser-based formatting for pasted queries, request logs, and migration snippets.
SQL input
Tune indentation and keyword casing, then paste any query block to reformat it.
Formatted SQL
Copy the formatted query or minify the input back down to one line.
SELECT id,
email,
created_at
FROM users
LEFT
JOIN memberships
ON memberships.user_id = users.id
WHERE users.active = 1
ORDER BY created_at desc