SVG Optimizer

Optimize SVG files with 15+ optimizations, prettify, convert to data URI/PNG/JSX, diff view, batch process.

Ctrl/⌘ + , to toggle options
Saved
Remove Comments
Remove Metadata
Remove DOCTYPE
Remove xmlns
Remove Empty Attrs
Minify Whitespace
Remove IDs
Remove Classes
Remove Inline Styles
Remove Editor Tags
Remove Hidden Elements
Remove Default Values
Round Numbers (2dp)
Remove fill="none"
Add viewBox if missing
Preview

◆ What it does

Clean, optimize, and convert SVG files with 15+ optimizations. Prettify, minify, convert to data URI, PNG, or JSX. View diffs and batch process.

▸ How to use

  • Paste SVG code or upload an SVG file
  • Toggle optimization options in settings
  • Switch between optimize, prettify, and convert tabs
  • Preview optimized SVG in real-time
  • Copy or download the result

▸ Why use this

  • Reduce SVG file sizes by 30-70%
  • 15+ optimization rules
  • Convert to data URI, PNG, JSX, or React component
  • Side-by-side diff view
  • Batch process multiple SVGs