Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. HTTP
  3. Guides
  4. Media types
  5. Common types

Common media types

This topic lists the most common MIME types with corresponding document types, ordered by their common extensions.

The following two important MIME types are the default types:

  • text/plain is the default value for textual files. A textual file should be human-readable and must not contain binary data.
  • application/octet-stream is the default value for all other cases. An unknown file type should use this type. Browsers are particularly careful when manipulating these files to protect users from software vulnerabilities and possible dangerous behavior.

IANA is the official registry of MIME media types and maintains alist of all the official MIME types. This table lists important MIME types for the Web:

ExtensionKind of documentMIME Type
.aacAAC audioaudio/aac
.abwAbiWord documentapplication/x-abiword
.apngAnimated Portable Network Graphics (APNG) imageimage/apng
.arcArchive document (multiple files embedded)application/x-freearc
.avifAVIF imageimage/avif
.aviAVI: Audio Video Interleavevideo/x-msvideo
.azwAmazon Kindle eBook formatapplication/vnd.amazon.ebook
.binAny kind of binary dataapplication/octet-stream
.bmpWindows OS/2 Bitmap Graphicsimage/bmp
.bzBZip archiveapplication/x-bzip
.bz2BZip2 archiveapplication/x-bzip2
.cdaCD audioapplication/x-cdf
.cshC-Shell scriptapplication/x-csh
.cssCascading Style Sheets (CSS)text/css
.csvComma-separated values (CSV)text/csv
.docMicrosoft Wordapplication/msword
.docxMicrosoft Word (OpenXML)application/vnd.openxmlformats-officedocument.wordprocessingml.document
.eotMS Embedded OpenType fontsapplication/vnd.ms-fontobject
.epubElectronic publication (EPUB)application/epub+zip
.gzGZip Compressed Archiveapplication/gzip. Note, Windows and macOS upload.gz files with the non-standard MIME typeapplication/x-gzip.
.gifGraphics Interchange Format (GIF)image/gif
.htm,.htmlHyperText Markup Language (HTML)text/html
.icoIcon formatimage/vnd.microsoft.icon
.icsiCalendar formattext/calendar
.jarJava Archive (JAR)application/java-archive
.jpeg,.jpgJPEG imagesimage/jpeg
.jsJavaScripttext/javascript (Specifications:HTML andRFC 9239)
.jsonJSON formatapplication/json
.jsonldJSON-LD formatapplication/ld+json
.mdMarkdowntext/markdown
.mid,.midiMusical Instrument Digital Interface (MIDI)audio/midi,audio/x-midi
.mjsJavaScript moduletext/javascript
.mp3MP3 audioaudio/mpeg
.mp4MP4 videovideo/mp4
.mpegMPEG Videovideo/mpeg
.mpkgApple Installer Packageapplication/vnd.apple.installer+xml
.odpOpenDocument presentation documentapplication/vnd.oasis.opendocument.presentation
.odsOpenDocument spreadsheet documentapplication/vnd.oasis.opendocument.spreadsheet
.odtOpenDocument text documentapplication/vnd.oasis.opendocument.text
.ogaOgg audioaudio/ogg
.ogvOgg videovideo/ogg
.ogxOggapplication/ogg
.opusOpus audio in Ogg containeraudio/ogg
.otfOpenType fontfont/otf
.pngPortable Network Graphicsimage/png
.pdfAdobePortable Document Format (PDF)application/pdf
.phpHypertext Preprocessor (Personal Home Page)application/x-httpd-php
.pptMicrosoft PowerPointapplication/vnd.ms-powerpoint
.pptxMicrosoft PowerPoint (OpenXML)application/vnd.openxmlformats-officedocument.presentationml.presentation
.rarRAR archiveapplication/vnd.rar
.rtfRich Text Format (RTF)application/rtf
.shBourne shell scriptapplication/x-sh
.svgScalable Vector Graphics (SVG)image/svg+xml
.tarTape Archive (TAR)application/x-tar
.tif,.tiffTagged Image File Format (TIFF)image/tiff
.tsMPEG transport streamvideo/mp2t
.ttfTrueType Fontfont/ttf
.txtText, (generallyASCII or ISO 8859-n)text/plain
.vsdMicrosoft Visioapplication/vnd.visio
.wavWaveform Audio Formataudio/wav
.webaWEBM audioaudio/webm
.webmWEBM videovideo/webm
.webmanifestWeb application manifestapplication/manifest+json
.webpWEBP imageimage/webp
.woffWeb Open Font Format (WOFF)font/woff
.woff2Web Open Font Format (WOFF)font/woff2
.xhtmlXHTMLapplication/xhtml+xml
.xlsMicrosoft Excelapplication/vnd.ms-excel
.xlsxMicrosoft Excel (OpenXML)application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xmlXMLapplication/xml is recommended as ofRFC 7303 (section 4.1), buttext/xml is still used sometimes. You can assign a specific MIME type to a file with.xml extension depending on how its contents are meant to be interpreted. For instance, an Atom feed isapplication/atom+xml, butapplication/xml serves as a valid default.
.xulXULapplication/vnd.mozilla.xul+xml
.zipZIP archiveapplication/zip. Note, Windows uploads.zip files with the non-standard MIME typeapplication/x-zip-compressed.
.3gp3GPP audio/video containervideo/3gpp;audio/3gpp if it doesn't contain video
.3g23GPP2 audio/video containervideo/3gpp2;audio/3gpp2 if it doesn't contain video
.7z7-zip archiveapplication/x-7z-compressed

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp