How to Change File Extension in Windows 10 (Step-by-Step Guide)

Friday, Feb 20, 2026 | 2 minute read | Updated at Friday, Feb 20, 2026

@

Changing a file extension in Windows 10 is simple once you enable file name extensions. In this step-by-step guide, you will learn how to show file extensions and safely rename them.

Why Change File Extensions?

You may need to change a file extension when:

  • Converting .txt to .html for web development
  • Creating script files like .bat
  • Fixing incorrect file types
  • Testing how different file formats behave

By default, Windows 10 hides file extensions, which makes file management harder.


Step 1: Enable File Name Extensions in Windows 10

Before changing a file extension, you must make them visible.

  1. Open File Explorer (Press Windows + E)
  2. Click the View tab at the top
  3. Check the box File name extensions

After enabling this option, you will see extensions like .txt, .html, .jpg, etc.

How to change file extension in Windows 10 - enable file name extensions


Step 2: Rename the File Extension

Now that extensions are visible:

  1. Right-click the file
  2. Click Rename
  3. Change the extension

Example:
test.txt → test.html

  1. Press Enter

Rename file extension in Windows 10


Step 3: Confirm the Warning Message

When you change the extension, Windows will show a warning message:

If you change a file name extension, the file might become unusable.

Click Yes if you are sure.

File extension warning message Windows 10


Important: Changing Extension vs Converting File

Changing the file extension does not convert the file format.

For example:

  • Renaming .mp4 to .mp3 does not convert video into audio.
  • Renaming .txt to .pdf does not create a real PDF file.

If you need to convert files, use proper file conversion software.


Conclusion

Now you know how to change file extension in Windows 10 step-by-step. By enabling file name extensions and renaming files correctly, you can manage your files more efficiently.

This small setting makes a big difference, especially for beginners, students, and developers.

© 2026 My New Hugo Project

🌱 Powered by Hugo with theme Dream.