
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?
- Local transformations process input in your browser. HTTP and WebSocket tools send user-initiated requests. Optional product analytics is off by default, excludes tool input and output, and stays off when your browser signals Do Not Track or Global Privacy Control.
- Can it minify a query back to one line?
- Yes — useful when embedding SQL in a string literal or a config value.