MIME Types Reference

image/svg+xml

The MIME type for SVG (Scalable Vector Graphics) vector images.

What Is This?

The image/svg+xml MIME type indicates that the content is an SVG (Scalable Vector Graphics) image. Unlike raster formats (JPEG, PNG), SVG describes images using XML-based vector mathematics, making them resolution-independent and infinitely scalable without quality loss. SVGs can also be styled with CSS and manipulated with JavaScript.

Common Uses

1

Icons, logos, and illustrations

2

Data visualizations and charts

3

Animated graphics and infographics

4

Responsive images that must look sharp at any size

Examples

Browser Support

Supported by all modern browsers. SVG has been supported since IE9.

File Extension

The .svg file extension maps to image/svg+xml as its MIME type.

Related Entries

More from this reference:

Frequently Asked Questions

Should I use .svg or .svgz extension?

Use .svg for standard SVG files. .svgz is a gzip-compressed SVG format that reduces file size but is less commonly supported. Most servers can gzip SVG on-the-fly for transfer.

Can I embed SVG directly in HTML?

Yes. SVG can be inlined directly in HTML without needing a separate file or MIME type. Inline SVGs can be styled with CSS and scripted with JavaScript, making them powerful for interactive graphics.