SQL Formatter
Pretty-print SQL locally with a lightweight keyword formatter.
Embed this tool
Copy the iframe code below to add this tool to your site. The embed loads SQL Formatter without ads.
Embed code copied to clipboard.
Tool workspace
Lightweight keyword-based SQL pretty-print in your browser. Does not execute SQL or connect to a database.
How it works
This does not execute SQL, connect to a database, or guarantee dialect-perfect formatting. Empty input clears the result—no error.
Examples
- select id from users where active = 1 → multi-line keyword layout
Privacy
FAQ
Does this run my SQL?
No. It only reformats text in your browser.
Do I need an account?
No. All published tools work for guests without login.