How to Change a File Extension in Windows 10: A Step-by-Step Guide

Changing a filename extension changes how Windows and apps interpret the file; it does not convert the underlying format. Only change an extension when you know the file already contains the corresponding format or a workflow explicitly requires it.

Steps

  1. In File Explorer, enable View > File name extensions on Windows 10.
  2. Select the file and choose Rename.
  3. Change only the characters after the final period, then press Enter.
  4. Accept Windows’ warning only if you understand the consequence.
  5. Open the file with the appropriate app and, if it fails, rename it back to the original extension.

How it works

A JPG renamed to PNG is still JPEG data. Real conversion requires opening/exporting or using a conversion tool that rewrites the file contents.

Important considerations

Windows 10 is unsupported. Keep a backup before batch-renaming extensions, and be cautious with double extensions such as `document.pdf.exe`.

Practical guidance

Batch extension changes can break many files at once, so test one copy first. If extensions are hidden, a rename may accidentally produce names like `report.pdf.txt`; enabling extensions prevents this confusion. For scripts and executables, extension changes can also alter security prompts and application associations.

Additional details

When a file was downloaded without an extension or with the wrong one, inspect its source/application and, when possible, use the creating program’s Open/Export feature. Advanced users can inspect file signatures with trusted tools. Guessing extensions until something opens can produce misleading results or expose unsafe content.