Uppercases keywords and breaks major clauses onto their own lines.

Learn

SQL Prettify Guide

About this tool

Reformat a SQL query with consistent indentation and uppercased keywords, so a one-line statement pasted out of a log becomes something you can read. It reformats; it does not validate.

Questions

Does it understand my dialect?
It replaces text that resembles common keywords, without understanding quoting or dialect rules. It might even change a quoted string or comment. Always check the output; it cannot validate a query or predict its effect.