SQL Formatter
Make long, single-line SQL queries readable for code reviews, documentation and debugging.
Runs in your browser. Nothing is uploaded Free, no sign-up Works on mobile
Dialect
Keywords
Indent
How to use SQL Formatter
- Paste your SQL.
- Choose the dialect and keyword case.
- Copy the formatted query or save it as .sql.
Frequently asked questions
Does formatting change what the query does?
No. Only whitespace and keyword case change. The logic of the query stays the same.
Can I format several queries at once?
Yes. Separate them with semicolons and each one is formatted with a blank line between.
Is my data sent to a server?
No. Everything runs in your browser, so API keys, tokens, configs and customer data never leave your machine.
Related tools
All Developer Tools →- Code Beautifier Make minified or badly indented code readable again.
- JSON Formatter Pretty-print messy JSON, find syntax errors fast, or minify it for production.
- Mock Data Generator Create sample data for testing apps, demos and databases, with names and places that look right for Indian users.
- HTML to Markdown Turn HTML from a web page, CMS or email into Markdown you can use in READMEs, wikis and static site generators.
- HTML / CSS / JS Minifier Shrink CSS, JavaScript and HTML by removing comments, whitespace and unnecessary characters.
- .env Formatter Check environment files for mistakes and convert them for Docker, Kubernetes or documentation.