JS Minifier Online
Compact JavaScript with a local parser, preserve string and statement boundaries, and report UTF-8 size. Invalid or unsupported syntax produces an error.
- Paste JavaScript.
- Minify it in the browser.
- Copy the compact output.
Compact JavaScript with a local parser, preserve string and statement boundaries, and report UTF-8 size. Invalid or unsupported syntax produces an error.
JS Minifier Online is a free JavaScript Tools utility that runs entirely in your browser — nothing you enter is uploaded.
How to use JS Minifier Online
- Type or paste your text into JS Minifier Online's input area.
- Watch the output update instantly while you adjust the text.
- When it looks right, Copy to save it.
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.
There is no server behind JS Minifier Online. JS Minifier Online handles your input locally and returns the result instantly, with no sign-up.
It is designed to do one job well and stay out of your way. Nothing you enter is uploaded, and it keeps working offline once the page has loaded.
Frequently asked questions
What does JS Minifier Online do?
Compact JavaScript with a local parser, preserve string and statement boundaries, and report UTF-8 size. Invalid or unsupported syntax produces an error.
Is JS Minifier Online free to use?
The tool is free to use. Its local parser accepts up to 2 MiB of UTF-8 input per operation.
Does JS Minifier Online upload my data?
No — JS Minifier Online processes everything locally in your browser, so nothing you enter is uploaded or stored.
Does JS Minifier Online work on mobile?
Yes — JS Minifier Online is just a web page and runs on any modern browser, including phones and tablets.