CSS Minifier

CSS Minifier online helps you to compress and minify a css document, up to 80% of their original size without any side effect.

This Minifier is based on Yahoo!'s YUI Compressor.

Following rules applied on the CSS minification

  • CSS Minifier removes line breaks, indentation characters and unwanted white spaces
  • All the comments will be striped
  • Last semi colon of a style declaration will be removed
  • Empty CSS declarations will be removed
  • Units with zero values will be removed
  • Float value having leading zero will be removed if float value is lower than one
  • RGB color values will be changed to smaller hexadecimal format
  • The format #AABBCC are replaced with #ABC for Hexadecimal colors
  • All extra charset declaration will be removed and keep one charset per css file