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

  1. Open File Explorer (the folder icon in your taskbar, or press Windows + E)
  2. Click the View tab in the ribbon at the top
  3. 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:

  1. Right-click the file you want to modify
  2. Select Rename
  3. Edit the extension portion of the filename (the part after the dot)
  4. Press Enter
  5. 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:

ActionWhat It Does
Renaming the extensionChanges how Windows identifies and opens the file
Converting the fileChanges 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:

  • .txt to .csv (both are plain text; CSV is just comma-separated values)
  • .htm to .html (functionally identical formats)
  • .jpg to .jpeg (same format, different naming convention)

Common scenarios where it doesn't work and you'll need a converter:

  • Audio format changes (.mp3 to .flac, .wav to .aac)
  • Image format changes involving compression differences (.bmp to .jpg)
  • Document format changes (.docx to .pdf, .pages to .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.