Toolkist

Code Minifier

Strip whitespace and comments from JS, CSS and HTML — entirely in your browser.

About Code Minifier

Minify JavaScript, CSS and HTML with pure in-browser implementations — no external libraries, no uploads. The JS minifier is string-aware (handles template literals, quoted strings and escape sequences) and preserves licence comments. The CSS minifier removes block comments and collapses whitespace around punctuation. The HTML minifier removes non-conditional HTML comments and whitespace between tags.

Is my code uploaded?

No. All three minifiers are pure JavaScript running in your browser. Nothing leaves your device.

Does the JS minifier handle TypeScript?

It handles the syntax-level whitespace and comment removal that is common to JS and TS. Type annotations are left as-is; use a proper TS compiler for full transpilation.

Are licence comments preserved?

Yes — JS blocks starting with /*! are kept. Standard block comments (/* … */) and line comments (//) are removed.

Related: Code Formatter · SCSS Compiler

Keywords: code minifier, minify JS CSS HTML, browser minifier, no upload minifier