Code Minifier

Minify JSON, HTML, CSS, and JavaScript snippets by stripping extra whitespace and noise.

Loading interactive controls…

Report a problem
ASKRS SHOPExplore products at ASKRS SHOP

Frequently asked questions

What does minification preserve?

JavaScript is parsed and printed without name mangling or optimization. CSS selectors and values, HTML text whitespace and comments, and JSON number tokens are retained.

How are JavaScript errors handled?

A JavaScript parser handles ASI, regular expressions and nested templates. Invalid or unsupported syntax reports a line and column while retaining the original and previous result.

Related tools