HTML, CSS & JS minifier.
Make HTML, CSS and JavaScript files smaller by stripping comments and whitespace. It is deliberately conservative: it never renames variables or rewrites logic.
Runs in your browser. Nothing you enter is sent to KRA Digital or anyone else.
How to use it
- Choose the language and paste your code.
- Press Minify. Comments and unnecessary whitespace are removed; strings, regular expressions and template literals are left untouched.
- Check the size saving, copy or download the result.
- Test the minified file before you deploy it, and keep the original source for editing.
Questions
How is this different from a build tool minifier?
Tools such as Terser, esbuild or cssnano also rename variables and rewrite code for bigger savings. This tool only removes comments and whitespace, which is safer for quick jobs but saves less.
Are licence comments kept?
Yes. Comments that start with /*! are preserved, which is the usual convention for licence notices.
Does minifying replace compression?
No. Serve text files with Brotli or gzip as well; the two work together.
Is the HTML output safe?
Whitespace inside pre and textarea elements is preserved. Spaces between inline elements are collapsed to a single space rather than removed, so text does not run together.
Read more
SEO & performanceCore Web Vitals explained: LCP, INP and CLS in plain English
What Core Web Vitals measure, the published thresholds for good scores, how to check your site, and the most common fixes for slow loading, sluggish interaction and layout shift.
Working with an agencyWebsite launch checklist: 70 checks before and after you go live
A practical website launch checklist covering content, SEO, speed, accessibility, security, forms, analytics and consent, legal pages, redirects, backups, monitoring and the first weeks after launch.
Related tools
- Performance
Website speed checklist
A practical, privacy-friendly checklist to make any website load faster, with progress saved locally.
Open - Developer
JSON formatter & validator
Format, validate, sort and minify JSON with clear error positions. Runs locally.
Open - Performance
Image compressor & resizer
Resize and compress JPEG, PNG and WebP images in your browser. Nothing is uploaded.
Open