About this tool
Paste JavaScript or open a UTF-8 .js or .mjs file and choose Minify to remove whitespace and ordinary comments. License and preservation comments are kept, and variable names are not renamed, so the output stays recognisable. TypeScript and JSX are not supported.
JavaScript is parsed and printed locally without running it. Names and expressions are preserved. Minify removes ordinary comments but keeps license and preservation comments.
UTF-8 text · up to 5 MiB · stays on this device
Editing the input or settings clears the previous result. Copy and download always use the latest completed conversion.
Your text and files stay on this device. Nothing is uploaded or saved by this tool.