You need a CSS formatter.

We’ve been experimenting with https://www.codebeautifier.com/, and it seems to do a great job. Not only will it format your CSS into something legible, it will combine duplicate entries to help you be able to clean up messy CSS entries.