Paste your CSS into the first field
See the minified code and the bytes saved
Copy the minified CSS into your site
Spaces, line breaks, indents and comments make a style sheet easy to read for people, but browsers don't need them. Paste your CSS, and the minified code appears as you type, with its size in bytes and how much was saved. Only what changes nothing is removed: the space in a descendant selector such as nav a stays, because nava would be another selector, and so do the spaces that calc() needs. Comments that start with /*!, which usually hold a license, are kept.
The same tool also minifies HTML and JavaScript: choose the language above the field. For HTML, “Remove comments” deletes the comments, and “Also minify the CSS and JavaScript inside” minifies the style and script blocks of the page as well. JavaScript is first checked by your browser, and if the code has an error, the tool shows it instead of minifying the code. Minifying adds to the gzip or Brotli compression of the server, as the two shrink the file in different ways. Your code is not sent anywhere.
Hello. We tried very hard to create a convenient website that we use ourselves. If you liked any of our tools and editors, add it to your bookmarks, because it will be useful to you more than once. And don't forget to share on social media. We will be better for you.