SQL Formatter
Indent SELECT, INSERT, and common DDL.
Loading tool
Paste a long query and indent clauses. This does not execute SQL and does not know your schema.
How to use this tool
- Paste the snippet. Drop JSON, code, or a token into the input. It is not sent to a server.
- Run the action. Format, decode, or generate. Parse errors stay on the page.
- Copy the output. Copy the result back into your editor or terminal.
Dialect
A generic ANSI-ish style is used. Postgres, MySQL, and SQLite extras are best-effort. Proprietary functions are left as identifiers.
Frequently asked
Will this run against my database?
No. There is no connection string field.
Can it parameterize values?
No. It only formats text.
Are comments kept?
Line and block comments are preserved when possible.
Does it rewrite JOIN order?
No. Semantics stay as written.
Is the query uploaded?
No.