JavaScript Minifier
Remove comments and whitespace from JavaScript — shrink JS files for production.
276 chars
−44%
155 chars
How JavaScript minification works
Minification removes single-line comments (//), block comments (/* */), redundant whitespace, and blank lines while preserving string literals and template literals intact. The result is valid JS that browsers execute identically to the original.
To also minify CSS, use the CSS Minifier. For HTML minification, try HTML Minifier. To measure code size differences, use the Text Diff tool.
Private & free — this tool runs entirely in your browser.
Recommended: IndieKit — Ship your Next.js startup in days.affiliate
Related Developer Utilities tools
RegExp Tester
Test regular expressions and inspect matches locally.
Regex Visualizer
Visual regex pattern diagram with live match highlighting and capture group annotations.
Subnet Calculator
Compute CIDR subnets, usable hosts, and network ranges.
Cron Parser
Translate cron syntax into plain English.
URL Parser
Break a URL into protocol, host, path, and query parts.
HTML Previewer
Paste HTML and see it rendered live in a safe, sandboxed preview.
HTTP Status Code Reference
Search and look up every HTTP status code and its meaning.
MIME Type Lookup
Find the MIME type for a file extension, or the extensions for a MIME type.