Instant SQL Formatter

This is a excellent website which you can use to format a code in T-SQL / PL-SQL and other languages:

https://www.dpriver.com/pp/sqlformat.htm