Code Minifier

Uses production parsers instead of regex hacks. See original and minified sizes and copy the result when it is valid.

Developer Tools Formatting Runs locally No sign-up

Code minifier

Original —
Minified —
Saved —
Gzip (est.) —

JavaScript is minified with Terser (compression and identifier mangling, no source map). CSS is minified with CSSO. The HTML mode conservatively removes comments and collapses whitespace, while leaving pre, textarea, script, and style contents untouched. The heavier parsers load only when you press Minify.

About Code Minifier

Minify JavaScript, CSS, and HTML with real parsers and a safe, size-saving result.

This tool runs locally in your browser. It does not upload your input, require an account, or store your data on a server. If a feature needs a network request, the interface asks before sending anything.

code minifierminify javascriptminify cssminify html

Search tools

↑ ↓ navigate Enter open Esc close