SVG Optimizer & Sanitizer

Sanitize, optimize, rasterize, and diff SVGs and strip XSS risks.

Make SVGs smaller and safer. Sanitize SVGs to strip XSS, optimize and diff them, resolve fonts, build sprites, and rasterize to PNG, WebP, and AVIF at exact DPI — a complete SVG workbench in the browser.

  • Optimize and minify SVG files
  • Sanitize to strip XSS and unsafe content
  • Rasterize to PNG, WebP, and AVIF at exact DPI
  • Build SVG sprites and resolve fonts
  • Diff two SVGs to see what changed
chayprabs/svgo-onlineFull source code, issues, and releasesOpen →

Spotted a bug or have an idea?

This tool is built in the open and shaped by feedback. If something feels off — or you want a feature — I read every message.