SVGO

github.com/svg/svgo Developer Tools Open-source projectOpen source

SVGO optimizes SVG files through a Node.js library and command-line tool.

github.com/svg/svgo
SVGO homepage screenshot

About SVGO

SVGO, short for SVG Optimizer, is a Node.js library and command-line application for optimizing SVG files. It removes redundant information common in files exported from vector editors, such as editor metadata, comments, hidden elements, and default or suboptimal values.

It can process single files or directories recursively, uses a plugin architecture with a configurable default preset and support for custom plugins, and provides optimize and loadConfig functions for use in other tools. Configuration is read from svgo.config.mjs or a path passed with --config.

Key features

  • Optimize SVG files via Node.js library and command-line tool
  • Process single files or recursive directories to output folder
  • Plugin architecture with configurable preset-default set
  • Support custom plugins defined inline or imported
  • Configure via svgo.config.mjs file or --config option
  • Low-level optimize() and loadConfig() functions for tool builders
Best for: Developers working with SVG files in Node.js projects or command-line workflows.
Good for
  • Works as both a Node.js library and a command-line tool
  • Plugin architecture with default preset and support for custom plugins
  • Released under MIT license

SVGO at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

SVGO alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Developer Tools

Well-known listings from the same topic.

All 423

SVGO FAQ

Why optimize SVG files?
Files exported from vector editors often contain editor metadata, comments, hidden elements, and default or suboptimal values that can be removed or converted without impacting rendering.
How do I process many SVG files at once?
Use -r/--recursive with -f/--folder to process a directory of SVGs recursively and write results to an output directory.
How is SVGO configured?
It reads configuration from svgo.config.mjs or a file passed with --config, with some parameters also available as command-line options.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing