Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
Safe SVG icon

Safe SVG

v2.3.1
by 10up · 4.9 (75 reviews)

Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website

1M+ active installs Updated Apr 23, 2025 Tested to 6.8.1 Requires PHP 7.4
Try Demo Download
Pre-installed Ready in ~10s No card
Safe SVG

About Safe SVG

Safe SVG is a WordPress plugin that allows you to upload SVG files to your website while ensuring they are safe and free from vulnerabilities. It also includes features such as optimizing SVG files for space saving and previewing uploaded SVGs in the media library. You can choose to restrict SVG uploads to certain users or allow anyone to upload.

Frequently asked questions

What does Safe SVG do?
Safe SVG enables SVG uploads in WordPress and sanitizes them to prevent XML/SVG vulnerabilities. It also allows users to preview uploaded SVGs in the media library.
Does Safe SVG optimize SVG files?
Yes, Safe SVG can optimize SVGs using the SVGO tool on upload, though this feature is disabled by default. It can be enabled with a filter.
Can I control who can upload SVGs?
Yes, Safe SVG allows you to restrict SVG uploads to specific users or permit all users to upload them.
How does Safe SVG ensure security?
Safe SVG sanitizes uploaded SVG files to prevent security vulnerabilities. This sanitization is performed using the svg-sanitizer library.

Changelog

2.3.1 – 2024-12-05

2.3.0 – 2024-11-25

2.2.6 – 2024-08-28

2.2.5 – 2024-06-27

2.2.4 – 2024-03-28

2.2.3 – 2024-03-20

2.2.2 – 2023-11-21

2.2.1 – 2023-10-23

2.2.0 – 2023-08-21

View historical changelog details here.

Try other plugins