
Toolbit
SQL Formatter and Query Beautifier
Take a query that arrived as one long line and turn it into something you can review. Toolbit indents clauses, aligns joins, and normalises keyword casing locally.
What the SQL Formatter does
- Clause-aware indentation for SELECT, JOIN, WHERE, and CTEs.
- Uppercase or lowercase keyword normalisation.
- Minify back to a single line for embedding in code.
- Works with MySQL, PostgreSQL, SQLite, and standard SQL dialects.
How to use it
- Paste the query, however mangled it arrived.
- Choose your indentation and keyword casing.
- Copy the formatted query into your editor or ticket.
Why it runs locally
Toolbit has no backend. The SQL Formatter is implemented with standard browser APIs, so your input is processed in the tab and never uploaded, logged, or retained. That is what makes it safe to paste real data into — and it is also why the tool keeps working with the network disconnected, once you have installed Toolbit as an app.
Frequently asked questions
- Which SQL dialects are supported?
- The formatter handles standard SQL along with MySQL, PostgreSQL, and SQLite syntax, including common table expressions and window functions.
- Is it safe to paste a production query?
- No. Every Toolbit tool runs entirely in your browser using standard Web APIs. Your input is never uploaded, logged, or sent to a third party — you can open the network tab and watch it stay quiet.
- Can it minify a query back to one line?
- Yes — useful when embedding SQL in a string literal or a config value.