JavaScript Formatter and Minifier

Local tool Format JavaScript with a chosen indentation style or compress it for compact output.

Both operations use the original input.

Good to know

Formatting reconstructs indentation from syntax. It cannot recover original variable names, deleted comments or the original project structure.

FAQ

Does formatting execute the code?

The formatter parses the input as JavaScript and writes text output without running the program.

Will minifying the result replace my input?

The formatter and minifier both read the source field and place their output in the result field.