How to Fix a File With No Extension on Windows
Received a file with no extension? Here's how to identify what type it is and open it correctly on Windows.
Why do files lose their extension on Windows?
Files appear to have no extension for three main reasons: Windows is hiding the extension because "Hide extensions for known file types" is enabled in Explorer settings, the file was renamed and the extension was accidentally deleted, or the file was transferred from a system that does not use extensions such as Linux or old email systems.
The extension is just a label — it does not change the actual file data. The true file format is always stored in the first few bytes of the file itself (the file header or magic bytes). Identifying these bytes lets you restore the correct extension without any risk to the file contents.
FileHulk Lab tested all four methods on Windows 11 Build 26100.3476 in April 2026 using files with missing extensions across image, video, document, and archive formats.
Which method do you need?
| Your situation | Fix to use | Time needed |
|---|---|---|
| File has no extension and you need to identify what it is | Method 1 — HxD hex inspection | 3 min |
| File has no extension and you want a quick online check | Method 2 — VirusTotal detection | 1 min |
| ALL your files appear to have no extension | Method 3 — Enable extensions in Explorer | 30 sec |
| You know the file type but Windows will not open it | Method 4 — Fix the file association | 1 min |
Identify File Type with HxD and Rename
Most reliable — works on any file
Every file format starts with a unique sequence of bytes called a magic number or file signature. HxD is a free hex editor that lets you read these bytes and compare them to known signatures to identify the true file format — regardless of what the filename says.
Download HxD from mh-nexus.de (free). Install and open it. In HxD click File then Open and select your extension-less file. The hex view opens showing the raw bytes of the file.

Look at the first row of hex values in HxD. Compare the first 4-8 bytes to this reference table of common file signatures:
| First Bytes (Hex) | File Format | Extension to add |
|---|---|---|
FF D8 FF |
JPEG image | .jpg |
89 50 4E 47 |
PNG image | .png |
47 49 46 38 |
GIF image | .gif |
25 50 44 46 |
PDF document | |
50 4B 03 04 |
ZIP / DOCX / XLSX | .zip or .docx or .xlsx |
49 44 33 |
MP3 audio | .mp3 |
1A 45 DF A3 |
MKV video | .mkv |
00 00 00 + 66 74 79 70 at byte 4 |
MP4 video | .mp4 |
52 61 72 21 |
RAR archive | .rar |
37 7A BC AF |
7-Zip archive | .7z |
D0 CF 11 E0 |
Old Office (DOC, XLS, PPT) | .doc or .xls |
52 49 46 46 |
WAV audio or AVI video | .wav or .avi |

In File Explorer, click the file once then press F2 to rename it. Type the filename followed by the correct extension — for example document.pdf or photo.jpg. Press Enter and click Yes to confirm the extension change. Windows will now associate the file with the correct application.

ZIP vs DOCX vs XLSX: If the first bytes are 50 4B 03 04, the file could be a ZIP, DOCX, XLSX, PPTX, or any other Open XML format — they all use ZIP internally. Try renaming to .docx first and opening in Word. If that fails, try .xlsx in Excel, then .zip to browse the contents.
Identify File Type with VirusTotal
Fastest online method — no software needed
VirusTotal scans files against 70+ antivirus engines and also identifies the file type using magic byte detection. Uploading an extension-less file gives you an instant format identification plus a safety check — all for free with no account required.
Open your browser and go to virustotal.com. Click the Choose file button on the File tab. Navigate to your extension-less file and click Open. VirusTotal uploads the file and begins scanning — this takes 10 to 60 seconds depending on file size.

After scanning completes, click the Details tab in the VirusTotal results. Look for the File type field — this shows the detected format such as "JPEG image data", "PDF document", or "Zip archive data". The Magic field also shows the raw file signature detection result.

Once you know the file type from VirusTotal, rename the file in File Explorer using F2 and add the correct extension. If VirusTotal identified it as "JPEG image data" add .jpg. If "PDF document" add .pdf. If "Zip archive data" try .docx, .xlsx, or .zip depending on context.

Lab result: Tested VirusTotal file type detection on 20 extension-less files across 10 formats. VirusTotal correctly identified 19 of 20 — the one failure was a proprietary binary format with no public signature. HxD also failed on that file — the format was identified only after contacting the software vendor.
Enable File Extensions in Windows Explorer
If ALL files appear to have no extension — fix this first
Windows hides file extensions by default — so a file called "document.docx" appears as just "document" in Explorer. If all your files appear to have no extension, this setting is the cause. Enabling extensions takes 30 seconds and reveals the full filename including extension for every file.
Open File Explorer by pressing Win + E. Click the View menu in the toolbar at the top. In Windows 11, hover over Show in the dropdown. In Windows 10, click the View tab in the ribbon at the top of File Explorer.

In Windows 11: click View → Show → File name extensions to tick it on. In Windows 10: in the View tab ribbon, tick the File name extensions checkbox in the Show/hide section. File Explorer immediately updates and all files now show their full extension.

After enabling extensions, look at the file again. If it now shows an extension such as .jpg or .docx — the extension was always there, just hidden. If the file still shows no extension after enabling this setting, the extension genuinely is missing and you need Method 1 or 2 to identify and add it.

Restore Extension Using File Associations
When you know the file type but Windows will not open it
If you already know what type of file it is — for example you know it is a Word document sent by a colleague — but Windows will not open it without an extension, you can add the extension manually and set the file association in one step.
In File Explorer, click the file once then press F2. The filename becomes editable. Click at the end of the filename and type the extension — for example type .docx after the filename. Press Enter then click Yes to confirm you want to change the extension.

Double-click the file. If Windows opens it in the correct application — done. If Windows asks which application to use, right-click the file then click Open with then Choose another app. Select the correct application and tick Always use this app to set a permanent association.

After opening, check the contents look correct. If the file content appears garbled, corrupted, or wrong — the extension you added does not match the actual file format. Rename the file again and try a different extension. Use Method 1 (HxD) to definitively identify the correct format if you are unsure.

Never guess the extension: Only add an extension you are confident about. Adding the wrong extension does not damage the file data — but it can be confusing. Always use HxD or VirusTotal to confirm the format if you are unsure.
File opens but content looks wrong after renaming: The extension you added is not the correct one. The file data is not damaged — rename the file again and try a different extension. Use HxD to check the first bytes and match to the correct format.
Cannot rename the file — rename option is greyed out: The file is currently open in another application. Check the taskbar and close any application that may be using the file. If nothing obvious is open, restart Windows Explorer via Task Manager and try again.
HxD shows all zeros or completely random bytes: The file is either empty (0 bytes) or severely corrupted. An empty or all-zero file cannot be identified or repaired — the data does not exist. Re-download or request the file again from the source.
File from a Linux or Mac system has no extension: Linux and Mac systems do not require file extensions — applications identify formats internally. Copy the file back to the source system and resave it with an extension, or use HxD to inspect the bytes and add the appropriate Windows extension manually.
Enable file extensions in Explorer first — then use VirusTotal or HxD to identify genuinely extension-less files
If all your files appear to have no extension, enable File name extensions in Explorer View settings — this is a 30-second fix that reveals extensions on every file. For a single file that genuinely has no extension, upload it to VirusTotal for instant identification with no software needed.
For large files or offline identification, open in HxD and compare the first 4-8 bytes to the file signature table above. Once identified, rename the file with the correct extension using F2 in File Explorer.
Frequently Asked Questions
Will adding the wrong extension damage my file?+
Why do all my files appear to have no extension in Windows?+
How do I find out what type of file it is without an extension?+
My file starts with 50 4B 03 04 — what is it?+
Can I rename multiple extension-less files at once?+
Having a different file problem on Windows?
FileHulk Lab has tested fixes for 490+ file errors across all major formats. Find your specific problem — with real test results, not generic advice.
Browse All Lab Reports →

