Skip to main content

Minify Code

Shrink JavaScript with terser (compress + mangle), CSS by stripping comments and whitespace, and HTML while preserving <pre>, <textarea>, <script>, and <style>. See original vs minified size and percent saved after each run.

Features

Frequently Asked Questions

Which minifier is used for JavaScript?
terser, the same library Webpack and Rollup use by default. Compression and variable mangling are both enabled.
Is my code uploaded anywhere?
No. All minification runs in your browser. Nothing is sent to a server.
Does the HTML minifier break <pre> or <script> content?
No. Contents of <pre>, <textarea>, <script>, and <style> are extracted, preserved verbatim, and spliced back in after whitespace collapse.