Input

Code language
JavaScript mode

Minifies plain JavaScript, CSS or HTML locally without executing code. JavaScript identifiers are kept. License comments are retained; HTML comments and inline scripts/styles are kept. HTML collapses ordinary whitespace, so review layouts using CSS white-space rules.

Result

Run the tool to see the result.

How to use

Choose JavaScript, CSS or HTML and paste code or open a UTF-8 file up to 1 MB. JavaScript names and license comments are retained. HTML comments, preformatted content and inline scripts/styles are kept. Ordinary HTML whitespace is collapsed. Copy, download or reuse the resulting text.