File Extension Detector
Got a file with no extension, or one that won't open? Find its real extension and download it with the right name.
Drop the mystery file
files without an extension are welcome
● Your files are processed locally in your browser and are not uploaded to our servers.
How to find a file's extension
- Drop the mystery file — files without any extension are welcome.
- Read the current extension, the correct extension and the format detected from the file's content.
- Check the suggested new file name and click Download renamed file. The content is unchanged; only the name is fixed.
Why files lose their extension
- Downloads saved as download, file or a random string, without “.pdf” or “.jpg”.
- Email and chat exports: attachments from WhatsApp, Outlook (winmail.dat) or some webmail services.
- Recovered files from a damaged disk or a memory card, often named file0001.
- Hidden extensions on Windows, which make it easy to rename “photo.jpg” to “photo.jpg.txt” by accident.
- Wrong extension: a WebP image saved as .jpg, a ZIP saved as .dat, a document renamed by mistake.
How the detection works
The name of a file can be anything, but its first bytes usually reveal what it really is. A PDF starts with %PDF, a PNG with 89 50 4E 47, a ZIP with PK. The detector reads this signature on your device and suggests the matching extension. Office documents (DOCX, XLSX, PPTX), EPUB books and APK apps are ZIP files inside: they're told apart by what the archive contains.
Common results
| Detected format | Extension | Opens with |
|---|---|---|
| PDF document | Any browser, PDF reader | |
| JPEG / PNG / WebP image | .jpg / .png / .webp | Any image viewer or browser |
| Word, Excel, PowerPoint | .docx / .xlsx / .pptx | Office, Google Docs, LibreOffice |
| ZIP archive | .zip | Windows, macOS, or the ZIP Extractor |
| MP4 video / MP3 audio | .mp4 / .mp3 | Any media player |
How to rename a file yourself
Windows: in File Explorer, enable View → Show → File name extensions, then rename the file and add the extension. macOS: select the file, Get Info, and edit Name & Extension. Renaming only changes the label — it doesn't convert the format.
FAQ
Is a file safe once I know its type?
Not necessarily. Knowing the type tells you what a file is, not whether it's harmful. Never open an unexpected program (.exe) or a macro-enabled document.
Can I check several files at once?
Use the File Type Detector, which takes several files and flags mismatched extensions. To see the raw bytes, open the Binary File Viewer.
Are my files uploaded?
No. The file is read in your browser and never leaves your device.