Change the copied file name template in Windows 10

When you copy a file in File Explorer using drag'n'drop or via copy-paste in the same folder, the copied file will get a new name like this: "Filename - Copy". In Windows 10, it is possible to customize the copied file name template and turn it into another desired string. Let's see how it can be done.


For example, I have a text file named "Winaero.txt" in my Documents folder. When I select this file in File Explorer and press Ctrl + C and then Ctrl + V, a copy of my file will be created and named as "Winaero - Copy.txt".Windows 10 default copy name template

To customize this behavior, you need to do the following:

  1. Open Registry Editor.
  2. Go to the following path:
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\NamingTemplates

    Tip: See how to jump to the desired Registry key with one click.
    If you don't have the NamingTemplates subkey, then just create it.

  3. Create a string value named CopyNameTemplate. Set its value data as follows:
    By default, the value of CopyNameTemplate is assumed to be

    %s - Copy

    So, if you set the CopyNameTemplate value data to:

    %s

    then this will remove the " - Copy" part. The file copy will be named as Filename(1), Filename(2) and so on. I think this is a good modification.Windows 10 copy name template without copy text Windows 10 copy name template without copy text in action

    You can also add some additional text before or after the "%s" part, so it will be used in the copied file name. For example, you can set CopyNameTemplate value data to

    Duplicate of %s

    Windows 10 copy name template dublicate
    The result will be as follows:Windows 10 copy name template dublicate in action

    If you set CopyNameTemplate value data to

    %s (duplicate)

    then you will get the following naming:Windows 10 copy name template dublicate after Windows 10 copy name template dublicate after in action

The changes will take effect immediately. You don't need to sign out from your user account or restart Windows 10.

This tweak should also work in Windows 7 and Windows 8.

To revert the changes you made, delete the mentioned CopyNameTemplate string value from the Registry.

That's it.

6 thoughts on “Change the copied file name template in Windows 10

  1. Thark

    Hmm… but its not possible to use variables e.g. %Date%? ;)

    Reply
    1. Sergey Tkachenko Post author

      I have not tried. But I am 99% sure it is not possible.

      Reply
  2. elrond

    Many of these tricks are not new nor exclusive to Windows 10, so if I can make a suggestion: remove the “10” from article titles (or make it “7, 8.1, 10”) to make it more clear. I know you included it at the very end in the article, but everyone looks at the title first and might miss it. Also, all these “10” articles create the wrong impression that you recommend or advertise Windows 10 or that it has more options (which is not true).

    Reply
  3. Matohak

    For some reasons when I tried to make a 3rd copy from the (2)nd copy the name of the new file seems to behave weirdly. Anyone knows how to solve this?

    Reply
  4. Jamson

    So it automatically add the space between “name” and “(1)” for instance “FileName (1)”. I’d love to remove the space to have “FileName(1)”. Is it possible?

    Reply
    1. Sergey Tkachenko Post author

      No. Unfortunately, this behavior can’t be changed.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.