MIME Type Detector
Detect MIME type from a file.
About this tool
Choose a file and press Process. You get the MIME type your browser assigns, which you can use in a Content-Type header or upload form.
How to use
How it works
The browser derives the type from the file's extension. If it does not know the extension, the tool returns application/octet-stream, the generic type for arbitrary binary data. The file's contents are not inspected.
Worked example
A PDF
- Input
- invoice.pdf
- Output
- application/pdf
- Walkthrough
- The.pdf extension maps to application/pdf.
Limitations
- Extension-based only.
- Unknown extensions return application/octet-stream.
- Does not check that the contents match the type.
Questions
What is a MIME type?
What does application/octet-stream mean?
Can I look up a type from an extension?
Features
- Content-Type value
- Octet-stream fallback
- Private, in-browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Learn JSON - Full Crash Course
freeCodeCamp.org
Structured file formats show up beside binary converters.
Watch on YouTubeHow base64 encoding works
Andrew Schmelyun
Files become Base64 when embedded in JSON or HTML.
Watch on YouTube
- RFC 1952 — GZIP file format
IETF
GZIP format notes for compress/decompress utilities.
- Media Types
IANA
Official media-type registry for file extensions.