JavaScript Minifier - Online JS Compress and Mangle Tool

Minify and simplify JavaScript online with Terser. Supports custom compress, mangle, output, and parse options in the browser.

How to use

  1. Terser options:Customize compress, mangle, output, and other options in the upper-left editor. JSON5 syntax is supported.
  2. JavaScript source:Paste JavaScript source code in the lower-left editor. Minified output updates on the right.
  3. Minified output:Copy the compressed JavaScript directly. ES6+ syntax is supported for frontend build optimization.