Pretty printer for JavaScript programs

This formats a JavaScript file - adding indents for each "{" and subtracting for each "}" character.
If the first char is { the line will be indented. All other curly brackets affect following lines. Paste your code into the upper textbox, click "GO", and your formatted file will be written into the lower box

Indent spaces: 1 2 3 4

Please send any comments to