How to Change File Extensions in Windows 10
File extensions are the short suffixes at the end of a filename — the .jpg, .docx, .mp4, or .txt that tells Windows what kind of file it's dealing with. Changing a file extension isn't complicated, but Windows 10 hides the option by default, and doing it incorrectly can make a file unreadable. Here's exactly how it works and what you need to know before you start.
Why Windows Hides File Extensions by Default
Out of the box, Windows 10 conceals file extensions from view. Microsoft made this decision to simplify the interface for everyday users — most people don't need to see .docx appended to every Word document. The downside is that when you do need to change an extension, the option isn't immediately obvious.
Before you can rename or change any extension, you need to make extensions visible. Once you know where to look, this takes about ten seconds.
Step 1: Make File Extensions Visible in File Explorer
- Open File Explorer (the folder icon in your taskbar, or press
Windows + E) - Click the View tab in the ribbon at the top
- Check the box labeled File name extensions
Extensions will now appear at the end of every filename in File Explorer. You'll notice files that previously showed as Resume now display as Resume.docx. That suffix is what you're working with.
Step 2: Rename the File to Change Its Extension
Once extensions are visible, changing one is just a rename operation:
- Right-click the file you want to modify
- Select Rename
- Edit the extension portion of the filename (the part after the dot)
- Press Enter
- Windows will display a warning asking if you're sure — click Yes
That's the complete process. The extension is now changed.
Using the F2 Shortcut
You can also single-click a file to select it, then press F2 to enter rename mode directly. This is faster if you're changing extensions on multiple files.
⚠️ What Actually Happens When You Change an Extension
This is where most confusion comes in. Renaming a file extension does not convert the file. It only changes the label Windows uses to decide which program opens it.
If you rename photo.png to photo.jpg, Windows will now try to open it as a JPEG. In many cases this works fine because the underlying data is compatible. But if you rename report.docx to report.pdf, the file won't become a PDF — it will just be a broken file that PDF readers can't open, because the internal data structure is still a Word document.
The distinction matters:
| Action | What It Does |
|---|---|
| Renaming the extension | Changes how Windows identifies and opens the file |
| Converting the file | Changes the actual data structure inside the file |
Extension changing works reliably when the formats are closely related or when Windows can interpret the file either way (common with certain image or text formats). It fails when the formats have fundamentally different internal structures.
When You Might Actually Need File Conversion Instead
If your goal is to genuinely change a file from one format to another — say, .wav to .mp3, or .bmp to .png — renaming the extension won't get you there. You'd need a proper conversion tool, which rewrites the file's internal data into the target format.
Common scenarios where renaming an extension does work:
.txtto.csv(both are plain text; CSV is just comma-separated values).htmto.html(functionally identical formats).jpgto.jpeg(same format, different naming convention)
Common scenarios where it doesn't work and you'll need a converter:
- Audio format changes (
.mp3to.flac,.wavto.aac) - Image format changes involving compression differences (
.bmpto.jpg) - Document format changes (
.docxto.pdf,.pagesto.docx)
Changing Extensions in Bulk 🗂️
If you need to change extensions on many files at once, File Explorer's rename function becomes tedious fast. Windows PowerShell handles this efficiently with a single command.
To rename all .txt files in a folder to .csv, open PowerShell in that folder and run:
Get-ChildItem *.txt | Rename-Item -NewName { $_.Name -replace '.txt$','.csv' } This applies the rename to every matching file in that directory. The same logic applies to any two extensions — swap out the format names as needed.
For users less comfortable with command-line tools, several free third-party utilities offer visual batch renaming with extension-changing built in. The approach that fits best depends on how many files you're working with and your comfort level with PowerShell.
File Association vs. File Extension
One related concept worth understanding: file associations are separate from extensions themselves. Even after changing an extension, Windows may not automatically open the file with the program you expect. If that happens:
- Right-click the file and select Open with
- Choose the correct application
- Check Always use this app if you want Windows to remember the association
This tells Windows how to handle that extension going forward, independent of whatever change you just made.
The Variables That Affect Your Situation
Whether changing a file extension solves your problem depends on several factors:
- The file formats involved — compatible formats behave differently from structurally different ones
- The software you're using — some programs are strict about extensions; others are flexible
- Your end goal — display purposes, file compatibility, or actual format conversion are three different objectives
- How the file was originally created — some files have metadata baked in that conflicts with a renamed extension
A .txt renamed to .bat becomes an executable script. A .jpg renamed to .png usually opens fine. A video file renamed to a different container format may or may not play depending on the codec inside it. The relationship between the extension and the file's actual content is what determines the outcome — and that varies case by case.