Identify
How to Identify an Unknown File (Even Without an Extension)
You receive a file called document, download, or image_final. There is no extension, and your computer doesn't know which program should open it.
Or perhaps the file ends in .jpg, but something about it doesn't look right.
How can you find out what the file actually is?
The answer is to check more than its name. There are three useful ways to identify a file: look at its extension, examine its file signature, and inspect its internal structure.
The most important thing to remember: a file extension is a label, not proof of what the file contains.
1. Check the file extension
The easiest place to start is the file extension.
An extension is the part of a filename that appears after the final dot:
photo.jpg— JPEG imagereport.pdf— PDF documentsong.mp3— MP3 audiovideo.mp4— MP4 videoarchive.zip— ZIP archive
Your operating system uses this information to decide which application should open the file.
However, extensions are easy to change.
For example, someone can rename:
holiday_photo.heic
to:
holiday_photo.jpg
The filename now says JPG, but the actual file contents are still HEIC.
Renaming a file does not convert it.
This is why the extension is useful as a first clue, but should never be treated as final confirmation.
2. Examine the file signature
Files often contain recognizable information near the beginning of their data.
This information is called a file signature, sometimes also known as magic bytes.
Unlike an extension, a file signature comes from the actual contents of the file.
Some common examples include:
| File format | Example signature |
|---|---|
| JPEG | FF D8 FF |
| PNG | 89 50 4E 47 0D 0A 1A 0A |
%PDF- | |
| ZIP | PK |
For example, imagine you receive a file named picture.jpg.
You check its signature and discover that it begins with the ZIP signature instead of the expected JPEG signature.
This tells you that the filename and the actual file type do not match.
File signatures are particularly useful when:
- A file has no extension.
- Someone renamed a file incorrectly.
- A download has an unexpected format.
- You want to verify what is really inside a file.
However, not every format can be identified by checking only the first few bytes. Some formats use more complex structures, and some share similar container formats.
That's where the third method becomes important.
3. Inspect the internal structure
Some files need to be examined beyond their first bytes.
For example, DOCX and XLSX documents are built using ZIP-based packages containing XML files, relationships, and other resources.
An EPUB ebook also uses a ZIP-based container, while an APK Android application contains resources, compiled code, and application metadata.
At first glance, these files can look like ordinary ZIP archives.
But their internal contents reveal what they are actually designed to represent.
Consider these examples:
| Filename | What you may find inside |
|---|---|
report.docx | Word document structure and XML content |
budget.xlsx | Spreadsheet worksheets and workbook data |
book.epub | Ebook metadata, chapters, and resources |
app.apk | Android application components |
This is why examining internal structure can provide more information than simply checking an extension or a signature.
There is one limitation: encrypted, incomplete, damaged, or unusual files may not expose enough readable information for reliable identification.
Why one method is not enough
Each identification method answers a different question.
| Method | What it tells you | Main limitation |
|---|---|---|
| Extension | What the filename claims to be | Can be changed manually |
| File signature | What format the bytes appear to represent | Some formats share signatures |
| Internal structure | How the file is organized and what it contains | Requires deeper inspection |
For the most reliable result, combine these checks instead of relying on just one.
How FileExplain helps identify unknown files
You shouldn't need to understand hexadecimal signatures, file containers, or technical specifications just to figure out what a file is.
FileExplain helps you inspect a file and understand its actual format, rather than relying only on its filename.
It also goes one step further: identifying a file is only the beginning. You can check whether its format and technical properties match the requirements of platforms such as Etsy, Shopify, Canva, and other services.
Not sure what kind of file you have? Check it with FileExplain.
Frequently Asked Questions
Can I identify a file without an extension?
Yes. A file can often be identified by examining its signature and internal structure, even when its filename has no extension.
Can two different file types have the same signature?
Yes. Some formats use the same underlying container or share recognizable byte patterns. Additional structural checks may be necessary.
Does changing a file extension change its format?
No. Renaming photo.heic to photo.jpg only changes the filename. The actual image data remains HEIC until it is converted.
Can every file be identified?
No. Encrypted, corrupted, proprietary, incomplete, or unsupported files may not provide enough information for reliable identification.
Is a correctly identified file automatically safe?
No. Identifying a file format does not establish that the file is safe to open. Never run unknown programs or executables from untrusted sources.