Code Minifier
Compress JavaScript, CSS & HTML instantly — 100% client-side, nothing leaves your browser.
Click Minify to see compressed output here.
Compress JavaScript, CSS & HTML instantly — 100% client-side, nothing leaves your browser.
Click Minify to see compressed output here.
Supported languages: Minifies HTML, CSS, and JavaScript from separate language tabs.
Editor workflow: Use syntax-highlighted editors, load a file, paste code, run minify, then copy or download output.
Size feedback: Shows original size, minified size, saved bytes, and reduction percentage after minification.
Code minification removes unnecessary characters such as whitespace, comments, and formatting where possible. The result is compact code that is usually harder for humans to read but smaller to transfer.
This tool supports the three languages exposed in the UI: HTML, CSS, and JavaScript. JavaScript minification uses Terser in the browser when the external library is available; HTML and CSS are compacted by JavaScript routines in the page.
Minification should preserve behavior for compatible, valid code, but it is still a transformation. Always test the minified output in the browsers, build pipeline, or runtime where you plan to use it.
The minifier runs in the browser UI. It loads editor/minifier libraries from CDNs and does not submit your code to a Laravel processing endpoint.
Minification removes unnecessary characters such as whitespace, comments, and formatting so code can be represented more compactly.
Minification can reduce transfer size, but real performance depends on caching, compression, network conditions, and how the code is loaded.
Yes. Choose the HTML tab and run the minifier to compact supported HTML input.
Yes. Choose the CSS tab to remove unnecessary whitespace and comments from CSS where the tool can do so safely.
Yes. The JavaScript mode uses Terser in the browser when the library is available.
It should preserve behavior for valid compatible code, but you should test minified output before using it in production.
Keep moving through common developer workflows with JSON Formatter, Text Compare, Markdown Editor. You can also browse the full Developer Tools collection or return to the all tools hub.