File mime type checker
Get details of any file, such as the mime type or last edit date.
About this tool
The file MIME type checker tells you what a file really is. It reads the first bytes of the file to identify its type from the contents, compares that with the type its extension suggests, and shows the file’s size, extension, last modified date and, for images, the dimensions. The file stays on your device; nothing is uploaded.
How to use the file type checker
- Choose a file, or drop it on the box.
- Read the type found from the contents and the type from the extension.
- If they don’t match, the result says so.
Why the two types can differ
The extension is just part of the name, so anyone can rename photo.png to photo.jpg or report.exe to report.pdf. The contents can’t lie as easily: most formats start with a fixed signature, such as %PDF for a PDF or the bytes 89 50 4E 47 for a PNG.
A mismatch usually means a file was renamed by mistake, but it can also be a sign that a file isn’t what it claims to be, so take care with anything unexpected.
When it’s useful
- Opening a file that won’t open, or that the wrong app opens.
- Checking uploads in a web app accept only the types they should.
- Finding the right MIME type to set on a server or in code, such as application/pdf or image/webp.