Skip to main content

SVG Optimizer for Node.js and CLI

SVGO and its various integrations will enable you to optimize SVGs and serve your web applications faster.

$ npm i -g svgo
svgo --help

Easy to Use

SVGO can be used through both the command-line interface and JavaScript API, with help pages and documentation available for both.


Many libraries, frameworks, or tools bundle or have integrations available for SVGO already, like Docusaurus, PostCSS, and webpack.


We welcome contributions! Feel free to to file a bug report, feature request, or open pull requests on GitHub.