Paste a SQL query and get it back with each clause (SELECT/FROM/WHERE/JOIN/GROUP BY/...) on its own line, columns and conditions broken one per line. Runs entirely in your browser.
This is a keyword-driven reformatter, not a full SQL parser — it doesn't validate the query, and subqueries in parentheses aren't specially re-indented (they're broken with the same rules as top-level SQL, which can look flat for deeply nested queries).
curl -sS -X POST https://devops.majbase.com/sql-formatter/api -H "Content-Type: application/json" -d '{"sql":"select id, name from users where active = true"}'
Returns {"result": "..."}, or {"error": "..."}.