Skip Navigation Links

Online CSS minifier - using the Microsoft Ajax Minifier

This is a CSS minifier that use the brilliant Microsoft Ajax Minifier. The settings is populated with the default settings. You can read more on DLL Version of Ajax Minifier.

 

Input (text or file) Output
Crunching:

This is text from the help file of the Microsoft Ajax Minifier

  • CommentMode: how to treat comments in the code. The default is CssComment.None, which will strip all comments except “important” comments. CssComment.All will leave all comments, and CssComment.Hacks will only leave certain known comment-based hacks.
  • TermSemicolons: forces all rules to be terminated with semicolons if set to true (default is false).
  • ColorNames: by default, W3C-strict color names will be used if they are shorter than the equivalent RGB values. This is the CssColor.Strict setting. If no color names are to be used, set this value to CssColor.Hex. If a set of colors recognized by all major browser is okay to use (W3C-strict validation is not required), set this value to CssColor.Major.
  • ExpandOutput: Boolean value indicting whether to output all minified code on a single line or to break it into easy-to-read multiple lines. Default is false.
  • IndentSpaces: if ExpandOutput is set to true, this property is the number of space characters to use for each indent. The default is 4.