MIME Type Lookup

Look up the MIME (media) type for any common file extension.

Covers the commonly-used subset of the IANA media types registry, not every registered type.

MIME type

image/svg+xml

All extensions

ExtensionMIME type
.7zapplication/x-7z-compressed
.avivideo/x-msvideo
.avifimage/avif
.bmpimage/bmp
.csstext/css
.csvtext/csv
.docapplication/msword
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
.gifimage/gif
.gzapplication/gzip
.htmtext/html
.htmltext/html
.icoimage/x-icon
.jpegimage/jpeg
.jpgimage/jpeg
.jsapplication/javascript
.jsonapplication/json
.mdtext/markdown
.mjsapplication/javascript
.movvideo/quicktime
.mp3audio/mpeg
.mp4video/mp4
.oggaudio/ogg
.otffont/otf
.pdfapplication/pdf
.pngimage/png
.pptapplication/vnd.ms-powerpoint
.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation
.rarapplication/vnd.rar
.svgimage/svg+xml
.tarapplication/x-tar
.ttffont/ttf
.txttext/plain
.wasmapplication/wasm
.wavaudio/wav
.webmvideo/webm
.webmanifestapplication/manifest+json
.webpimage/webp
.wofffont/woff
.woff2font/woff2
.xlsapplication/vnd.ms-excel
.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xmlapplication/xml
.zipapplication/zip

For informational and educational purposes only — not professional or technical advice, and not a substitute for consulting a qualified professional about your specific situation. TrueMeasureKit is not liable for decisions made based on these results. See our Terms of Service.

Why the MIME type matters more than the file extension

Browsers and servers use the MIME type — sent in the Content-Type header — to decide how to handle a file, not the extension in its name. A file extension is really just a hint for humans and some operating systems; the actual behavior (render as HTML, download as a binary, play as audio) is driven by whatever Content-Type the server declares, which is why serving the wrong MIME type for a file can cause a browser to render it incorrectly even if the extension looks right.

Frequently asked questions

Why does a file need a MIME type at all?

Browsers and servers use the MIME type — not the file extension — to decide how to handle content, like whether to render an image inline, download a file, or parse a response as JSON. Getting it wrong can cause a browser to display or handle a file incorrectly.

Advertisement
Adaptive banner

We use cookies for analytics and to show ads, including personalized ads from Google. You can accept or reject these — the calculators themselves never send your inputs anywhere either way. See our Privacy Policy for details.