---
title: "How to display SVG attachments in Confluence"
canonical: "https://support.appfire.com/space/CVP/936804365/How%20to%20display%20SVG%20attachments%20in%20Confluence"
format: markdown
---
> Macro (aura-html)

## Problem

SVG attachments are not displayed on Confluence pages.

## Steps

> ✅ *Confluence server access required!*
> ✅ 
> ✅ <span style="color: #000000">Ask your Confluence administrator to perform these steps.</span>

1. <span style="color: #000000">Go to your Confluence server and find the directory where Confluence was installed.</span>
2. <span style="color: #000000">Edit </span>`<confluence-install-directory>/confluence/WEB-INF/classes/mime.types` .
3. <span style="color: #000000">Add a line: </span>`image/svg+xml  svg svgz`<span style="color: #000000">.</span>
4. <span style="color: #000000">Restart the Confluence application server.</span>

## <span style="color: #000000">Result</span>

<span style="color: #000000">When inserting a reference to an SVG image in the Confluence editor using Image Browser, the SVG image is now displayed instead of a link to the image attachment.</span>

## <span style="color: #000000">Additional information</span>

> ℹ️ *For Confluence 5.8.17*:
> ℹ️ 
> ℹ️ <span style="color: #000000">If adding the </span>`image/svg+xml  svg svgz`<span style="color: #000000"> line to </span><span style="color: #000000">*mime.types*</span><span style="color: #000000"> did not work, on editing the Confluence page:</span>
> ℹ️ 
> ℹ️ 1. <span style="color: #000000">Type </span>`!`<span style="color: #000000"> then, select the attached SVG. It renders the image inline.</span>
> ℹ️ 2. <span style="color: #000000">Adjust the image size as needed.</span>