Favicon of SVGO

SVGO

Node.js library and CLI tool that reduces SVG file size by eliminating redundant metadata, comments, and suboptimal values without affecting rendering quality.

SVGO (SVG Optimizer) is a powerful Node.js library and command-line tool designed to reduce SVG file sizes by removing unnecessary data. Vector editor exports often contain redundant information like metadata, comments, hidden elements, and default values that don't affect how the SVG renders.

Key capabilities include:

  • Batch processing - Optimize single files or entire directories recursively
  • Plugin architecture - Customize optimization with built-in plugins or create custom ones
  • Flexible configuration - Configure via svgo.config.mjs or command-line options
  • API access - Use the optimize() function in your Node.js projects
  • Multipass optimization - Run multiple optimization passes for maximum compression
  • Data URI encoding - Convert images to base64 or other encoded formats

Install globally for command-line use or add to your project dependencies. The default preset includes optimized settings for most use cases, but you can customize individual plugins or disable specific optimizations as needed. Perfect for reducing SVG assets in web projects, design systems, and icon libraries.

Install

Npm
$ npm install -g svgo

Features

Config filePlugin systemScriptable

Media

Pros

3
  • Reduces SVG file size by removing redundant data
  • Configurable via plugins and configuration files
  • Provides a programmatic API for integration

Related tools

Share:

Auto-fetched .

Recent releases

Similar to SVGO

Favicon

 

  
 
Favicon

 

  
 
Favicon