My Tool Studio
Developer

MIME Type Lookup

When a server, upload endpoint, or form validator asks for a Content-Type and all you know is the file's extension, this mime type lookup gives the answer in seconds. The table maps more than 50 common extensions to their registered types, organized into groups covering text, images, audio, video, documents, data, archives, fonts, and binary formats. It's a practical mime types list for anyone wiring up file uploads, configuring a web server, or working out why a browser downloads a file instead of rendering it. Search by extension or by the type string itself, then copy the exact value for your header. Every file extension mime type pairing here matches what production servers expect to see.

Always freeNo sign upRuns in your browser
53 / 53
ExtensionMIME TypeGroup
.txttext/plainText
.htmltext/htmlText
.csstext/cssText
.csvtext/csvText
.mdtext/markdownText
.jstext/javascriptText
.mjstext/javascriptText
.jpgimage/jpegImage
.jpegimage/jpegImage
.pngimage/pngImage
.gifimage/gifImage
.webpimage/webpImage
.avifimage/avifImage
.svgimage/svg+xmlImage
.icoimage/vnd.microsoft.iconImage
.heicimage/heicImage
.bmpimage/bmpImage
.tiffimage/tiffImage
.mp3audio/mpegAudio
.wavaudio/wavAudio
.oggaudio/oggAudio
.aacaudio/aacAudio
.flacaudio/flacAudio
.m4aaudio/mp4Audio
.mp4video/mp4Video
.webmvideo/webmVideo
.movvideo/quicktimeVideo
.mkvvideo/x-matroskaVideo
.avivideo/x-msvideoVideo
.pdfapplication/pdfDocument
.docapplication/mswordDocument
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.documentDocument
.xlsapplication/vnd.ms-excelDocument
.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetDocument
.pptapplication/vnd.ms-powerpointDocument
.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentationDocument
.rtfapplication/rtfDocument
.jsonapplication/jsonData
.xmlapplication/xmlData
.yamlapplication/yamlData
.ymlapplication/yamlData
.sqlapplication/sqlData
.zipapplication/zipArchive
.tarapplication/x-tarArchive
.gzapplication/gzipArchive
.7zapplication/x-7z-compressedArchive
.rarapplication/vnd.rarArchive
.wofffont/woffFont
.woff2font/woff2Font
.ttffont/ttfFont
.otffont/otfFont
.binapplication/octet-streamBinary
.wasmapplication/wasmBinary

How to use

01

Type the extension you have

Enter an extension such as .webp or docx into the search field. Searching works in reverse too: paste a string like application/pdf to confirm which extensions belong to it.

02

Scan the group column

Results show the extension, the full MIME type, and a group label like Image, Document, or Font. Groups make it easier to define validation rules for an upload form.

03

Copy the MIME string

Click to copy either the extension or the MIME type, then paste the exact Content-Type value into your server config, upload validator, or HTTP client without transcribing it.

Why MIME Type Lookup

Common questions

How do I use this as a content type lookup for HTTP headers?
Find your file's extension, copy the MIME string from the second column, and set it as the Content-Type header value in your server config or API response. The strings here are the registered forms, so they're safe to use verbatim as a content type lookup result.
What MIME type does a .docx file use?
The full string is application/vnd.openxmlformats-officedocument.wordprocessingml.document, which nobody memorizes. The modern Office formats all use these long vnd.openxmlformats names, and the spreadsheet and presentation variants differ only near the end, which is exactly why a lookup beats recall.
Why does .js map to text/javascript instead of application/javascript?
Because RFC 9239 settled the question in 2022: text/javascript is the standard type, and application/javascript is now obsolete though still widely recognized. Browsers accept both, but new configs should emit text/javascript, which is what this table shows for .js and .mjs.
Is application/octet-stream a safe default for unknown files?
It's honest but blunt: it declares arbitrary binary data, so browsers respond by downloading the file rather than attempting to display it. Use it as a fallback for genuinely unknown content, never for anything you want rendered inline, like images or PDFs.
Does the mime types list cover modern image formats?
Yes. Alongside the classics you'll find .webp as image/webp, .avif as image/avif, and .heic as image/heic, the iPhone camera format that trips up upload validators expecting only JPEG and PNG.
Can I search for font formats like woff2?
Yes, the Font group covers .woff, .woff2, .ttf, and .otf with their font/ prefixed types. Serving the correct one matters in practice because font requests interact with CORS and preload hints, where a mismatched type can silently cancel the optimization.
Which type should a JSON API response declare?
application/json, listed under the Data group. Some frameworks append a charset parameter, which is harmless, but JSON is defined as UTF-8 so the bare type is enough. Avoid text/json entirely, since it was never a registered type.

More Developer tools

View all