Is my SQL sent to a server?
No. Formatting and minify run locally in your browser.
Format or minify SQL queries directly in your browser.
Preparing the editor...
The guide and instructions on this page are available while the tool loads.
SQL Formatter indents SELECT, JOIN, INSERT, and CTE statements so code reviews and documentation are easier to read.
Minify mode collapses whitespace when you need a compact single-line query for logs or embedded scripts.
Runs locally — avoid pasting production credentials even when processing stays on your device.
Typical tasks this tool is built for.
SQL formatting and minify run locally in your browser. Queries are not sent to a server.
Practical tips before you download or share the output.
This formatter improves readability for common SQL patterns, but it is not a full SQL parser. Very advanced procedural SQL may need custom handling.
Longer reads that pair well with this tool.
Common next steps after using this tool.
Format and validate JSON safely in your browser.
Generate QR codes for text, URLs, email, phone, SMS, and Wi-Fi in your browser.
Generate strong random passwords directly in your browser.
Encode and decode Base64 text directly in your browser.
Decode JSON Web Tokens directly in your browser.
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes in your browser.
Situations where this workflow saves time.
No. Formatting and minify run locally in your browser.
It improves readability. It does not execute or fully parse every database dialect — always test on your database.
Yes. Paste the one-line query and run format mode to expand indentation.
Common -- and block comments usually survive, but always verify before running against production data.
Browse related tools or open the full workspace.