Developer Reference

MIME Types Reference

MIME type reference: map file extensions to Content-Type headers. Free lookup for web, images, documents, audio, video, and fonts.

MIME types tell browsers and servers what file format they're handling. Developers need quick access to the correct Content-Type header value when serving files, configuring uploads, or setting cache rules. This reference maps common extensions to their standard MIME types across all major categories.

Text & web

ExtensionMIME type
.htmltext/html
.csstext/css
.jstext/javascript
.jsonapplication/json
.xmlapplication/xml
.csvtext/csv
.txttext/plain
.mdtext/markdown
.svgimage/svg+xml

Images

ExtensionMIME type
.pngimage/png
.jpg / .jpegimage/jpeg
.gifimage/gif
.webpimage/webp
.avifimage/avif
.icoimage/x-icon
.bmpimage/bmp
.tiffimage/tiff

Documents, audio, video, archives

ExtensionMIME type
.pdfapplication/pdf
.zipapplication/zip
.gzapplication/gzip
.docapplication/msword
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
.xlsapplication/vnd.ms-excel
.mp3audio/mpeg
.wavaudio/wav
.mp4video/mp4
.webmvideo/webm
.woff2font/woff2

How this reference is used

  • Setting the correct Content-Type header when uploading files to a server or API
  • Configuring a web server or CDN to serve files with the right MIME type
  • Validating user uploads by checking file extensions against expected MIME types
  • Debugging browser issues where a resource fails to load due to incorrect Content-Type
  • Building a file upload form that restricts accepted file types

Frequently asked questions

Why does Content-Type matter?

Browsers use Content-Type to decide how to handle a file—whether to render it, download it, or block it. Wrong headers can break file downloads, prevent images from displaying, or trigger security errors. Servers also use it to apply appropriate caching rules.

What's the difference between a MIME type and a file extension?

A file extension (.jpg, .pdf) is just a label on the filename. MIME type (image/jpeg, application/pdf) is the actual metadata sent in HTTP headers that tells the browser what the content really is. They should match, but a file can have any extension.

Do I need to memorize these?

No. Keep this reference bookmarked. The most common ones (text/html, application/json, image/png) you'll learn naturally, but for obscure formats or when setting up servers, a quick lookup saves time and prevents bugs.

More developer references

FreeToolz Editorial Team · Last reviewed July 2026

Compiled and checked against the relevant standards. Free to use and reference — this page runs entirely in your browser.