Parser-backed by default
Balanced mode uses Terser’s JavaScript parser, compressor and mangler instead of relying on whitespace-only regex replacements. Parser errors are surfaced before a result is accepted.
Minify JavaScript in your browser with Terser 5 parser compression when available, a conservative local fallback, exact byte and gzip savings, file import and one-click download.
Paste or drop a .js/.mjs file, minify it, inspect raw and gzip savings, then copy or download the result. Your JavaScript is never uploaded by WebToolArc.
Balanced mode uses Terser’s JavaScript parser, compressor and mangler instead of relying on whitespace-only regex replacements. Parser errors are surfaced before a result is accepted.
Character counts can hide multibyte text. The cards use exact UTF-8 bytes and the browser’s real CompressionStream gzip output when supported.
Safe keeps compression and mangling off. If the optional optimizer cannot load at all, the local fallback preserves line boundaries and avoids claiming AST-level rewriting.
Use the savings as a deployment signal, not as proof of equivalence. Keep the source file, test the minified artifact in its real classic-script or module context, and be cautious with top-level mangling, console removal and reflection-sensitive names.