SQL Formatter and Minifier
Paste SQL and choose Format or Minify, then copy or download the output. Review the transformed text before executing it in your database.
Runs locally in your browser
Paste SQL and choose Format or Minify, then copy or download the output. Review the transformed text before executing it in your database.
Runs locally in your browser
Paste a statement into the editor and pick one of two buttons: Format SQL breaks each clause onto its own line and indents the body, Minify SQL collapses runs of whitespace into single spaces. Both transforms run inside this tab; the statement is never sent to VoriTools.
The output pane is read-only, so the result is copied or downloaded rather than edited in place. Load example fills the editor with a query that joins orders to users if you want to see the behaviour before pasting real SQL.
-- and # line comments, /* block comments */ and every quoted literal survive the transform. In minified output a line comment is rewritten as a block comment, so the statement that followed it is not swallowed once its line break is gone.
Quoted text is returned unchanged: SELECT 'a b' keeps both spaces, and a semicolon or a double hyphen inside a string never splits the statement.
The layout is driven by keywords, parentheses and quoting rules rather than by a parser for a particular engine, so a statement with a syntax error is still laid out and returned without a warning. The counters report size, not correctness.
Neither button contacts a database: nothing is connected to, executed or validated.
MySQL backtick identifiers, SQL Server [bracketed] names and TOP, PostgreSQL ::casts with the ->> and #> operators, and Oracle functions such as NVL are left alone, because the transform changes spacing and line breaks rather than tokens. Stored-procedure bodies are laid out by keyword instead of being parsed as a block.
Processing runs in the browser tab, so the practical ceiling is your device's memory instead of an upload limit; a 15 KB statement returns immediately.