toolqik

65 · API & Webhooks

MIME Type Lookup

Find the MIME type for a file extension, and check what a file really is.

Runs in your browser
ExtensionMIME typeDescription
.html .htm text/htmlHTML document
.css text/cssCSS stylesheet
.js .mjs .cjs text/javascriptJavaScript (RFC 9239; application/javascript is the older name)
.json application/jsonJSON
.jsonld application/ld+jsonJSON-LD linked data
.map application/jsonSource map
.webmanifest application/manifest+jsonWeb app manifest
.xml application/xmlXML (text/xml is also used)
.xhtml application/xhtml+xmlXHTML document
.rss application/rss+xmlRSS feed
.atom application/atom+xmlAtom feed
.txt text/plainPlain text
.csv text/csvComma-separated values
.tsv text/tab-separated-valuesTab-separated values
.md .markdown text/markdownMarkdown
.ics text/calendariCalendar event
.vcf text/vcardvCard contact
.yaml .yml application/yamlYAML (RFC 9512)
.toml application/tomlTOML
.wasm application/wasmWebAssembly
.pdf application/pdfPDF document
.zip application/zipZIP archive
.gz application/gzipGzip archive
.tar application/x-tarTar archive
.tgz application/gzipGzipped tar archive
.bz2 application/x-bzip2Bzip2 archive
.7z application/x-7z-compressed7-Zip archive
.rar application/vnd.rarRAR archive
.xz application/x-xzXZ archive
.zst application/zstdZstandard archive
.jar application/java-archiveJava archive
.apk application/vnd.android.package-archiveAndroid app package
.exe .dll application/vnd.microsoft.portable-executableWindows executable (often served as application/octet-stream)
.msi application/x-msiWindows installer
.dmg application/x-apple-diskimagemacOS disk image
.deb application/vnd.debian.binary-packageDebian package
.rpm application/x-rpmRPM package
.iso application/x-iso9660-imageISO disk image
.bin application/octet-streamArbitrary binary data (the generic fallback)
.sql application/sqlSQL
.sh application/x-shShell script
.py text/x-pythonPython source
.php application/x-httpd-phpPHP source
.doc application/mswordWord 97–2003 document
.docx application/vnd.openxmlformats-officedocument.wordprocessingml.documentWord document
.xls application/vnd.ms-excelExcel 97–2003 workbook
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheetExcel workbook
.ppt application/vnd.ms-powerpointPowerPoint 97–2003 presentation
.pptx application/vnd.openxmlformats-officedocument.presentationml.presentationPowerPoint presentation
.odt application/vnd.oasis.opendocument.textOpenDocument text
.ods application/vnd.oasis.opendocument.spreadsheetOpenDocument spreadsheet
.odp application/vnd.oasis.opendocument.presentationOpenDocument presentation
.rtf application/rtfRich Text Format
.epub application/epub+zipEPUB e-book
.png image/pngPNG image
.jpg .jpeg .jfif image/jpegJPEG image
.gif image/gifGIF image
.webp image/webpWebP image
.avif image/avifAVIF image
.svg image/svg+xmlSVG vector image
.ico image/vnd.microsoft.iconIcon (image/x-icon is widely used too)
.bmp image/bmpBitmap image
.tif .tiff image/tiffTIFF image
.heic image/heicHEIC image (iPhone photos)
.heif image/heifHEIF image
.jxl image/jxlJPEG XL image
.psd image/vnd.adobe.photoshopPhotoshop document
.mp3 audio/mpegMP3 audio
.wav audio/wavWAV audio
.ogg .oga audio/oggOgg audio
.opus audio/opusOpus audio
.flac audio/flacFLAC audio
.aac audio/aacAAC audio
.m4a audio/mp4MPEG-4 audio
.weba audio/webmWebM audio
.mid .midi audio/midiMIDI
.mp4 .m4v video/mp4MP4 video
.webm video/webmWebM video
.ogv video/oggOgg video
.mov video/quicktimeQuickTime video
.avi video/x-msvideoAVI video
.mkv video/x-matroskaMatroska video
.mpeg .mpg video/mpegMPEG video
.ts video/mp2tMPEG transport stream (also TypeScript source, by extension)
.m3u8 application/vnd.apple.mpegurlHLS playlist
.mpd application/dash+xmlMPEG-DASH manifest
.3gp video/3gpp3GPP video
.woff font/woffWOFF font
.woff2 font/woff2WOFF2 font
.ttf font/ttfTrueType font
.otf font/otfOpenType font
.eot application/vnd.ms-fontobjectEmbedded OpenType font
.crt .cer .der application/pkix-certX.509 certificate (DER)
.pem application/x-pem-filePEM certificate or key
.p12 .pfx application/x-pkcs12PKCS#12 key store
.csr application/pkcs10Certificate signing request
.eml message/rfc822Email message
—multipart/form-dataHTML form with file uploads (request body)
—application/x-www-form-urlencodedHTML form fields as key=value&… (request body)
—text/event-streamServer-Sent Events stream
—application/x-ndjsonNewline-delimited JSON (JSON Lines)
—application/problem+jsonProblem Details for HTTP APIs (RFC 9457 error format)
—application/graphql-response+jsonGraphQL over HTTP response
—application/merge-patch+jsonJSON Merge Patch (RFC 7386)
—application/json-patch+jsonJSON Patch (RFC 6902)
—application/vnd.api+jsonJSON:API
—application/grpcgRPC
—application/x-protobufProtocol Buffers (also application/protobuf)
—application/cborCBOR binary data
—application/msgpackMessagePack
—application/jwtJSON Web Token
—application/octet-streamUnknown binary data; browsers download it

About this tool

A MIME type (or media type), like application/json or image/webp, tells browsers and APIs what kind of data they’re receiving. Servers send it in the Content-Type header, and getting it wrong breaks things: scripts that won’t run, downloads that open as text, uploads an API rejects. Search by extension or type, or drop a file to compare what its name, your browser and its actual bytes say.

Why the real type matters

File extensions and the type a browser reports are both just claims. A file named photo.jpg can contain anything. When you accept uploads, check the content (its “magic number” signature) on the server and allow only the types you expect. The file check here reads the first bytes locally to show what the file really is.

Common mistakes

  • JavaScript should be text/javascript, and module scripts must have a JavaScript type or browsers refuse to run them.
  • JSON APIs should send application/json; errors in the RFC 9457 format use application/problem+json.
  • Add X-Content-Type-Options: nosniff so browsers trust your type instead of guessing.
  • Downloads: application/octet-stream with Content-Disposition: attachment forces a download.

FAQ

What is the MIME type for JSON?

application/json. Use application/problem+json for error responses in the RFC 9457 format and application/x-ndjson for newline-delimited JSON.

What is the MIME type for JavaScript?

text/javascript (RFC 9239). application/javascript also works but is the older name.

What MIME type should I use for unknown files?

application/octet-stream, which browsers treat as a binary download.

How can I tell a file’s real type?

Drop it on this page. The first bytes are compared with known signatures; the file never leaves your device.

esc
↑↓ navigate↵ open