SQL Formatter
Indentation & line breaks, keyword case, minify
SQL
Formatted result
Strings, comments, quoted identifiers and bind variables (#{..}, ${..}, ?, :name) are left exactly as they are. Only whitespace, line breaks and keyword case change. In one-line mode, -- comments become /* */.
How to use SQL Formatter
- Breaks long single-line SQL into lines by SELECT, FROM, WHERE and so on, and indents it.
- Make keywords all upper or lower case, or minify the query back into one line.
- Useful for reading queries from logs or during code review.