Search and jump to any tool. Type to filter; use arrow keys to move and Enter to select.
The SQL formatter breaks a one-line query into readable lines, indents the main clauses and can convert keywords to uppercase.
The SQL formatter breaks a one-line query into readable lines, indents the main clauses and can convert keywords to uppercase. You choose a dialect, an indent width and whether to capitalize keywords. It is meant for tidying everyday SELECT, INSERT, UPDATE and DELETE statements before you review, share or commit them.
select id, name from users where active = 1 and age > 18 order by name limit 10;
SELECT id,
name
FROM users
WHERE active = 1
AND age > 18
ORDER BY name
LIMIT 10;Good to know. This is a keyword-based formatter, not a SQL parser, so it does not validate syntax or understand subqueries and CTEs. Treat the output as a readability aid.