Clean up messy inline SQL queries. Paste your unformatted SQL on the left to see the beautifully indented and structured output on the right. Supports various SQL dialects.
Open 24 built-in tools from your browser sidebar, use quick actions from the right-click menu, and reach every RizCraft tool without hunting through tabs.
Firefox and Edge versions are coming next. Free to install
Format or minify SQL in your browser. The formatter adds consistent indentation and keyword casing so joins, conditions, subqueries, and common table expressions are easier to review.
Database logs, ORM output, and copied queries often arrive as one long line. Formatting makes the statement's structure visible without intentionally changing its meaning. It can help you review nested expressions, match parentheses, and compare related clauses.
A formatter is not a SQL validator or query optimizer. Always test the result against the target database before using it in production.
Use the formatter in four steps:
PostgreSQL, MySQL, SQLite, SQL Server, and other systems differ in quoting, operators, functions, and procedural syntax. Selecting the closest dialect helps the formatter recognize those constructs. Formatting alone cannot guarantee that a query is valid or will produce the intended result.
Tell us what to improve or which tool to add next.