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
LLVM
A style complying with the LLVM Coding StandardsGoogle
A style complying with Google Style GuidesChromium
A style complying with Chromium Coding StyleMozilla
A style complying with Mozilla Coding StyleWebKit
A style complying with WebKit Coding StyleGNU
A style complying with the GNU Coding Standards