DevToolBox
JavaScript Tools

JavaScript Minifier

Minify JavaScript by reducing whitespace and optional formatting.

Processing runs locally in your browser. Pasted JavaScript is never executed with eval or equivalent APIs.

Load sample
0 chars · 1 lines
0 chars · 1 lines

How to use

  1. 1Paste JavaScript into the input editor.
  2. 2Choose compress, mangle, and comment options, then minify.
  3. 3Review size savings and copy or download the result.

Notes

  • Minification uses Terser locally. Compress and mangle options are configurable.
  • Minified output is syntax-checked again and is never executed.

Behavior details

  • Size savings use UTF-8 byte lengths.
  • Important comments can be preserved when comment removal is enabled.

Frequently asked questions

What is the JavaScript Minifier?

The JavaScript Minifier is a free DevToolBox utility that processes data locally in your browser.

Are my inputs stored?

No. This tool processes data in your browser and does not upload your input to a DevToolBox server.

Do I need an account?

No account is required to use this tool.

Is minified code executed in the browser?

No. Terser transforms the text only. DevToolBox does not run the input or output as a program.

Related JavaScript tools

View category