How to Change a File Extension or File Type in Windows 11

To change a file extension in Windows 11, open File Explorer, select View > Show > File name extensions, select the file and press F2. Replace the ending after the last period, press Enter, and confirm only if the new extension matches the file’s actual format.

Renaming does not convert a file. Changing document.txt to document.pdf does not create a PDF. For a different format, open the file in an app that supports it and use Save As or Export. This guide explains both tasks on Windows 11 and how to undo an incorrect rename.

Choose the Right Kind of Change

  • Correct a wrong ending: rename the extension when you know the contents already match the intended format. For example, a JPEG saved with .jpeg can use .jpg; those names identify the same image format.
  • Create a different format: use an app’s conversion or export feature. A Word document and a PDF have different internal structures.
  • Open the same file in a different app: change its Windows file association. You do not need to rename or convert it.

Microsoft’s file-extension guidance explains that changing the name does not change the contents. If you do not know the file’s real format, check with the app or person that created it before guessing an ending.

How to Rename One File Extension in Windows 11

Work on a copy and note the original full name first. Close the file in its app before renaming. Do not rename a program, system file or an unfamiliar attachment simply to make it open.

  1. Open the folder. Press Windows key + E and navigate to the file in File Explorer.
  2. Show its full ending. Select View > Show > File name extensions. You should see a name such as photo.jpeg. See our Windows extension-display guide for the Folder Options alternative.
  3. Select the file and press F2. You can also right-click it and select Rename; hover over an icon if its label is not visible. Microsoft documents F2 in its rename-a-file instructions.
  4. Edit the actual extension. Windows may initially select only the base name. Click or move to the ending after the last period. For the same-format example, replace jpeg with jpg while keeping the period and base name.
  5. Confirm the name. Press Enter. If Windows warns that the file may become unusable, select Yes only when you know the new suffix is correct. Otherwise cancel.
  6. Check the result. Verify that the visible name is photo.jpg, then open your trusted copy in an app that supports JPEG. The name changes; the image contents are not converted.
Steps to rename a file extension in Windows 11: open the folder, show file name extensions, select the file and press F2, edit the extension, press Enter
Illustration: how to rename a file extension in Windows 11.

How to Create a Real Converted File

Windows File Explorer has no universal converter for every format. The source app must understand the original and support the output you need. Keep the original because conversion can change layout, quality or editable features.

Example: a Word document to PDF

For the Windows desktop edition of Word, Microsoft’s PDF conversion instructions provide this route:

  1. Open the original document in Word and check that it displays correctly.
  2. Select File > Save a Copy for a previously saved document, or Save As if that is the available command.
  3. Select Browse, choose a folder and give the output a clear name.
  4. Choose PDF in the file-type drop-down. Typing .pdf in the name alone is not the conversion step.
  5. Select Save. Open the resulting PDF and review its pages, while keeping the original document.

For a picture, audio or video file, use a compatible app’s supported output formats. If the desired type is absent, that app cannot perform that conversion through this command. A different extension cannot add support or repair damaged contents.

Troubleshooting and Undo

  • The extension is still hidden: revisit View > Show > File name extensions. Showing hidden items is a separate setting.
  • The name ends in two types: inspect the complete name. In report.pdf.txt, the last ending is .txt. Do not remove it unless you know the contents are actually PDF.
  • The file stops opening: press F2 again and restore the exact original extension. This reverses the name change, not edits or conversion performed inside an app. Use your untouched copy if needed.
  • Rename is blocked: close the file’s app and check whether you have permission to modify that location. Ask the owner or administrator if access is restricted.
  • The converted copy looks wrong: return to the original, adjust the app’s export options and make another copy. Check the output before sharing or deleting anything.

Frequently Asked Questions

Can I turn a text file into PDF by renaming it?

No. The contents remain plain text. Use an app that can open the text and create PDF output, then inspect the new PDF. The same principle applies to renaming an image or video to a different format.

Can I change several extensions at once?

Batch renaming is a separate task. A mass rename still does not convert the contents, and a wrong rule can affect many names. First confirm the intended change on a copy of one file and keep the originals.

Can I hide extensions afterward?

Yes. Clear File name extensions in the same File Explorer menu. That only changes display; it does not undo your rename. Keeping the endings visible makes it easier to check future changes.

Choose renaming for a known incorrect ending, conversion for a different format, or a file association for a different app. Check the resulting file before replacing your original.