CSS Beautifier

CSS Beautifier

When you developing CSS for your website you will normally create your CSS in a way that makes it easier to read. This means each property will be on it's own line, you will have line breaks in-between classes and id's, you should even have comments between different sections of your styles.

This is great for developing as it keeps your styles organised, makes it easy for you to find styles, and has comments to explain what the styles are going to do. But the problem with this is that it will increase the size of the CSS file, when you use this on your website in a production environment it's important that your website loads fast. A good way of helping your website load faster is to minimize your CSS and Javascript files, this is because it will reduce the bandwidth needed for the file and will speed up your site.

It's easy to minimize your files you can either use a script to do this or make your IDE minimize your files.

But if all you have is the minimized file and you want to make some changes to this file it can be really hard to work out where your styles are, you need to un-minimize the file so you can see the styles in a readable way.

Here is a tool called CSS Beautifier which will allow you to enter minimized CSS and it will convert this into readable CSS for you. So if you only have the minimized file you can copy this into the tool and it will convert the entire contents to readable CSS.

Try it out.

CSS Beautifier

Back to top ^

Join Paulund

  • Get access to 100s of premium tutorials and downloadable content
  • Members content consists of Premium WordPress plugins, CSS packages, jQuery packages, tutorial demo files and templates for 100s of web development tutorials
  • In-depth development tutorials
  • Priority tutorial requests
  • Priority email development support
  • No ads

Here at Paulund you'll find Web Development tutorials and snippets focusing mainly on PHP, WordPress and CSS. Members will get access to premium tutorials that go into more detail about development with these languages. You will also get access to downloadable premium content based on the tutorial.

Join Paulund

Leave a Reply

Your email address will not be published. Required fields are marked *