JS Minifier Lite
Minify simple JavaScript snippets with safe lightweight cleanup.
Shrink small JS snippets
For a one-off snippet — an inline script, a bookmarklet, a small embed — running a full bundler is overkill. This lite minifier does safe, lightweight cleanup: stripping comments and unnecessary whitespace to make a snippet smaller.
It stays conservative so it will not mangle your logic, which also means it is not a substitute for a production build tool. Paste a small script, get a compacted version, and copy it where a smaller footprint helps.
Lighter JS, locally
It does safe, lightweight minification for a one-off snippet where a full bundler would be overkill. Everything runs in your browser and nothing is uploaded.
Frequently asked questions
What does the lite minifier remove?
Block comments, whole-line // comments, and extra whitespace, including line breaks.
Can it break my code?
Yes, if your code leaves out semicolons and relies on line breaks, since joining lines can merge statements. Use terser or esbuild for production builds.
Does it rename variables?
No. It only removes whitespace and comments, so the output stays readable.
Related tools
Practical utilities for everyday web development work.