I have some JavaScript code which I want to make more readable. However, due to the amount of code I want to use a tool which does this automatically for me.
The code which I want to convert is written on a single line without spaces.
Quick search found http://jsbeautifier.org/ which seems to do what you are looking for online.
Search terms: javascript beautifier