Loading...
Turn dense one-line SQL into cleanly indented, readable queries — or minify formatted SQL back into a compact single line for logs and transport. Supports the dialect-specific syntax of MySQL/MariaDB, PostgreSQL, SQLite, and more via a battle-tested formatting engine.
Paste a query dumped from an ORM, extracted from a slow-query log, or copied from a code review, and get properly capitalized keywords, sensible line breaks, and indented subqueries instantly. Formatting is local; your queries never leave the browser.
The formatter understands the common core plus dialect specifics for MySQL/MariaDB, PostgreSQL, SQLite, T-SQL (SQL Server), PL/SQL (Oracle), and N1QL, among others. Formatting is syntax-aware, not a naive keyword replace.
No. Only whitespace, capitalization, and line breaks change — semantics are untouched. Always paste the formatted version back into your actual environment for a final check if the query is critical.
Single-line queries are easier to log, embed in URLs or JSON payloads, and diff in some pipelines. Minified SQL still executes identically.
PureKit · sql · Free online tool — files processed locally in your browser, no upload.