Skip to main content
Safe SVG logo

Safe SVG

Safe SVG enables SVG uploads while sanitizing the files before use. It also provides SVG previews in the Media Library, optional SVGO optimization, and newer inline SVG block capabilities.
ImagesFree
Visit Plugin
Last Updated: September 12, 2026

Plugin Health & Stats

Checked 2 weeks agoSource: WordPress.org
Active installs
1,000,000+Official WordPress.org tier
WP.org rating
4.9/579 ratings
Version
2.5.0Current repository release
Last updated
1 week agoSep 22, 2026
Total downloads13,767,605
Tested with WP7.1.1
Requires WP6.9+
Requires PHP7.4+
Support resolved (2 mo.)Not enough recent threads
Plugin age11 years, 3 months
Updates observed0
Tracking sinceSep 12, 2026
Repository data is older than 3 days. Showing the latest successful snapshot.

Historical overview

364-day WordPress.org history
Download trendDaily package downloads · last 90 days
7d95,695 30d859,863 90d1,076,001 Peak day220.1KSep 23
Jul 5Aug 3Sep 2Oct 2
Active version adoptionCurrent usage share
2.5 39.8%2.4 32.7%2.3 10.6%2.2 8.5%other 8.4%

Quick take

A sensible default for WordPress sites that genuinely need SVG uploads. It solves the core security concern rather than treating SVG as just another image MIME type.

Best fit: Site owners and development teams that need SVG uploads but want sanitization to be the default rather than simply enabling the SVG MIME type. I would choose a different option for sites that do not need SVG files at all or workflows that require preserving every unsupported or remote SVG reference exactly as supplied.

SVG files are flexible and sharp at any size, but they can contain scripts, remote references, and XML constructs that should not be trusted blindly. Safe SVG addresses the security problem instead of only changing WordPress upload permissions.

How it works

Safe SVG enables SVG uploads while sanitizing the files before use. It also provides SVG previews in the Media Library, optional SVGO optimization, and newer inline SVG block capabilities.

Uploaded SVG files are passed through sanitization before they are accepted into the Media Library. The plugin can also preview SVGs in WordPress and offers optional optimization and inline rendering tools for supported workflows.

Features that matter

  • Sanitized SVG uploads: Allows SVG uploads while cleaning potentially unsafe markup before storage.
  • Media Library SVG previews: Shows SVG assets clearly inside the WordPress Media Library.
  • Optional SVGO optimization: Can reduce unnecessary SVG markup when optional optimization is enabled.
  • Inline SVG block support: Provides a block workflow for rendering SVG markup inline when needed.
  • Upload-time security filtering: Runs sanitization during the upload process instead of relying on manual cleanup.
  • Controls for remote SVG references: Adds controls for handling external references inside SVG files.

Sanitization is the main reason to use it

The important distinction is that Safe SVG does not merely permit SVG uploads. It sanitizes the markup before use, which addresses the main security concern with allowing arbitrary SVG files in the media library.

Choose Safe SVG if

  • Security-first SVG workflow.
  • Maintained by 10up.
  • Useful Media Library previews.

Look elsewhere if

  • Sanitization can remove unsupported or unsafe markup.
  • Some advanced SVGs need testing after upload.
  • Not needed if the site can avoid SVG uploads entirely.

Where the trade-offs show up

Sites that do not need SVG files at all or workflows that require preserving every unsupported or remote SVG reference exactly as supplied should compare alternatives carefully. Sanitization can remove unsupported or unsafe markup. Some advanced SVGs need testing after upload. Not needed if the site can avoid SVG uploads entirely.

Practical considerations

The safest SVG workflow still starts with trusted source files. Sanitization reduces risk, but administrators should also control who can upload media and review unusual SVGs before publishing them. If a design only needs a small number of static icons, using pre-reviewed assets can keep the workflow simpler than opening SVG uploads broadly.

Pricing

Safe SVG is free on WordPress.org.

Who should consider it

Site owners and development teams that need SVG uploads but want sanitization to be the default rather than simply enabling the SVG MIME type.

What to compare before choosing

SVG Support is the closest comparison and adds a more explicit advanced mode for inline styling and animation. Safe SVG is the cleaner choice when sanitization and secure upload behavior are the main priorities.

PluginSuggest verdict

A sensible default for WordPress sites that genuinely need SVG uploads. It solves the core security concern rather than treating SVG as just another image MIME type.

Safe SVG FAQs

What does Safe SVG do?

Safe SVG enables SVG uploads while sanitizing the files before use. It also provides SVG previews in the Media Library, optional SVGO optimization, and newer inline SVG block capabilities.

Who is Safe SVG best for?

Site owners and development teams that need SVG uploads but want sanitization to be the default rather than simply enabling the SVG MIME type.

Is Safe SVG free?

Safe SVG is free on WordPress.org.

What are the main limitations of Safe SVG?

The main constraints are: Sanitization can remove unsupported or unsafe markup; Some advanced SVGs need testing after upload; Not needed if the site can avoid SVG uploads entirely.

What should I compare with Safe SVG?

SVG Support is the closest comparison and adds a more explicit advanced mode for inline styling and animation. Safe SVG is the cleaner choice when sanitization and secure upload behavior are the main priorities.

Can Safe SVG change an uploaded SVG file?

Yes. Sanitization can remove unsupported or unsafe markup. Complex SVGs should be checked after upload to confirm they still render as expected.

Similar Plugins

Community Reviews

0 community reviews
Log in or create an account to write a review.
No published community reviews yet.