How to use the HTML, CSS & JS Minifier
- Choose CSS, JavaScript or HTML.
- Paste your code.
- Press Minify and copy the smaller code.
Keep your original, readable file for editing and only upload the minified copy. On WordPress, a caching plugin can minify files automatically; this tool is handy for custom snippets and one-off files.
Frequently Asked Questions
Will minifying break my code?
CSS and HTML minifying is safe for normal code. JavaScript uses Terser, the same tool many build systems use. Always test after replacing code.
Does it remove comments?
Yes, except conditional comments in HTML.
Is my code uploaded?
No.