svgo
by svg
SVGO is a command-line tool and Node.js library that shrinks SVG files by removing editor metadata, comments, hidden elements and other redundant data. It is used to make vector graphics smaller so websites and apps load faster.
- Stars
- 22.8k
- Licence
- MIT
- Runs on
- Your computer
- Setup
- Easy
- Language
- JavaScript
- Age
- 5180 days
What you can do with it
- Compress single SVG files or whole folders from the command line
- Customise which clean-up plugins run using a config file
- Build SVG optimisation into your own Node.js scripts or build process
Make money with it
A freelancer could offer website speed-up or asset clean-up services, using SVGO to shrink clients' graphics in bulk.
An idea, not financial advice. Check the licence before charging for anything built on it.
Ways a business could use it
- Cut the file size of logos and icons on a company website to improve page speed
- Add it to a build process so designers' exports are cleaned automatically, saving manual work
Can you use it commercially?
Free to use, change and sell, including in paid products. Keep the copyright notice.
Not legal advice. Read the project's licence file before building a product on it.
Getting it running
Install it globally with npm, yarn or pnpm (for example, npm install -g svgo), or add it to a Node.js project.
Follow the official instructions in the project README.
Things to check
- Aggressive settings can occasionally change how an SVG looks, so check the output
Who's talking about it
Checked 28 Oct 2026. Summary drafted by AI from the project's README.