What this tool does
This formatter takes a cramped, single-line SQL query and rewrites it with consistent indentation, line breaks and keyword casing, making it far easier to read and review. It supports several popular SQL dialects.
Why formatting matters
- Readable queries are easier to debug and maintain.
- Consistent style helps teams review code and spot mistakes.
- Clear structure makes complex joins and sub-queries understandable.
Example
A one-line SELECT … FROM … WHERE … ORDER BY … becomes a neatly indented, multi-line query with keywords aligned.
Privacy: Your SQL is formatted entirely in your browser — nothing is uploaded, so it's safe for queries that mention table or column names.