Now all these are very minor changes but quickly add up and may make your CSS file lighter by a few kilobytes. This translates to faster web pages as smaller files take relatively less time to download.

And fortunately, there are plenty of CSS tools available online that can do all this for you – they will analyze your CSS files, remove unwanted stuff and thus reduce the overall size.

Clean CSS – This tool pulls the CSS code from your website and optimizes it by removing comments, compressing the color codes and converting to shorthand mode CSS. It also outputs a detailed log so you know exactly what has changed in the background.

The tool offers various levels of compression depending upon how readable you want the code to be for humans.

CSS Checker – This is probably the most useful CSS tool as it helps you find orphaned CSS styles (Classes, IDs, etc) that are present in the stylesheet but not used in the web pages.

You type the URL of your CSS file and a list of web pages that use that particular styles. CSS Checker will then quickly figure out all the unused styles that you may safely discard or move to another CSS file. Thanks Divya.

CSS Compressor – This is pretty much like Clean CSS though you have more control over handling of comments and new lines in the optimized version of the CSS.

Amit Agarwal is a web geek and founder of Digital Inspiration, a popular tech & how-to website. He has been blogging for over a decade and has also contributed to the Wall Street Journal, Lifehacker and The Financial Express. Sign-up for the email newsletter for your daily dose of tips & tutorials.