SVG is the designer’s dream: sharp at any size, tiny file weight, perfect for logos and icons. WordPress’s default response is to block SVG uploads entirely. That is not WordPress being difficult — it is WordPress being cautious.
SVG files are XML. XML can contain JavaScript. A malicious SVG uploaded to your media library could, in worst cases, compromise admin sessions or visitors. So the platform says no until you explicitly handle security.
Why designers still need SVG
- Logos stay crisp on retina and 4K screens
- Icons scale without
@2xPNG exports - File sizes beat PNG for simple graphics
- Designers deliver SVG from Figma, Illustrator, and Sketch — converting to PNG is a frustrating extra step
The goal is not “enable SVG at any cost.” It is enable SVG with sanitization.
Dangerous shortcuts to avoid
ALLOW_UNFILTERED_UPLOADSin wp-config — opens the door wider than SVG- Random code snippets that only fix MIME types with zero sanitization
- Letting all user roles upload SVG — restrict to admins and trusted editors
- Skipping updates on security-focused plugins
If a solution is ten lines in functions.php with no mention of sanitization, skip it.
What safe SVG upload looks like
A proper plugin should:
- Allow SVG and optionally SVGZ (compressed SVG)
- Sanitize on upload — strip scripts and dangerous nodes
- Register correct MIME types so WordPress accepts the file
- Integrate with the media library and block editor like any image
- Generate thumbnail metadata where supported for grid views
- Avoid front-end scripts when admin-only processing is enough
bouSvg does exactly that: enable, sanitize, done. No settings maze.
Workflow for agencies
- Install bouSvg on the client site.
- Upload logo and icon SVGs to a dedicated media folder (BooMedia helps keep them separate from photos).
- Use SVG in the block editor, site logo, or theme where supported.
- Restrict upload capabilities to roles that need it.
SVG vs PNG in practice
Use SVG for logos, icons, simple illustrations. Use raster (WebP, PNG, JPEG) for photos and complex gradients. Do not convert every asset to SVG — photos as SVG are a disaster.
Bottom line
You do not have to choose between security and modern design assets. Sanitized SVG upload is the professional path — better than PNG workarounds and safer than blind MIME hacks.
Enable SVG the right way. Get bouSvg — safe SVG uploads for WordPress.