A best-effort JS minifier
This tool removes comments and collapses whitespace without renaming variables, so it is safe for most scripts but produces less aggressive savings than a full AST-based minifier like Terser.
Paste JavaScript to strip comments and extra whitespace for a smaller file.
Paste your input into the editor.
Choose format / mode options if available.
Copy the transformed output (it usually updates as you edit).
This tool removes comments and collapses whitespace without renaming variables, so it is safe for most scripts but produces less aggressive savings than a full AST-based minifier like Terser.
Paste into JavaScript Minifier, tweak options, and copy the output. Formatting and conversion run in the browser for this tool.
Keep a backup of original input before bulk transforms. Invalid input should show an error instead of silent corruption.
Whenever possible, JavaScript Minifier processes your data locally with JavaScript in this page. That means drafts, secrets, and unfinished work stay on your device by default. Prefer this workflow when you do not want to upload sensitive text, tokens, passwords, or files to a third-party service.
No, only comments and whitespace are removed — variable and function names stay the same.
For quick sharing or small scripts it works well; for production bundles, a dedicated build-time minifier is safer.
For most FlyUtils tools, no. Processing happens in your browser with JavaScript. If a tool ever needs a server, that will be stated clearly on the page.
Yes. JavaScript Minifier is free, with no sign-up and no artificial usage caps for normal personal and work use.
Yes. The page is mobile-first, so you can paste input, tweak options, and copy results from a phone or tablet.