SQL Formatter
Make SQL readable with consistent indentation and keyword casing.
Input SQL
Runs in your browser
Tip: use Format for readability and Minify for compact output.
Output
Privacy note: formatting happens locally in your browser.
What this SQL formatter does
It formats SQL queries with line breaks and indentation to improve readability and reviews.
When to use it
Use it to clean up queries before sharing or saving in docs and code reviews.
Limitations
This is a lightweight formatter and may not handle every SQL dialect nuance.
How to format SQL
Paste SQL and click Format.
- Paste your SQL query into the input.
- Click Format.
- Copy the formatted SQL.
FAQ
Does this tool upload my SQL?
No. Everything runs locally in your browser.
Will it change query logic?
It should not; it only changes whitespace and casing.
Does it support all dialects?
It supports common SQL patterns, not all dialects.