SVGO is a Node.js tool for optimising SVG files by removing redundant data often added by vector editors, such as metadata, comments, hidden elements, and unnecessary values. It can be used from the command line to process SVG files and folders, or as a library inside JavaScript-based workflows. The software is also highly configurable, letting users tailor optimisation behaviour through presets, overrides, and custom plugins.
This is free and open source software.
Key Features
- Processes individual SVG files or entire directories recursively.
- Supports configuration with an
svgo.config.mjsfile or command-line options. - Includes a default preset that can be tuned by enabling, disabling, or overriding built-in plugins.
- Allows custom plugins for specialised optimisation workflows.
- Provides a JavaScript API including
optimizeandloadConfigfunctions. - Works with existing tooling and integrations including Docusaurus, PostCSS, and webpack.
Website: github.com/svg/svgo
Support:
Developer: svg
License: MIT License

SVGO is written in JavaScript. Learn JavaScript with our recommended free books and free tutorials.
Related Software
| Console Based Image Compression Tools | |
|---|---|
| MozJPEG | Mozilla JPEG Encoder Project |
| pngquant | Utility and a library for lossy compression of PNG images |
| Guetzli | Perceptual JPEG encoder with excellent compression density at high quality |
| Oxipng | Multithreaded PNG optimizer, forked from Optipng |
| libjxl | Reference implementation of JPEG XL |
| zopflipng | PNG optimisation tool using zopfli |
| libjpeg-turbo | JPEG image codec |
| Crunch | Lossy PNG image file optimization |
| YOGA | Yummy Optimizer for Gorgeous Assets |
| QOI | The Quite OK Image Format |
| pngcrush | Optimizer for PNG files |
| jpegoptim | Optimize JPEG files. Lossless and lossy compression available |
| OptiPNG | Advanced PNG optimizer |
| ECT | Fast and effective C++ file optimizer |
| JPEG Archive | Utilities for archive JPEGs for long term storage |
| optimizt | CLI image optimization tool |
| picopt | Multi format lossless image optimize |
| tinifier | CLI tool for compressing images using the TinyPNG API |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

