Strip comments and whitespace, reformat with your indentation style, catch syntax errors, and batch-process files — all instantly, in your browser.
The mangler is a best-effort, whole-word renamer (not full scope analysis) — verify output before shipping it. See FAQ below.
Upload several .js files — each is minified independently using the options above.
Saved only on this device — never uploaded anywhere.
console.*(...) calls and/or debugger; statements before output.Yes. Smaller files download and parse faster, which helps page load time and Core Web Vitals, especially on mobile connections.
Yes, in your own build pipeline via source maps. This browser tool doesn't generate a source map — keep your original, readable source file for debugging and only ship the minified output.
No. Minification only removes formatting — it isn't encryption or obfuscation. Anyone can beautify and read minified JavaScript. Never rely on it to hide secrets or logic.
No. Minifying, beautifying, and validating all run locally in your browser. Nothing you paste or upload is sent to or stored on our servers.
It parses your code with the browser's own JavaScript engine to catch syntax errors — it does not execute your code. Top-level import/export module syntax and a bare top-level "return" aren't supported by this check; wrap such code in a function first.
It places each statement on its own line with normalized spacing, but skips the extra indentation for nested blocks — a middle ground between fully minified and fully indented code.
It's marked experimental. It renames declared variables using whole-word matching rather than full scope analysis, so it can occasionally rename the wrong thing in edge cases. Always test the output before shipping it.
Yes. Use Batch mode to upload several .js files; each is minified independently and you can download them individually or together as a ZIP.
All tools are free. If they've saved you time, consider supporting us.