SqlFormatter is a project mainly written in PHP, it's free.
sql query formatting
Little tool meant to format a SQL query to be more readable.
Install the folder on a web server with PHP installed and call index.php in a browser.
Current features (see unit tests):
But :