10

If I have a bunch of files with one file extension, is there a way to quickly change them to another file extension without having to manually change one file at a time? The Microsoft support page gives a method for quickly renaming many files, but it only changes the names and keeps the original extensions, even if I have the option set to show file extensions when renaming a file.

user73910
  • 203

3 Answers3

28

You have a few utilities available.

Powershell

Use Rename-Item in combination with Get-ChildItem

Get-ChildItem "*.png" | Rename-Item -NewName { $_.Name -replace "\.png$",".jpg" }

Command prompt

Use the ren command

ren *.png *.jpg

Power Rename

The Power Rename utilty of PowerToys.

  • Set the current extension, then the extension to change to.
  • Apply to: Extension only
  • Click Apply

Note: This assumes that you are on the folder where the files are located. If not, you need to cd to the correct locations for the first two examples.

0

You can also use the GUI program ant renamer which has a portable version and can be run from a USB stick.

vinnief
  • 598
  • 5
  • 11
-2

Very Easy in this video, please watch

https://www.youtube.com/watch?v=eeDVLR-2W6s