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
.jpegcan 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.
- Open the folder. Press Windows key + E and navigate to the file in File Explorer.
- 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. - 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.
- 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
jpegwithjpgwhile keeping the period and base name. - 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.
- 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.

Change a File Extension in Windows 10
In Windows 10, open the file’s folder in File Explorer and select View > File name extensions. Make a backup copy, select the file, press F2, and replace only the ending after the final dot with the intended extension. Press Enter and accept the warning only if the new extension correctly describes the file’s existing contents. Open the result with the intended app and restore the original name if it fails. These are the older File Explorer controls from the archived Windows 10 guide. Renaming .jpg to .png does not convert an image; use the conversion method below for that.
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:
- Open the original document in Word and check that it displays correctly.
- Select File > Save a Copy for a previously saved document, or Save As if that is the available command.
- Select Browse, choose a folder and give the output a clear name.
- Choose PDF in the file-type drop-down. Typing
.pdfin the name alone is not the conversion step. - 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.
Open a Pages Document on Windows 11 or Windows 10
A .pages document needs a compatible app or a real export; renaming it to .docx does not make a Word document. If the sender has Pages, ask for a Word or PDF export. Otherwise, use Pages for iCloud in your computer’s browser. Keep the original, sign into your Apple Account at iCloud.com/pages, and in the document manager use Upload to select the Pages file, or drag it into the manager’s browse view. Apple’s upload instructions cover those controls. Uploading places the document in that account’s cloud storage; use this route only when that is appropriate for the file.
Open the uploaded document and check its contents. Choose the toolbar’s More (…) control and Download a Copy, then select Word for an editable Word-compatible copy or PDF for a reading copy. The document manager also offers Download a Copy through its More control. Apple’s download guide lists the supported output formats. Find the downloaded copy in your browser’s download location, open it with Word or a PDF reader as appropriate, and inspect the layout and missing fonts before relying on it.
Keep the original Pages document until you have verified the converted copy. This browser workflow works independently of the different Windows 10 and Windows 11 File Explorer menus. It needs internet access and an Apple Account with access to Pages for iCloud. Do not assume Google Docs can directly import every .pages file or that extracting a renamed ZIP will yield a complete editable document. If Pages for iCloud cannot open the original, ask its creator to export it from Pages rather than repeatedly changing its extension.
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.

Matthew Burleigh is the founder, head writer, and editor of Solve Your Tech, which he launched in 2012. He has written technology tutorials since 2008 and worked in IT since 2003, including small-business support, IT management, and consulting. He holds Bachelor’s and Master’s degrees in Computer Science from Arizona State University.
Matthew writes practical guides for Windows, iPhone and iPad, Microsoft Office, Outlook, Google apps, and Android. Solve Your Tech’s guides are tested on current devices or checked against official product documentation, with clear steps, sources, and update dates.
Read more about Matthew and how Solve Your Tech writes and updates its guides, or report a correction.