With SVG files some of the code is easy to tell if it’s needed or not but some is not so clear. It can take a decent amount of time to manually parse this code to optimize it by hand. Wouldn’t it be great if there was a tool available that allowed us to pass our image to it and have it optimized automatically? Oh wait there is. Thanks to Peter Collingridge a freelance content creator for Khan Academy. He has created an svg optimiser tool that will simplify decimals, apply transformations, remove unnecessary attributes, remove unnecessary namespaces, remove unnecessary whitespace, and convert element styles to CSS which all will substantially reduce the size of your SVG assets.
I ran my own logo through the svg optimiser and reduced it’s file size by 11.6%. It’s easy too, all you do is choose your SVG image, hit the upload button, choose a couple of options and your done. You can even compare your old image to the new image to see if there are any differences.