{"id":19033,"date":"2022-09-29T09:04:45","date_gmt":"2022-09-29T09:04:45","guid":{"rendered":"https:\/\/www.top-password.com\/blog\/?p=19033"},"modified":"2022-09-29T09:04:45","modified_gmt":"2022-09-29T09:04:45","slug":"add-or-change-extensions-for-multiple-files-in-windows-11","status":"publish","type":"post","link":"https:\/\/www.top-password.com\/blog\/add-or-change-extensions-for-multiple-files-in-windows-11\/","title":{"rendered":"Add or Change Extensions for Multiple Files in Windows 11"},"content":{"rendered":"<p>Is there an easy way to add an extension to multiple files which do not have an extension? How can I change file extension for all files in a folder? Changing file extension one by one can be a frustrating task if you have to process a large number of files. In this tutorial we&#8217;ll show you how to batch add or change extensions for multiple files located in a folder on Windows 11.<\/p>\n<p><strong>Part 1: Add Extension to All Files in a Folder<\/strong><\/p>\n<p>If you need to append file extension to all files in a folder, just <a href=\"https:\/\/www.top-password.com\/blog\/open-command-prompt-in-windows-11\/\">open an elevated Command Prompt<\/a>. Use the <code>cd<\/code> command to navigate to the target folder. To add an extension to all files at once, run this command. Replace <strong>.jpg<\/strong> with your desired file extension.<br \/>\n<code>ren *  *.jpg<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/09\/add-extension-to-all-files.png\" alt=\"\" width=\"574\" height=\"248\" class=\"alignnone size-full wp-image-19040\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/09\/add-extension-to-all-files.png 574w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/09\/add-extension-to-all-files-300x130.png 300w\" sizes=\"auto, (max-width: 574px) 100vw, 574px\" \/><\/p>\n<p>You can use this method to easily <a href=\"https:\/\/www.top-password.com\/blog\/save-spotlight-images-appeared-on-windows-10-lock-screen\/\">rename Windows spotlight images<\/a> located in the directory: <em>%LocalAppData%\\Packages\\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\\LocalState\\Assets<\/em>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/09\/windows-spotlight-images.png\" alt=\"\" width=\"592\" height=\"348\" class=\"alignnone size-full wp-image-19041\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/09\/windows-spotlight-images.png 592w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/09\/windows-spotlight-images-300x176.png 300w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/p>\n<p><strong>Part 2: Add Extension to All Files without Extension<\/strong><\/p>\n<p>What to do if you have a folder with a bunch of images inside and you want to add .jpg file extension, but you need to exclude existing files which end with .doc or .txt?<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/09\/add-extension-to-files-without-extension.png\" alt=\"\" width=\"592\" height=\"281\" class=\"alignnone size-full wp-image-19044\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/09\/add-extension-to-files-without-extension.png 592w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/09\/add-extension-to-files-without-extension-300x142.png 300w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/p>\n<p>To add .jpg extension to all files which have no extension, <a href=\"https:\/\/www.top-password.com\/blog\/open-windows-terminal-as-admin-in-windows-11\/\">open Windows PowerShell as administrator<\/a> and execute this command:<\/p>\n<p><code>Get-ChildItem -exclude '*.doc','*.txt' | WHere-Object{!$_.PsIsContainer} | Rename-Item -newname {$_.name + \".jpg\"}<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/09\/add-extension-to-all-files-powershell.png\" alt=\"\" width=\"600\" height=\"248\" class=\"alignnone size-full wp-image-19042\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/09\/add-extension-to-all-files-powershell.png 600w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/09\/add-extension-to-all-files-powershell-300x124.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>The &#8220;<strong>-exclude<\/strong>&#8221; parameter allows you to specify certain file types which you wish to exclude from appending file extension.<\/p>\n<p><strong>Part 3: Change File Extension of All Files in a Folder<\/strong><\/p>\n<p>When you need to change file extension for all files in a folder, open Command Prompt as administrator and run this command:<br \/>\n<code>ren *.old_extension  *.new_extension<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/09\/batch-change-file-extension.png\" alt=\"\" width=\"574\" height=\"248\" class=\"alignnone size-full wp-image-19051\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/09\/batch-change-file-extension.png 574w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/09\/batch-change-file-extension-300x130.png 300w\" sizes=\"auto, (max-width: 574px) 100vw, 574px\" \/><\/p>\n<p>It will quickly rename all files with the new extension available in the command.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Is there an easy way to add an extension to multiple files which do not have an extension? How can I change file extension for all files in a folder? Changing file extension one by one can be a frustrating task if you have to process a large number of files. In this tutorial we&#8217;ll [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,10,4713],"tags":[5028,5027,5029],"class_list":["post-19033","post","type-post","status-publish","format-standard","hentry","category-others","category-tips-tricks","category-windows-11","tag-add-extension-to-all-files-in-folder-powershell","tag-add-extension-to-all-files-in-folder-windows-11","tag-batch-change-file-extension-windows-11"],"_links":{"self":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/19033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/comments?post=19033"}],"version-history":[{"count":14,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/19033\/revisions"}],"predecessor-version":[{"id":19052,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/19033\/revisions\/19052"}],"wp:attachment":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/media?parent=19033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/categories?post=19033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/tags?post=19033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}