formatter.org

Code Formatter | Code Beautifier

This is an online code formatting tool that supports multiple languages and code styles.

Steps
1. select a language.
2. select a coding style.
3. paste your code into the left text box.
4. click the format button, the beautified code appears in the text box on the right.

Coding Style