WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by ShortPixel v4.5

WP SVG Images

Add SVG support to your WP website. Securely upload SVG files, automatic sanitization, Media Library preview.

WP SVG Images

The facts

Rating
5★ from 13
Active installs
30k+
Price
Free
Last updated
20 Aug 2026
Added
Aug 2016
Requires WP
3.0.1
Tested up to
WP 7.1
Requires PHP
5.6.40
Downloads
334,321

Our analysis

AI-assisted

WP SVG Images is a WordPress plugin that enables you to upload SVG files to your Media Library securely. It sanitizes the uploaded SVG files to prevent malicious content and provides configurable support for different user roles regarding SVG uploads.

This plugin is suitable for developers and site administrators who need to manage SVG images safely within their WordPress sites. It offers features like SVG previews in the Media Library and the ability to control upload permissions based on user roles.

Best for: This plugin is best for WordPress developers and site administrators looking to manage SVG files safely.

What it does well

  • Allows secure SVG uploads to Media Library
  • Automatically sanitizes uploaded SVG files
  • Configurable user role support for SVG uploads
  • Provides SVG previews in Media Library

Where it falls short

  • Limited information on additional features or integrations

Verdict

WP SVG Images offers a straightforward solution for handling SVG files in WordPress. It is particularly useful for those needing to ensure security while allowing SVG uploads.

From the developer

ShortPixel's own description of WP SVG Images, lightly tidied.

Securely upload SVG files to your Media Library. Uploaded SVG files are automatically sanitized.

SVG stands for Scalable Vector Graphics and is probably the most efficient way to display images.
WP SVG Images Plugin is an easy-to-use and lightweight plugin that allows you to upload SVG files to your media library safely and easily.

Features

  • Support for SVG uploads to your Media Library.
  • Sanitize uploaded SVG files. Malicious SVG/XML files are rejected from upload.
  • Admin configurable SVG support for different user roles. Ability to disable SVG upload for different user roles.
  • Different user roles can upload and/or sanitize the uploaded SVG images.
  • SVG preview in Media Library.

Support

24/7 SVG support offered by ShortPixel here or here.

Recommended plugins

This plugin is supported & maintained by ShortPixel.
Other popular plugins by ShortPixel:
FastPixel Caching – WP Optimization made easy
ShortPixel Image Optimizer – Image optimization & compression for all the images on your website, including WebP delivery – ShortPixel Image Optimizer.
ShortPixel Adaptive Images – On-the-fly image optimization & CDN delivery.
Enable Media Replace – Easily replace images or files in Media Library.
reGenerate Thumbnails Advanced – Easily regenerate thumbnails.
Resize Image After Upload – Automatically resize each uploaded image.

Hooks for developers

WPSVG_setAllowedTags

Allows you to specify more tags that will be not removed during sanitization

add_filter( 'WPSVG_setAllowedTags', 'my_custom_allowed_svg_tags', 10, 1 );
function my_custom_allowed_svg_tags( $tags ){
    $tags[] = 'path';
    return $tags;
}

WPSVG_setAllowedAttrs

Allows you to specify more attributes that will be not removed during sanitization

add_filter( 'WPSVG_setAllowedAttrs', 'my_custom_allowed_svg_attributes', 10, 1 );
function my_custom_allowed_svg_attributes( $attributes ){
    $attributes[] = 'fill';
    return $attributes;
}

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for optimising images.

EWWW Image Optimizer

Comprehensive image optimization with WebP, AVIF, Lazy Load, and more. Optimize images automatically for Faste...

Free 1M+ installs 4.8★ (1,838)
Smush

Smush

93

Compress and optimize images, enable lazy load, serve WebP & AVIF, and speed up your site with a global im...

Free 1M+ installs 4.8★ (6,051)
Converter for Media

Speed up your website by using our WebP & AVIF Converter. Optimize images and serve WebP and AVIF images i...

Free 500k+ installs 4.9★ (1,097)
Admin and Site Enhancements

Duplicate post, post order, image resize, email via SMTP, admin menu editor, custom css / code, disable gutenb...

Free 200k+ installs 5★ (421)
SpeedyCache

SpeedyCache is a WordPress cache plugin that helps you improve performance of your WordPress site by caching,...

Free 600k+ installs 4.4★ (30)