File Becomes .html.txt in Windows? Show the Full Extension First
By ON Lab · Sources checked November 6, 2026
If renaming a file produces a name such as example.html.txt, first show the full filename in Windows File Explorer: choose View → Show → File name extensions. Then inspect the last extension before changing anything. Renaming an extension changes the name; it does not convert the file's contents to another format.
Distinguish three different tasks
You might want to see the complete name, correct a filename, or convert the actual document. These are separate operations. A file called report.pdf is not proven to be a valid PDF merely because its name ends that way.
| Your goal | Relevant action |
|---|---|
| See the suffix Windows is hiding | Enable File name extensions in File Explorer. |
| Correct a known filename or an intended text-file suffix | Rename a working copy after showing the full name. |
| Create a PDF, image or another document format | Use the originating application's supported export or save format. |
| Open the same valid file with a different app | Choose an appropriate application; changing the suffix is not the same task. |
Microsoft states that extensions help Windows identify an application and icon for a file. It also explicitly says that changing an extension does not perform a format conversion. That distinction matters when the file still fails to open after a rename.
Make the full name visible
- Open File Explorer from the taskbar search or your usual shortcut.
- In Windows 11, select View → Show → File name extensions.
- Read the entire name in the folder. Compare it with what you expected before renaming.
Microsoft's current help gives that route for Windows 11. Its Windows 10 instructions use the View tab's File name extensions checkbox. Do not treat an older ribbon screenshot as a Windows 11 requirement.
A file-type column or familiar application icon can be useful context, but neither substitutes for reading the whole name. If the folder display makes a long filename hard to inspect, select the file and inspect its name carefully before confirming a rename.
Understand the double-extension example
Consider an ordinary text file whose actual name is example.txt. If its known extension is hidden, you may see only example. Typing example.html as the visible name can leave the original ending in place, resulting in example.html.txt.
Showing extensions makes the complete result visible. The final suffix in that example is still .txt. This is an invented explanatory example; it is not a report that we reproduced a particular Windows update or inspected your file.
If your task is deliberately saving plain-text HTML source, correct the name only when you know the content is HTML text and have preserved a copy. For a Word document, presentation, photograph or PDF, use its application's real format conversion instead of copying that text-file example.
Correct a name conservatively
- Preserve the original file or work on a copy.
- Record the complete original name with extensions visible.
- Use your normal Rename action and change only the part you intend to change.
- Read the full proposed name before accepting any extension warning. Cancel if the new format is not what you intended.
- After the rename, read the entire filename again.
- Open the working copy in the appropriate trusted app and verify the required content.
A successful rename is only a filename result. It does not prove that the document opens correctly, that its structure is valid, or that a website will accept it. If the purpose is submitting a document, check that the exported file actually meets the recipient's required format.
If it still opens in the wrong app
The default app association is a separate setting from the filename. Microsoft's extensions article links to its default-app guidance. Use that route if the content and extension are correct but Windows chooses an unwanted application.
Do not cycle through random suffixes until something opens. If you do not know the file's original format, return to its source or ask the sender for the intended application and a fresh export. Do not execute an unexpected downloaded file simply because it has a document-like name.
Restore the original and report the exact difference
If a rename makes the copy unusable, restore its recorded original name or return to the untouched original. Reopen it and verify the content. Turning extension display off again only hides part of the name; it does not reverse a rename.
For support, record the before-and-after full names, Windows version and the application error. Avoid sharing the private document itself unless an authorized support channel actually needs it. Those details distinguish a display issue, an incorrect name, a wrong default application and a failed conversion.
Scope: Microsoft's Windows extension-display and format distinctions with editorial checks. No registry changes, operating-system reinstall, private-file inspection or document conversion was performed.