Skip to main content
dubinity

Developer & Web

JavaScript Minifier

Minify JavaScript with Terser: compression, name mangling and licence comments kept if you want them.

  • Runs in your browser
  • Works on mobile
  • In: JavaScript
  • Out: JavaScript
Loading the tool…

Your files and text are processed on your own device, inside this page. Nothing is uploaded to Dubinity or stored, and closing the tab discards it. How privacy works

About JavaScript Minifier

Runs Terser, the minifier behind most build tools, inside your browser. Compression removes dead code and shortens expressions; mangling shortens local variable names.

Syntax errors are reported with a line and column. Module mode allows stricter output for import/export code.

How to use it

  1. 1Type or paste your text, or open a file.
  2. 2Choose any options - the result updates as you type.
  3. 3Copy the result or download it as a file.

Questions

Was this tool helpful?

All developer tools
  • JavaScript Formatter

    Indent and format JavaScript or TypeScript, including minified bundles, with a choice of brace style.

    JavaScript · TypeScript · JSON
    Runs in your browserOpen tool
  • CSS Minifier

    Minify CSS conservatively: comments, whitespace, empty rules and short hex colours, nothing risky.

    CSS
    Runs in your browserOpen tool
  • HTML Minifier

    Shrink HTML safely: collapse whitespace, drop comments and minify inline CSS and JavaScript.

    HTML
    Runs in your browserOpen tool
  • JSON Formatter

    Format and indent JSON, or minify it, with exact error positions and big numbers kept as written.

    JSON
    Runs in your browserOpen tool
  • Password Generator

    Create strong random passwords with the character rules a site demands, and see the real entropy.

    NONE
    Runs in your browserOpen tool
  • What Is My IP

    See the IP address our server sees, the rough location attached to it and what your browser sends.

    NONE
    Server lookupOpen tool