CSS, JS, HTML and JSON minifier
Paste your code and strip comments and whitespace so your site loads faster. Everything happens in your browser: your code never leaves your computer.
What it does with each language
- CSS: removes comments, whitespace and the last semicolon of each block. Keeps strings and calc() intact.
- JavaScript: minifies it with Terser (shortens variable names and drops unused code).
- HTML: removes comments and whitespace between tags, and minifies the CSS in style blocks. It does not touch pre, textarea or script.
- JSON: puts it on one line without spaces.
FAQ
Is my code sent anywhere?
No. It is minified in your browser. Only the first time you minify JavaScript the Terser minifier is downloaded from jsDelivr.
Can it break my code?
The CSS and HTML minifier is careful, but always check the result before publishing and keep a copy of the original.
Is it worth it if my server already compresses?
Yes: minifying and compressing add up. Below the result you see the gzipped size before and after.
Does your site load fast for real visitors?FastAnalytics measures the Core Web Vitals of each page with your real visitors, without cookies.See plans