Code Minifier
Strip whitespace from HTML, CSS and JavaScript to shrink files.
Browsers do not care about the spaces, line breaks and comments that make code readable to humans — but visitors pay for every one of those bytes on download. This minifier strips the non-essential characters from HTML, CSS or JavaScript so the file that ships is as small as possible.
Smaller files, faster pages
- Trim a stylesheet or script before pasting it into production.
- Cut page weight, which helps load time and Core Web Vitals.
- Keep a clean, commented source copy and minify only the deployed version.
For large build pipelines a bundler will do this automatically — this tool is the quick manual option for one-off snippets.