SVG Optimizer & Sanitizer

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

About this tool

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.

What it does

  • 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

Repository

chayprabs/svgo-online

Source code, issues, and releases

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.