Rename file extensions including in all subfolders

Posted on Friday, 1 April 2016

How to recursively rename file extensions – i.e. rename file extensions including in all subfolders in Windows

Rename file extensions including in all subfolders

This tip is great if you for example want to batch rename all .mkv files to .mp4 files (please backup your files before testing any of these methods, just in case).

If you want to rename files from one extension to another, recursively in all sub folders, then you can use this command in Windows Command Prompt:

forfiles /S /M *.ext1 /C “cmd /c rename @file @fname.ext2”

So for example, if you wanted to rename all mkv files to mp4 files, the command would be like this:

forfiles /S /M *.mkv /C “cmd /c rename @file @fname.mp4”

I hope this tip helps. It sure did for me when batch renaming lots of files. Tested in Windows 10 but works in older versions as well.

Good luck with your file extension changes!

Are you looking for a reliable animation partner? - Sundstedt Animation


Interested in working together? We do not work with just anyone. Please fill out this form and we’ll follow up. Or call Anders Sundstedt: +44 7531 800 711.

Your name*

Your email*

Your website

How can we help? Details please!*

 By using this form you agree with the storage and handling of your data by this website. Privacy Policy. *

* Indicates Required

Back To Top

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Don`t copy text!