Open-source SVG optimization that goes beyond SVGO β deterministic first, AI optional.
Go Beyond SVGO: >35% avg compression (up to 80%), 1.3x avg faster rendering (up to 2.6x)
Optimize your own SVG β π Runs 100% in your browser β nothing is uploaded.
Benchmarked on public SVGs β icons, illustrations, emoji, glyphs, flags, sketches, charts, and diagrams.
SVGO can silently remove hover states, animations, and dynamic attributes. SVGym understands and preserves them.
Deterministic first. SVGym profiles each file, applies the transforms that fit it, and verifies every step — the AI only steps in when real savings are left on the table.
Profiles the SVG — path commands, real coordinate precision, mergeable paths — and estimates the payoff of each technique. No model call.
A deterministic workflow applies the transforms that fit this file: quantize coordinates, merge paths, drop dead metadata, simplify curves, and more.
Each step is rendered before/after and checked on SSIM and size. If quality drops or it doesn't help, the change is reverted — output stays ≥ 0.99 SSIM.
Only when the deterministic result leaves savings on the table does SVGym call an LLM (your own API key) to find more — passing the same quality gate.
Install: pip install svgym · run svgym optimize icon.svg for one file, or svgym pack ./icons/ for a whole folder — cross-file analysis, a combined <symbol> sprite sheet, and a compression report. Deterministic by default; add --ai to enable the fallback.