Skip to content

Reference

Common MIME Types

MIME types (also called media types or content types) tell browsers and servers what kind of data a file contains. Use the correct Content-Type header to ensure files are handled properly. Convert between formats with the Data Converter.

Application

MIME TypeExtension(s)Notes
application/json.jsonJSON data
application/ld+json.jsonldJSON-LD linked data
application/xml.xmlXML data
application/javascript.js, .mjsJavaScript (legacy; text/javascript preferred)
application/typescript.tsTypeScript source
application/pdf.pdfPDF documents
application/zip.zipZIP archive
application/gzip.gzGzip compressed
application/x-tar.tarTar archive
application/x-7z-compressed.7z7-Zip archive
application/x-bzip2.bz2Bzip2 compressed
application/wasm.wasmWebAssembly binary
application/octet-stream(any)Arbitrary binary data (default for unknown types)
application/x-www-form-urlencodedHTML form POST body
application/graphql.graphqlGraphQL query
application/sql.sqlSQL statements
application/rtf.rtfRich Text Format
application/x-sh.shShell script
application/x-httpd-php.phpPHP source
application/java-archive.jarJava archive
application/vnd.ms-excel.xlsExcel (legacy)
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.xlsxExcel (modern)
application/vnd.ms-powerpoint.pptPowerPoint (legacy)
application/vnd.openxmlformats-officedocument.presentationml.presentation.pptxPowerPoint (modern)
application/msword.docWord (legacy)
application/vnd.openxmlformats-officedocument.wordprocessingml.document.docxWord (modern)
application/epub+zip.epubEPUB e-book
application/x-sqlite3.sqlite, .dbSQLite database

Text

MIME TypeExtension(s)Notes
text/html.html, .htmHTML document
text/css.cssCSS stylesheet
text/javascript.js, .mjsJavaScript (preferred MIME type)
text/plain.txtPlain text
text/csv.csvComma-separated values
text/tab-separated-values.tsvTab-separated values
text/markdown.mdMarkdown
text/xml.xmlXML (text variant)
text/yaml.yaml, .ymlYAML
text/calendar.icsiCalendar event
text/vcard.vcfvCard contact
text/x-python.pyPython source
text/x-java-source.javaJava source
text/x-c.c, .hC source
text/x-go.goGo source

Image

MIME TypeExtension(s)Notes
image/png.pngPNG (lossless, transparency)
image/jpeg.jpg, .jpegJPEG (lossy, photos)
image/gif.gifGIF (animation, 256 colors)
image/webp.webpWebP (modern, lossy + lossless)
image/avif.avifAVIF (next-gen, high compression)
image/svg+xml.svgSVG vector graphic
image/x-icon.icoICO favicon (legacy; use image/png)
image/bmp.bmpBMP bitmap (uncompressed)
image/tiff.tiff, .tifTIFF (print, high quality)
image/apng.apngAnimated PNG
image/jxl.jxlJPEG XL (next-gen, limited support)

Audio

MIME TypeExtension(s)Notes
audio/mpeg.mp3MP3 audio
audio/ogg.ogg, .ogaOgg Vorbis audio
audio/wav.wavWAV (uncompressed PCM)
audio/webm.webaWebM audio
audio/aac.aacAAC audio
audio/flac.flacFLAC (lossless)
audio/midi.mid, .midiMIDI sequence
audio/opus.opusOpus (modern, excellent compression)

Video

MIME TypeExtension(s)Notes
video/mp4.mp4MP4 (H.264 / H.265)
video/webm.webmWebM (VP8 / VP9 / AV1)
video/ogg.ogvOgg Theora video
video/mpeg.mpegMPEG video
video/quicktime.movQuickTime (Apple)
video/x-msvideo.aviAVI (legacy)
video/x-matroska.mkvMatroska container

Font

MIME TypeExtension(s)Notes
font/woff2.woff2WOFF2 (preferred for web)
font/woff.woffWOFF (web font, older)
font/ttf.ttfTrueType font
font/otf.otfOpenType font
font/collection.ttcTrueType collection

Multipart

MIME TypeExtension(s)Notes
multipart/form-dataFile upload form body
multipart/byterangesPartial content response (HTTP 206)
multipart/mixedEmail with attachments
multipart/alternativeEmail with plain + HTML versions

Convert between data formats

Transform JSON, YAML, XML, CSV, and TOML into each other instantly in your browser.

Open Data Converter