Is there a package that compresses multiple declarations, tidies up my overall css, and removes capitalization all in one?

As the title says, is there anything that does all of this all in one? If not, what individual programs do.
For example, I want to turn code that looks like this:

.Cat{ 
background:RED;
Background:blue;}

into this:

.cat {
background:blue;
}