JS Minification
Compact JavaScript with a local parser, preserve string and statement boundaries, and report UTF-8 size. Invalid or unsupported syntax produces an error.
- Paste your source.
- Compress it to fewer bytes.
- Copy the minified code.
Compact JavaScript with a local parser, preserve string and statement boundaries, and report UTF-8 size. Invalid or unsupported syntax produces an error.
JS Minification is a free JavaScript Tools utility that runs entirely in your browser — nothing you enter is uploaded.
How to use JS Minification
- Enter or paste your text into the input field to begin.
- JS Minification updates the output automatically as you type.
- Use Copy to keep or reuse the result.
About this tool
Parses JavaScript scripts or modules with bundled Babel 7.26.4 and generates compact code without transpilation, name mangling or execution. Strings, regular expressions, template text and statement boundaries are handled by the parser. Ordinary comments are removed; /*! notices and @license/@preserve comments remain. TypeScript, JSX and unsupported syntax are errors. Input is limited to 2 MiB of UTF-8 text. Byte totals use UTF-8; compaction is not guaranteed to make every input smaller. Source maps and exact source-text introspection are not preserved.
Everything JS Minification does happens on your own device. JS Minification is a free JavaScript Tools utility that runs in your browser, doing its work on the input you provide without a backend.
Because it runs on your device, it is fast and private and works offline once loaded. Your input never leaves the page, and no account or install is required.
Frequently asked questions
How do I use JS Minification?
Compact JavaScript with a local parser, preserve string and statement boundaries, and report UTF-8 size. Invalid or unsupported syntax produces an error.
Does JS Minification cost anything?
The tool is free to use. Its local parser accepts up to 2 MiB of UTF-8 input per operation.
Is my input private in JS Minification?
Yes — your input never leaves your device; JS Minification does all the work in your browser.
Does JS Minification work on mobile?
Yes — JS Minification is just a web page and runs on any modern browser, including phones and tablets.