Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website.
As of April 2026, Safe SVG is a WordPress SVG plugin with 1.0M+ active installations and a 4.9/5 rating from 77 reviews. It has been downloaded 12M+ times in total. Requires WordPress 6.6+ and PHP 7.4+. Available on WordPress.org since 2015. Recently updated within the last 3 months. Downloads are up 6% this week. Support resolution rate: 50%. Top alternative: SVG Support.
Safe SVG is the best way to Allow SVG Uploads in WordPress!
It gives you the ability to allow SVG uploads whilst making sure that they’re sanitized to stop SVG/XML vulnerabilities affecting your site. It also gives you the ability to preview your uploaded SVGs in the media library in all views.
add_filter( 'safe_svg_optimizer_enabled', '__return_true' );Needed SVG upload support, and this plugin did the job. Very lightweight and easy to use. No issues so far. Some additional settings would be nice, but overall, it’s quite solid.
Nice And Easy plugin for using SVG files
Would have given a 5 star, but it seems support is missing for the taxonomy / terms section (like in categories) upload for SVG images. Keep getting an error that the upload isn’t supported. Hopefully this will be fixed in a future update. Will update once this is added. Cheers!
Great plugin! very usefull, but please can you add the possibility to add an inline SVG on the block pasting svg code?
Thanks!
Thanks to the plugin developers. The plugin helped me solve my issue.
| WordPress | 6.6+ requiredTested up to 6.9.4 |
| PHP | 7.4+ required |
$attachment_id argument to filters safe_svg_use_width_height_attributes and safe_svg_dimensions (props @roborourke, @dkotter via #278).$svg argument in the filters safe_svg_use_width_height_attributes and safe_svg_dimensions (props @roborourke, @dkotter via #278).Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.