How to Allow SVG Upload in WordPress Media Library

SVG is a vector file and may have security issues if you not downloaded it from a trusted source. WordPress does not allow to upload SVG by default. And you may get an error while trying to upload SVG in WordPress Media Library: “Sorry, this file type is not permitted for security reasons.”

In this post, we will show you two different ways to upload SVG files to your WordPress website or blog.

SVG uploading error in WordPress
SVG uploading error in WordPress

1. SVG Support

It’s a free plugin in the WordPress repository. There is nothing crazy settings in this plugin. Just install & activate the SVG Support plugin, and you will be able to upload SVG files to your WordPress site.

SVG file upload using plugin
Successfully uploaded SVG file using “SVG Support” plugin

However, we suggest you enable one option in Settings. It’s “Restrict to Administrators” and enabling this option will only allow your website administrators to upload SVG files. Otherwise, other users will be able to upload SVG files as well. For example- Editor, Author, etc.

SVG Support plugin settings
SVG Support plugin settings

You will find this option in Settings => SVG Support.

This plugin has 500,000+ active installations and great reviews. It’s very lightweight plugin and it has not impact on your website loading time/speed.

However, if you’re still not able to upload SVG files, then go to “Media => Add New” to upload files.

2. Safe SVG

It’s another plugin that will also allow WordPress to enable SVG support and sanitize XML vulnerabilities.

This plugin does not require any setup or configuration. Just plug & play.

It has more than 400,000 active installation with good reviews.

There are other WordPress plugins but we found these two very useful. Specially these two plugins don’t need any critical configuration or manual work.

easy configuration artwork

SVG stands for Scalable Vector Graphics. It is very small in file size but too much crisp & clear. And even it does not become blurry in large screen sizes. SVG file loads very fast comparing to JPG & PNG. These are the main reasons people like SVGs.

Difference between SVG & JPG/PNG

SVG files are vector-based. On the other hand, JPG & PNG files are pixel-based. For example- you can think of the difference between Adobe Illustrator & Photoshop.

Since SVG contains XML code, so it also may have vulnerabilities for security reasons. It’s totally normal to use SVGs if you created it yourself or if you downloaded it form trusted source.

Though the above plugins will sanitize your SVG files before uploading them to the media library. Therefore it’s always better to not download from an unauthenticated source and upload it to your site.

Security symbol

Hope that makes sense. And now you are able to upload SVG files on your WordPress website.

Let us know if it really solved your issue or if you still have problem.

Are you tired of removing spam comments on your WordPress site? Learn the easiest way of preventing spam comments.

Oldest posts in web development

Shihab
Shihab

Shihab is a web developer. He has a proven track record helping startup business owners. Humbled by WordPress.ORG for contributing to the 'WordPress Community'. Shihab also has been working as a freelance web developer for half a decade. He has a willingness to help other freelancers to move forward with dignity.

Types of website he built in the past:
Blog, Portfolio, Niche Affiliate, Job Board, Motivational Speaker, Recruitment Agency, Job & Temp Agency, eCommerce, Commercial Cleaning Company, Amazon FBA Inspection, FBA Prep, Event & Wedding Planner, Real Estate & Property Investment, Forensic Accounting & Auditor, Family Therapy, LMFT, Marriage Counseling, Couples Therapy, Psychotherapy, SEO & Digital Marketing, Healthcare, Medical Tourism Consultant.

If you want him to create a website for your business, discuss your project with him on Skype (shihabdinajpur).

Articles: 33

Leave a Reply

Your email address will not be published. Required fields are marked *