Type to search.

#48 by installs

SVG Support

by BenbodhiVersion 2.6.3

Securely upload SVG files to your media library, with built-in sanitization and advanced features for styling and animation.

Active installs
1+ million
#48 of 1,000
Downloads, all time
15.3M
15,280,517
Downloads, 30 days
140.3K
34.9K in the last 7
Rating
4.8 / 5
356 reviews
Last updated
Today
Oct 31, 2026
Version
2.6.3
66 releases

Upkeep and compatibility

Last updatedOctober 31, 2026Updated in the last 3 months
Tested up toWordPress 7.1.4Covers WordPress 7.1.4, the current release
Needs WordPress5.8 or newer
Needs PHP7.4 or newer
First publishedJuly 22, 2014
Support, last two months2 of 2 threads resolved (100%)

Reviews

4.8 / 5 from 356 reviews

Reviews by star rating
5 stars331
4 stars2
3 stars7
2 stars5
1 star11

Downloads, last 30 days

Low 1.9K a dayHigh 10.5K a day

What the author says it does

The complete SVG solution for WordPress – secure, flexible, and easy to use.

SVG Support enables secure SVG uploads with powerful features for both basic users and developers:

✨ Key Features:

– Secure SVG uploads with automatic sanitization

– Inline rendering for direct CSS/JS manipulation

– File size optimization through minification

– Role-based access control

– Advanced developer options

– Multisite compatible

– Full Block Editor (Gutenberg) compatibility

🔒 Security First:

– Built-in sanitization removes potentially harmful code

– Role-based upload restrictions

– Comprehensive MIME type validation

🎨 Designer Friendly:

– Direct styling of SVG elements

– Animation support

– Custom class targeting

– Automatic dimension handling

💻 Developer Ready:

– Advanced mode for additional features

– REST API support

– Gutenberg compatible

– Extensive hooks and filters

Usage

Basic Usage:

– First, install and activate SVG Support via your WordPress dashboard

– Upload SVG files to your media library like any other image

– Works seamlessly with Image blocks, Cover blocks and featured images

Advanced Usage:

– Enable “Advanced Mode” for minification and inline rendering

– Customize with hooks and filters for tailored functionality

Block Editor Usage:

– Use Advanced Mode to enable inline rendering:

– Add the "style-svg" class to Image blocks

The opening of the plugin's own description. The full text, installation notes and changelog are on its WordPress.org page.

Questions the author answers

SVG not rendering inline since 2.3 update

Ensure “Advanced Mode” is enabled in Settings > SVG Support.

How do I disable the Javascript on the front end if I am not using inline SVG?

Disable “Advanced Mode” in the settings.

I’m trying to use SVG in the customizer but it’s not working.

To allow SVG to work in the customizer, you will need to modify/add some code in your child theme’s function file. Here is a great tutorial on how to do that. The important part is:

'flex-width' => true 'flex-height' => true

How do I add animation to my SVG?

You will need to edit your SVG file in a code editor so you can add CSS classes to each element you need to target within the SVG. Make sure that your IMG tag is being swapped out for your inline SVG and then you can use CSS or JS to apply animations to elements within your SVG file.

Why is SVG Support not working in multisite?

If you installed multisite prior to WordPress 3.5, then you will need to remove your ms-files. Here is a couple of resources to help you: Dumping ms-files Removing ms-files after 3.5.

Why is my SVG not working in Visual Composer?

If you are using SVG Support with Visual Composer or any other page builders, you will need to make sure that you can add your own class to the image. The easiest way to do this is by using a simple text or code block in the builder to put your image code in to. Additionally, there is now a setting to force all SVG files to be rendered inline.

Latest changelog entry

2.6.3

• Security Enhancements:

  • Updated the bundled SVG sanitizer (enshrined/svg-sanitize) to 1.1.1. On PHP 8, version 1.1.0 threw an error instead of rejecting an SVG that ends inside an unclosed tag (GHSA-f7cw-vfxq-7ph2). For an SVG stored through wp_upload_bits(), as the WordPress Importer and some other plugins do, that left the file on disk unsanitized. Such a file is now rejected and deleted. Media Library, REST and XML-RPC uploads were never stored

Screenshots

First 4 of 11, from WordPress.org.

Tagged

Plugins that share its tags

#54 by installs

Safe SVG

by 10up

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

Installs
1+ million
Rating
4.9 (79)
Updated
5 days ago

#844 by installs

Easy SVG Support

by Benjamin Zekavica

This Plugin allows you to upload SVG Files into your Media library.

Installs
40,000+
Rating
5.0 (6)
Updated
2 days ago

#891 by installs

The Icon Block

by Nick Diego

Easily add SVG icons and graphics to the WordPress block editor.

Installs
40,000+
Rating
5.0 (29)
Updated
47 days ago

Where this page's numbers come from

Read from the WordPress.org plugin API on , when WordPress 7.1.4 was the current release. WordPress.org rounds active installs into buckets. These are the directory's figures, not my verdict, and I haven't tested this plugin. The author takes donations at their donate page.