Skip to main content
Utilnivo

Developer

JS Minifier

  • Browser-based
  • No signup

Dedicated JavaScript compression for smaller scripts. Paste code, copy the minified output, and compare input versus output size. A conservative pass that does not rename variables or mangle identifiers.

100% Client-Side

Your data never leaves your computer.

How to use this tool

Paste JavaScript into the input editor. Review the minified output, use Format to beautify, then copy the compact script. Run your tests after minifying—especially if the source relied on automatic semicolon insertion at line breaks.

Worked example

Example: a 120-byte function with comments and indentation may shrink to ~70 bytes while keeping the same logic: `function greet(name){return 'Hi '+name}`.

How it works

Opens the JavaScript Formatter in minify mode. Strips block and line comments and collapses whitespace where safe, producing a smaller script without renaming identifiers.

Limitations

Lightweight whitespace minifier—not Terser or a bundler. Test after minifying. Use JavaScript Formatter and Minifier for format and minify in one panel.

Privacy and file handling

Your data is processed in your browser and is not uploaded to our server.

Frequently asked questions

How is this different from JavaScript Formatter and Minifier?

JS Minifier is compression-only with byte savings shown. The combined formatter also pretty-prints code and lets you toggle modes on the same input.

Is this the same as Terser or UglifyJS?

No. This is a lightweight whitespace and comment remover. It does not rename variables, dead-code eliminate, or parse ES modules.

Should I test after minifying?

Yes. Always run your tests—especially if the source relied on line breaks for automatic semicolon insertion.

Page last reviewed: