It’s easier to change filenames in Vista and Windows 7 than in previous versions of Windows. All you do is:

  1. Click the file to select it, then click once more. Windows automatically selects the filename so that anything you type will replace the existing name.
  2. Type the new filename and press Enter. You’re done.

It’s a small change from the previous method, where you had to manually select the filename before editing, but it saves a lot of time.

To change a whole batch of files at once:

  1. Select each of the files. You can select a group of contiguous files by click the first one and then Shift+clicking the last one; you can select any number of files by Ctrl+clicking each file; or to select all files in a folder, press Ctrl+A.
  2. Press F2. The filename of the last file you clicked will be selected.
  3. Type a new name and press Enter.

Each of the files will be renamed, with sequential numbering used to distinguish one file from another.

So, for example, if you select three .jpg image files and rename the first one Dad’s Birthday, you’ll end up with files named

Dad’s Birthday (1).jpg

Dad’s Birthday (2).jpg

Dad’s Birthday (3).jpg

TIP: If you make a mistake when renaming one or more files, simply press Ctrl+Z while you’re still in the file folder and before you take any other actions in that folder. Ctrl+Z undoes whatever you did last within a folder.

Unfortunately, this new file renaming method has one drawback: although the new method makes changing filenames easy, it makes it harder to change the file extension. The problem is exacerbated by Microsoft’s determination to hide those file extensions from view.

About filenames

Filenames in Windows consist of two parts, a filename and an extension, separated by a full stop (a period). The filename is a descriptive label; the extension indicates the type of file you’re dealing with – JPG for an image, MP3 for an audio file, DOC or DOCX for Word documents, PDF for an Adobe Reader file, and so on. You’re free to change filenames as you need, but you should exercise caution when changing file extensions because Windows uses the extension to figure out which program should be used to open a file.

First, display file extensions

Microsoft has been hiding file extensions from users in version after version of Windows. This supposedly makes things less confusing; in fact, it’s a piece of paternalistic boneheadedness. Being able to see file extensions is a good thing.

  • Those extensions tell you the type of file you’re dealing with and which type of program you’ll need in order to view or edit the file.
  • The extensions help you distinguish between similarly named files. For example, if you have an Excel spreadsheet named 4th Quarter Budget and a PowerPoint presentation also called 4th Quarter Budget, seeing the .xls extension on the spreadsheet and the .ppt extension on the presentation helps you see which is which at a glance. Yes, the little file icons help, too, but those icons aren’t always easily identifiable.
  • The extensions also help you spot files which may be dangerous to open. A .vbs extension tells you you’re about to open a Visual Basic script which will run commands on your computer – one way that malware can strike. Similarly, seeing the .exe extensions lets you know you’re dealing with a program. If you receive an attachment in your email and see the .exe extension, you almost always want to avoid opening it, once again to avoid malware.
  • The file extensions can also help you figure out why you can’t view or edit a file. Not everyone uses the same software nor the same operating system. If someone sends you a document they created using Pages on an Apple Mac, there’s a good chance you won’t be able to open that document on your Windows system; if you can’t see the file’s extension, there’s no way of knowing it’s a Pages document and thus it’s hard to figure out why you’re having problems. On the other hand, if you see the .pages file extension you’ll know immediately you’re dealing with some strange, other worldly animal. You can then ask your correspondent to save the file in Word or some other format and resend it.
  • The file extensions help you recognise which version of a Microsoft Office document you’re dealing with. Office 2010 saves Word documents as .docx files, Excel documents as .xlsx files, an so on. In earlier versions of Office, those extensions were .doc and .xls. The new formats are incompatible with the old, so if someone sends you a .docx document and all you have is Word 2003, you won’t be able to open or edit the file. Being able to see the extension will help you troubleshoot why you’re running into this problem.

With all those reasons why displaying file extensions is a good thing, let’s look at why hiding them is a good thing:

  • It makes for less clutter on the screen.

Really, that’s it. Microsoft may think it makes for less confusion, but the reverse is true.

It’s pretty clear by now that Microsoft is unlikely to see the light and display file extensions by default in any version of Windows. That doesn’t matter because you can take charge of the situation yourself and turn extension display on:

  1. Open any folder window.
  2. Press Alt+T+O (that’s the letter O, not a zero) to open the Folder Options dialog box.
  3. Click the View tab.
  4. Remove the tick (checkmark) beside ‘Hide extensions for known file types’ and click OK.

Why change a file extension?

If Windows uses a file’s extension to determine how to open that file, why would you ever want to change an extension? Wouldn’t that simply confuse Windows and prevent it from opening the file?

In many cases, that’s true. Most of the time, you’ll want to leave extensions alone. But there are times when it’s useful to be able to change those extensions. If you use a text editor to create a web page, you may want to keep the .txt extension while editing the code but then change the extension to .html to be able to view the page in a web browser.

Occasionally, you may receive a file which has the wrong extension: a .jpg image which someone has accidentally named as a .bmp file, for example. If you try to load a .jpg file into your graphics program and you get an “invalid file format” or similar message, try changing the extension to .bmp or .png or .tif or another common graphics file extension, and see if your graphics editor recognises it.

You may also want to change the case of an extension. Many cameras save image files with a capitalised extension, such as .JPG. Windows is case-blind when it comes to filenames, so it doesn’t matter to the operating system whether a file is called MAGNOLIA.JPG or magnolia.jpg, but it may matter to humans; after all, using ALL CAPS is the digital equivalent of shouting at someone, and a folder littered with .JPG images does just that.

How to change a file extension

In Windows 7, to change a file extension, first, make sure file extensions are visible using the steps above, then:

  1. Click the file to select it, then click once more. Windows automatically selects the filename so that anything you type will replace the existing name.
  2. Click and drag over the extension, type the new extension and press Enter.

It sounds simple enough, but it turns out to be pretty clumsy, especially if you’re changing extensions on a bunch of files.

Things get even worse if you want to change capitalised extensions on a group of files: Windows 7 refuses to do it. For example, if you have three files named 1.JPG, 2.JPG and 3.JPG, if you select all the files and rename the first one platypus.jpg, you’ll end up with platypus (1).JPG, platypus (2).JPG and platypus (3).JPG. The extension pigheadedly maintains its uppercase lettering. If you want to change those extensions, you have to rename each file one by one.

Using Bulk Rename Utility to change file extensionsA better way to change filenames and extensions

If you need to do some serious file renaming – perhaps you  have folders stuffed with horribly named photos – try a bulk file renaming utility. There’s one called Bulk Rename Utility that’s free to use. It looks pretty ferocious when you open it up, but don’t worry – although it has enormous power and flexibility, it makes very light work out of actions such as changing the case of a bunch of file extensions. If you want a less intimidating renamer, Better File Rename does the trick, but it’ll set you back $US19.95.

Here’s how you change the case of all files in a folder using Bulk Rename Utility:

  1. Open the folder containing the files.
  2. Right-click any file in the folder and choose Bulk Rename Here from the context menu. The utility will load all the files into its main window, with a folder tree displayed on the left allowing you to navigate to any other folder, and a mind-numbing array of options displayed below.
  3. Press Ctrl+A to select all the files in the folder.
  4. Down near the bottom right of the window you’ll see Extension. Select Lower from the Extension drop-down box. You’ll see the filenames updated in the New Name column. This is a preview to let you check whether the changes you’re making are correct.
  5. If you’re satisfied with the displayed changes, click the Rename button in the bottom right to rename the selected files.

A quick look at Bulk Rename’s other options gives you an idea of the power of the program. You can even save renaming schemes so that you can reapply them to other batches of files.

TIP: If you rename a bunch of files using Bulk Rename and the changes don’t immediately appear within explorer, press F5 to refresh the view of the window.

  • Casey

    Wow! Great article. Saved me COUNTLESS hours of work that I may have lost due to saving a file in the wrong extension. Thanks a million.


  • Moin-2001

    Just love you!! Looking for this type of program for at least 2 years…….Thank you.

  • Lorriegay

    have any workarounds for the ridiculous, exclusive and exclusionary docX come up yet? I’ve only received one or two docs so far, and I can’t work with them. Also, I don’t want to (and often am not in any position to) download anything in order to work with them. Any new ideas?

  • rosevines

    To work with the docx files you’ll need to install Microsoft’s Office Compatibility Pack (http://grrl.co/office-compatibility). With that, you can view, edit and save any Office file in the new format. I’m afraid there’s no way around it without downloading and installing software to do the job for you.

  • Gray

    thanks so much for the info! helped a lot!! ^^,

  • Marie Kris Ayson

    Hi! How will I hide in file name the extension of the file? I tried in my Control Panel Folder Option then “Hide Extensions for Known File Types”, but it won’t change. I tried restarting my PC, it will be hidden, then after few minutes (without changing my settings), file extension will (again) show in the file name. How will I be able to hide it for good? Or what is really the problem on this? I tried contacting our IT personnel, but even them, cannot fix this problem. Thanks.

  • Barnowl

    Thank you so much!! I was trying to remove the mp4 extension from a file and rename it to .part to resume a cancelled download. Bulk Rename Utility saved me hours of downloading again.

  • Bekscop

    It’s a brilliant idea. though it convert to the desired extension but when I tried opening the file in the new extension it will give an error message. Can somebody please tell me what to do next?

  • wahid haq

    I suggest everyone to try KrojamSoft BatchRenameFiles
    program. It’s really work for me.

  • Vivek Sarma R

    Love You so much for posting this article.

    God bless you.

  • Dorian Markich

    I just absolutely love what KrojamSoft BatchRename has to offer! It’s features
    are simple and easy to use. It’s amazing for people who work with a heap of
    files on a daily basis. Lets you arrange, rename, edit, add prefixes and
    suffixes to multiple files and folders at the same time! Thank you, KrojamSoft.

  • Damien barifon

    Try to long path tool. It is very helpful.

  • Hey, you great job, you can port this w10 universal aplication?

  • jorgeviola

    Thanks mucho! I’d forgotten about this little utility! Very useful when you need it!

  • eden

    To rename files and files extensions you can try “long path Tool” it is best tool to solve your problem.

  • Pingback: Naming and Organizing Files – Excelsior Institute()

  • Cannot thank you enough for this! I needed to change a .docx file to a .zip file in order to remove some of the images that were bringing my document to above Microsoft’s ridiculous 512 mb limit (another thing that really needs changing), without which I can’t even open it. Without seeing the extension, all I did was create a document with a .zip.docx extension! Thanks to you, I can now follow the instructions and get my document up and running again!