Format SQL with readable clauses and indentation, or minify it by removing comments and redundant whitespace. Choose an operation and SQL dialect, then copy or download the result.
Example
Input
select id,name from users where id=1 and active=true
Format
SELECT id, name
FROM users
WHERE id = 1
AND active = TRUE
Minify
SELECT id, name FROM users WHERE id = 1 AND active = TRUELimits and behavior
- Input is limited to 10 MB and processed in a browser worker.
- Formatting does not validate SQL against a database; vendor-specific procedural syntax may not be laid out as expected.
- Minifying removes comments and whitespace outside strings. Review the output before use.