Safe SVG

Plugin · Free

1M+ active installs · Rated 4.9/5 · Updated September 22, 2026

Visit website

Safe SVG allows SVG uploads and sanitises each file on upload to strip scripts and unsafe markup. It also previews SVGs in the media library and lets the site choose which roles may upload them. It suits sites that need SVG logos or icons without opening XML and SVG attack paths. Limit: the SVG optimiser is off unless a code filter enables it.

Pros

  • Sanitises SVG uploads before they are stored
  • Shows SVG previews in the media library
  • Choose which user roles can upload SVG files

Cons

  • SVG optimiser is off by default and needs a code filter
  • Settings are limited to the upload role choice
  • Sanitising rules decide what markup survives, so check designs after upload

Topics: Security plugins

Alternatives