Online Javascript beautifier takes ugly, minified or obfuscated javascript and make it clean, well-formatted code. It gives the code proper indentation, newlines, spaces to make it easier to read. There are many options in the options button to give the beautifier your personal beautifying tastes.

Enter javascript here:
Results: