all tools

SVG tools 2

Optimise SVG files with svgo and rasterise them to PNG, in the page. Optimising strips editor cruft without changing how the drawing looks; the tool refuses to report a saving it did not achieve.

Questions

What does optimising an SVG change?

It runs svgo's default preset, which removes editor metadata, comments and redundant attributes without changing how the image looks. The viewBox is kept, because removing it breaks scaling.

Will my ids and classes survive?

Ids might be shortened by svgo's cleanup unless the file contains a style block or a script, in which case they are left alone. If external CSS or JavaScript targets those ids, check the result before shipping it.

Can I turn an SVG into a PNG?

Yes, with SVG to PNG, which rasterises at the size you choose in the page. Fonts referenced by name are not loaded, so convert text to paths first if the drawing depends on them.

What if optimising makes the file bigger?

The tool refuses to report a saving it did not achieve, and says so rather than handing you a larger file described as optimised.