HTML, CSS & JS Minifier - Minify Web Code Online

Minify and compress HTML, CSS stylesheets, and JavaScript files to reduce payload size and speed up page load times.

This tool runs in your browser.
Paste code to minify.

How to use

  1. 01Paste code.
  2. 02Minify it locally.

FAQ

How does minifying web code improve website performance?

Minification reduces file transfer size by up to 70%, reducing HTTP transfer times and improving Google Core Web Vitals performance scores.

Can I keep important legal or license comments?

Yes. You can preserve special copyright banner comments (typically prefixed with /*!) while removing ordinary inline commentary.

Does the HTML minifier handle inline styles and scripts?

Yes. The HTML minification routine cleanly optimizes inline CSS within <style> tags and JavaScript within <script> tags.