SVG Optimizer

Clean up SVG code by removing unnecessary metadata and attributes.

Optimization Options

Preview

Paste SVG to preview

What Gets Optimized?

Removed

  • XML comments and metadata
  • Editor-specific attributes (data-name, etc.)
  • Unused namespace declarations
  • Empty groups and definitions
  • Redundant whitespace

Preserved

  • Visual appearance
  • Viewbox and dimensions
  • Meaningful IDs (if not opted out)
  • Accessibility attributes
  • CSS classes (unless opted out)

Note: This is a basic optimizer. For production use, consider tools like SVGO or SVGOMG.