Home / Questions / Why can’t I upload SVG files to WordPress?

Why can’t I upload SVG files to WordPress?

WordPress blocks SVG files by default because they can hide scripts. A sanitizer plugin allows safe SVGs, or you can convert the file to WebP or PNG.

An SVG is a text file that describes a drawing, so it can also hold scripts. WordPress blocks SVG uploads by default for that reason.

Allow SVG safely

  1. Install a SVG support plugin that cleans uploaded files, such as one with a sanitizer, and turn it on.
  2. Upload only SVG files from your own design tools, not files from unknown sources.
  3. Test the page to check the logo or icon shows correctly.

If you do not want the plugin, export the image as PNG or WebP, which are safe and load fast.

For a logo or icon set, contact us and we will set up the upload path.

Ready to act on this?

Get a written review of your site, or send us your question and we will reply within 24 hours.

Related services

Not sure where your site stands?

Send us the details and we will reply within 24 hours with a clear next step.