One more very simple solution: use [notepad++][1]. Inside there is very good plugin called [Poor man's sql formatter][2]. The drawback is that you have to paste `SQL` inside the `notepad++`. But it is **free**. There is also a [web page][3], but I did not try it. [1]: https://notepad-plus-plus.org/ [2]: http://architectshack.com/PoorMansTSqlFormatter.ashx [3]: http://poorsql.com/