JavaScript Minifier — Free
Remove comments and collapse whitespace from JavaScript. Updates in real time. 100% private — for full AST minification use a build tool like esbuild.
Input JS
Minified JS
🗜️
What gets removed
Block comments (/* … */), line comments (//), extra spaces and newlines. String contents are preserved exactly.
⚠️
Basic minification
This is whitespace/comment removal, not AST-based. For variable renaming and tree-shaking use esbuild or terser.
🔒
Fully private
All processing runs in your browser. Your JavaScript code never leaves your device.