Practical guide
Using the SQL Formatter
Format SQL with readable clauses and indentation.
Example
Input
select id from users where active = true order by nameExpected result
SELECT id
FROM users
WHERE active = true
ORDER BY nameSupported inputs
- SQL query text for formatting and indentation.
Limitations
- Formatting is a lightweight text transformation, not a SQL parser or validator; review dialect-specific syntax and output.
Frequently asked questions
Does this run the SQL query?
No. It only formats text; it does not connect to a database or execute statements.
Does it support every SQL dialect?
No dialect-specific parsing is performed. Check the formatted query with your database tooling before use.