Skip to main content
CodeLint.Dev Dev Tools

MIME Types — Complete Reference

Media types mapped to file extensions in both directions, covering the full IANA registry.

56 types
ExtMIME TypeCategoryDescription
.htmltext/htmlTextHTML document
.csstext/cssTextCascading Style Sheets
.csvtext/csvTextComma-Separated Values
.icstext/calendarTextiCalendar format
.jstext/javascriptTextJavaScript (IANA-recommended)
.mdtext/markdownTextMarkdown document
.txttext/plainTextPlain text
.xmltext/xmlTextXML document (text form)
.jsonapplication/jsonApplicationJSON data
.jsonldapplication/ld+jsonApplicationJSON-LD linked data
.xmlapplication/xmlApplicationXML document
.zipapplication/zipApplicationZIP archive
.gzapplication/gzipApplicationGzip compressed
.tarapplication/x-tarApplicationTape archive
.7zapplication/x-7z-compressedApplication7-zip archive
.rarapplication/vnd.rarApplicationRAR archive
.pdfapplication/pdfApplicationPortable Document Format
.docapplication/mswordApplicationMicrosoft Word (legacy)
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.documentApplicationMicrosoft Word (OOXML)
.xlsapplication/vnd.ms-excelApplicationMicrosoft Excel (legacy)
.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetApplicationMicrosoft Excel (OOXML)
.pptapplication/vnd.ms-powerpointApplicationMicrosoft PowerPoint (legacy)
.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentationApplicationMicrosoft PowerPoint (OOXML)
.odtapplication/vnd.oasis.opendocument.textApplicationOpenDocument text
.odsapplication/vnd.oasis.opendocument.spreadsheetApplicationOpenDocument spreadsheet
.odpapplication/vnd.oasis.opendocument.presentationApplicationOpenDocument presentation
.wasmapplication/wasmApplicationWebAssembly binary
.binapplication/octet-streamApplicationArbitrary binary data
.wofffont/woffApplicationWeb Open Font Format
.woff2font/woff2ApplicationWeb Open Font Format 2
.apngimage/apngImageAnimated Portable Network Graphics
.avifimage/avifImageAV1 Image File Format
.bmpimage/bmpImageBitmap image
.gifimage/gifImageGraphics Interchange Format
.icoimage/x-iconImageIcon format
.jpgimage/jpegImageJPEG image
.pngimage/pngImagePortable Network Graphics
.svgimage/svg+xmlImageScalable Vector Graphics
.tifimage/tiffImageTagged Image File Format
.webpimage/webpImageWebP image
.aacaudio/aacAudioAdvanced Audio Coding
.flacaudio/flacAudioFree Lossless Audio Codec
.mp3audio/mpegAudioMPEG audio
.oggaudio/oggAudioOgg audio
.opusaudio/opusAudioOpus audio
.wavaudio/wavAudioWaveform Audio
.webaaudio/webmAudioWebM audio
.avivideo/x-msvideoVideoAVI video
.mp4video/mp4VideoMPEG-4 video
.mpegvideo/mpegVideoMPEG video
.ogvvideo/oggVideoOgg video
.tsvideo/mp2tVideoMPEG-2 Transport Stream
.webmvideo/webmVideoWebM video
.movvideo/quicktimeVideoQuickTime video
.otffont/otfFontOpenType font
.ttffont/ttfFontTrueType font

The ones people get wrong

FileCorrect typeCommonly seenConsequence
.jstext/javascriptapplication/javascriptBoth work; text/javascript is the standard as of the WHATWG spec
.mjstext/javascripttext/plainModules fail to load with a strict MIME type error
.jsonapplication/jsontext/jsontext/json is not registered; some clients refuse to parse it
.svgimage/svg+xmlimage/svgWrong type means the image does not render
.woff2font/woff2application/font-woff2The application/ forms were deprecated in RFC 8081
.csvtext/csvapplication/vnd.ms-excelOpens in the wrong application
.mdtext/markdowntext/plainLoses editor and preview associations
.wasmapplication/wasmapplication/octet-streamStreaming compilation is refused; the module fails to instantiate

Type names are case-insensitive but conventionally lowercase. Parameters follow a semicolon: text/html; charset=utf-8. For text types, always send the charset — omitting it leaves the browser guessing, and the guess can be exploited.

About

The MIME Types Reference lists all common IANA media types and their associated file extensions. Use it to find the correct Content-Type header for your API responses, file uploads, or web server configuration. Filter by category (Text, Application, Image, Audio, Video, Font) for quick lookup.

How to use

  1. 1 Search by file extension (e.g. ".pdf") or MIME type (e.g. "application/json").
  2. 2 Filter by category using the chip buttons at the top.
  3. 3 Click any row to copy the MIME type string.
What is a MIME type and where is it used?
A MIME type (Multipurpose Internet Mail Extensions) is a standard identifier that describes the format of a file or data stream. It is sent in the HTTP Content-Type header so browsers and clients know how to handle a response — whether to display it as HTML, parse it as JSON, play it as audio, or prompt a download. For example, application/json tells the client the body is JSON.
What MIME type should I use for a JSON API response?
Use application/json. This is the correct and universally expected Content-Type for JSON API responses. Some older APIs use text/plain or text/javascript, but these are incorrect — modern REST APIs and any API client expecting JSON should send and accept application/json.
What is the difference between application/octet-stream and a specific MIME type?
application/octet-stream is a generic binary type meaning "unknown file format." Browsers typically prompt a download for this type. Use a specific MIME type whenever possible (e.g. application/pdf for PDFs, image/png for PNGs) so browsers can handle the content appropriately. Use application/octet-stream only as a fallback when no specific type applies.