Как убрать расширение файла из названия windows 11

File extension is the group of letters after a period at the end of a file name, indicating the format of the file. For example, .TXT, .JPG, .PNG, .DOCX, .ZIP, .RAR, .MP4, .AVI, etc. are all common file extensions in computing. In this guide, you will learn how to show file extensions for all file types in Windows 11 (hidden by default) and how to change or remove the file extension of a file.

Also see: How to Change Default App For File Extension in Windows 11

Will changing the file extension of a file changes its file format?

The format of a file cannot be changed by simply changing its file extension (without properly converting it). The format of a file will retain even after its extension is changed or removed. In some cases, changing the file extension of a file forcefully and incorrectly may corrupt or break the file, making it unreadable and unusable.

Why would you want to change or remove file extension of a file?

This guide is for users who know that a file has incorrect file extension or the file extension is missing. If you were asked to change or remove the file extension of a file but you couldn’t see the file extension at the end of the file’s name, follow the instructions below to allow Windows 11 to display file name extensions for all files, so that you can make changes to the file extension of any file.

Another common reason users would want to remove the file extension of a file is to hide the file type of the file to prevent anyone else from knowing what the file is and how to open the file. If a file doesn’t have a file extension when it’s supposed to have one, Windows wouldn’t know what app it should open the file in, thus showing the “how do you want to open this file” pop up. A file without a file extension will also appear as a white icon instead.

Change or remove file extension in Windows 11

To be able to add, change or remove file extension of a file in Windows 11, first you need to be able to see the file extension in the file name. Since file extension is hidden by default in Windows 11, you need to enable it through File Explorer folder options to allow Windows to display the file extension for each file. Here’s how to do it.

  1. In Windows 11, open This PC or File Explorer.
  2. On the toolbar, click View and hover your mouse cursor over Show. Then, click File name extensions to enable it. If the option is enabled, it will have a tick next to it.
    Show File Name Extensions Windows 11

After enabling the show file name extensions option, Windows will start showing the file extension for each individual file. You can now figure out the file type of each file and edit the file extension of any file.

File extension Windows 11

If you want to revert the change and hide the file extensions for all files, simply repeat the steps above and click the “File name extensions” option again to remove the tick next to it.

How to change file extension of a file in Windows 11

To change the file extension of a file, simply right-click the file and select Rename, or alternatively, select the file and press F2. Then, change the letters after the period in the filename to the file extension you want to change the file to.

How to change file extension in Windows 11

Windows will then prompt you a warning telling you that the file might become unusable if you change its file name extension. Click Yes to confirm the change.

Change file name extension unusuable Windows 11

Remove the file extension of a file

To remove the file extension of a file, right-click the file and select Rename. In the file name, delete the letters after the period and the period itself. When Windows prompt for confirmation, select Yes to confirm the change.

How to remove file extension in Windows 11

The icon of the file with removed file extension will turn into a white icon and have the type of file changed to just “File”. Windows will no longer know what file type the file is and how to open the file. Depending on the file, you may still be able to run the file in the reader or player app that used to open it without having any file extension.

You can add the file extension back to the file by simply renaming it again and adding the period and extension to the end of the filename.

Should I keep the “show file name extensions” option enabled?

For security reason, we would recommend to keep the option enabled so that you know the file type of a file before opening it. In fact, users should enable show file name extensions as soon as they start using Windows. Microsoft should allow file name extension to be displayed by default so that users can identify if a file is the file format they want to open before opening it.

This is because hackers can exploit this and fake a file since users couldn’t see the file extensions. For example, if an image file you download from the Internet supposed to be in image file format but turns out to be a .bat script file, since you can’t see the file extension, you may risk getting your computer infected by unknowingly opening the malicious file.

В Windows 11 по умолчанию расширения зарегистрированных типов файлов не показываются — для кого-то это может быть удобно, но иногда полезно видеть конкретное расширение: например, так меньше вероятность запустить вредоносный exe файл с иконкой как у файла фото или документа.

В этой пошаговой инструкции для начинающих подробно описаны три способа включить показ расширений файлов в проводнике Windows 11. На близкую тему: Как показать или скрыть скрытые и системные файлы Windows 11.

Меню Проводника

Самый быстрый способ включить отображение расширений — использовать соответствующую опцию в меню нового Проводника.

Шаги будут следующими:

  1. Откройте проводник. В верхней строчке нажмите кнопку «Просмотреть». Если такой кнопки нет, нажмите по трём точкам, а затем — «Просмотреть».
    Параметры просмотра в проводнике Windows 11

  2. Перейдите в раздел «Показать»
  3. Отметьте пункт «Расширения имен файлов».
    Показать расширения файлов в меню проводника Windows 11

С этого момента расширения файлов начнут показываться в Проводнике и на рабочем столе.

В параметрах проводника

Второй способ — использовать элемент панели управления «Параметры проводника» для включения отображения расширений. Открыть его можно одним из следующих способов:

  • Открыть меню Проводника и выбрать пункт «Параметры».
    Открыть параметры проводника Windows 11

  • Открыть панель управления и открыть пункт «Параметры проводника»
  • Нажать клавиши Win+R на клавиатуре, ввести control folders и нажать Enter.

В открывшихся параметрах проводника:

  1. Перейдите на вкладку «Вид».
  2. Снимите отметку с пункта «Скрывать расширения для зарегистрированных типов файлов».
  3. Примените настройки.

После выполненных действий расширения начнут показываться, во всяком случае для тех файлов, которые его имеют (вам могут встретиться и файлы без расширения).

Параметры разработчика

И ещё одна возможность: включить показ расширений файлов можно в Параметрах, для этого используйте следующие шаги:

  1. Откройте Параметры — Система — Для разработчиков.
  2. Раскройте раздел «Проводник» и включите пункт «Отображение расширений файлов».
    Включение показа расширений файлов в параметрах разработчика

При этом сам режим разработчика включать не обязательно, чтобы указанная опция работала.

3 марта 2025 г. 10:30

1325

Содержание:

  1. Что такое расширение файла и зачем его менять
  2. Как включить отображение расширений в Windows 11
  3. Как изменить расширение файла вручную
  4. Как изменить расширение сразу у нескольких файлов
  5. Как изменить формат файла в Windows 11
  6. Вывод

Иногда возникает необходимость изменить расширение файла, например, при работе с документами, изображениями или видео. Это может понадобиться, если файл был сохранён в неправильном формате, неправильно скачался или просто необходимо изменить его для удобства. В этой статье подробно разберём, как поменять расширение файла в Windows 11.

Что такое расширение файла и зачем его менять

Расширение файла — это часть имени файла после точки, например:

  •  .txt — текстовый файл;
  •  .jpg — изображение;
  •  .mp4 — видеофайл;
  •  .exe — исполняемый файл

Расширение помогает Windows 11 понимать, какой программой открывать файл. Например, файл .docx автоматически откроется в Microsoft Word, а .mp3 — в медиаплеере. Если расширение у файла отсутствует или указано неверно, система не сможет открыть его или запустит неправильную программу.

Как включить отображение расширений в Windows 11

Перед тем как изменить расширение файла в Windows 11, нужно убедиться, что система отображает их в проводнике. Для этого:

  • Откройте «Проводник» — нажмите Win + E.

  • Перейдите в папку с нужными файлами.
  • В верхнем меню нажмите «Просмотреть» → «Показать».

  • Поставьте галочку «Расширения имён файлов».

После этого в названиях файлов начнут отображаться их расширения, и вы сможете их изменять.

Как изменить расширение файла вручную

Изменение расширения — самый быстрый способ исправить его без использования дополнительных программ:

Выделите файл в проводнике, который хотите изменить.

Щёлкните по его имени правой кнопкой и выберите «Переименовать».

Измените расширение после точки, например .jpg→.png.

Нажмите Enter, а затем подтвердите изменение.

Файл сменит расширение, но его формат останется прежним. Например, если вы просто переименуете .txt в .jpg, это не сделает его изображением.

Как изменить расширение сразу у нескольких файлов

Если у вас много файлов с одинаковым расширением, можно изменить их одним действием с помощью командной строки:

  • Откройте папку с файлами в «Проводнике».
  • Щёлкните по адресной строке, введите cmd и нажмите Enter.
  • В открывшемся окне введите команду для замены расширений: **ren .txt .docx
  • Нажмите Enter, и все файлы .txt в папке будут автоматически переименованы в .docx.

Этот метод удобен, если нужно переименовать десятки или сотни файлов сразу.

Как изменить формат файла в Windows 11

Простая смена расширения не меняет формат файла. Например, если изменить .mp4 на .mp3, видео не превратится в аудиофайл. Чтобы изменить формат, потребуется конвертация с помощью специальных программ:

  • Видео: VLC Media Player, HandBrake.
  • Изображения: Paint, Photoshop, XnConvert.
  •  Документы: Microsoft Word, который есть в составе пакетов Microsoft Office, PDF-конвертеры.

Используйте эти инструменты, если вам нужно действительно изменить содержимое файла, а не просто его расширение.

Вывод

Изменение расширения файла в Windows 11 — это простой процесс, который можно сделать вручную или через командную строку. Однако само расширение не меняет формат файла, поэтому если нужно реально изменить тип данных, потребуется программа-конвертер. Теперь вы знаете, как правильно редактировать расширения, не повредив файлы. А если вам необходимо активировать вашу Windows 11, быстро и дешево можно приобрести лицензионный ключ ЗДЕСЬ.

Quick Tips

  • Go to the relevant file > click on the file > Rename icon > rename the extension and click on Yes.
  • Open the file in the relevant program > use the menu options to change the file extension.
  • Right-click the file > Copy as path > open Command Prompt > use the commands to change the file extension.

How to Use Control Panel to Make File Type Visible

Before we go about changing the file type on Windows 11, let’s first have a look at how you can make sure that all the file extensions are visible in Windows. There are multiple ways of enabling it, let’s show you the easiest one. Follow the below steps.

Step 1: Open the Control Panel, type File Explorer Options in the search bar, and click on File Explorer Options.

Open File Explorer Options

Step 2: Click on View and uncheck the Hide extensions for known file types option.

Uncheck the relevant options

Step 3: Click on Apply followed by OK.

Click on Apply and click on OK

This will enable file extension names. Now, go ahead and change the file extension on Windows 11. Ensure you check the hidden folders if you’re unable to find the file.

Once the file extension is visible for all the files, we can now proceed with changing the file type. As mentioned above, there are three major ways you can convert file types in Windows 11. Let’s have a detailed look at them all.

Method 1: Rename the File

When changing the file type using the rename option, all you need to do is select the file and change the name of its extension. Follow the below steps to do it. Ensure the before and after file extensions are similar to each other or your file might get corrupted. Here’s how to do it.

Step 1: Open the relevant folder and click on the file. Click the Rename icon.

Click on the file and click on Rename

Step 2: Rename the extension.

Rename the extension name

Step 3: Then, click on Yes. This will change the file type.

Click on Yes

Once done, try opening the file again to check. This should especially be done when converting video files as they might change their file extension name while still retaining their original extension characteristics.

Method 2: Using the Save as Option to Convert File Extension

With the save as option, you can simply open the file extension in the relevant software. Then, using the Settings menu, save the file again, but this time in a different format. For demonstration purposes, we will be using a .pdf file with Adobe Acrobat PDF Reader. Here’s how to do it.

Step 1: Open the relevant file in Adobe Acrobat PDF Reader and click on File.

Open settings

Step 2: Here, click on Save As.

Click on Save As

Step 3: Select the format you want to save the file as.

Select the format you want

Step 4: Select the folder you want to save the file to and click on Save. This will convert and save the file.

Select the folder you want & click on Save

Also Read: How to compare files in two folders on Windows 11

Method 3: Using Command Prompt

The third and last way to change the file type on Windows 11 is by using the Command Prompt. Here, you can either change the file extension for individual files one by one or change multiple file extensions at once. Here’s how to do it.

I. Change File Type for an Individual File

Step 1: Go to the relevant file and right-click on it. Click on Copy as path.

Right click on the file & click on Copy as path

Step 2: Now, open Command Prompt, type the following command, and press enter.

cd /d "name of the folder path copied eariler"
Type the command & press enter

Step 3: Here, type the following command and press enter. This will change the file format for the individual file.

rename "file-with-extension-1" "file-with-extension-2"

Note: Replace file-with-extension-1 with the file name and its original extension followed by the file name and the extension you want to convert it in.

Rename the file command & press enter

II. Change Multiple File Extensions at Once

Step 1: Go to the relevant file and right-click on it. Click on Copy as path.

Right click on the file & click on Copy as path

Step 2: Open Command Prompt, type the following command, and press enter. This will open a new line with the file name.

cd /d "name of the folder path copied eariler"
Type the command & press enter

Step 3: According to your requirement, type any of the below-mentioned commands and press enter.

  • For converting multiple files within that same folder:
rename *.fileextension1 *.fileextension2
Convert multiple files within that same folder

  • For converting multiple files while saving a copy of the original:
xcopy *.fileextension1 *.fileextension2
Convert multiple files & saving a copy

  • For converting multiple files regardless of what their original extension is:
ren *.* *.newfileextension
Convert multiple files despite any ext

  • For converting multiple files for all the sub-folders in that folder:
for /R %x in (*.extension1) do ren "%x" *.extension2
Convert multiple files for all sub folders

Once you press enter, the command will be executed accordingly. Now, go to the relevant folder and check if the changes have been made.

FAQ

1. Can you set default file apps in Windows 11?

Yes, you can set default file types in Windows 11. Open the Settings menu > click on Apps from the side menu > click on Default apps. Using the search bar, look for the app for which you wish to set the default file type > select the default app and click on OK.

Was this helpful?

Thanks for your feedback!

The article above may contain affiliate links which help support Guiding Tech. The content remains unbiased and authentic and will never affect our editorial integrity.

What to Know

  • To change a file extension in File Explorer, first go to View > Show > File name extensions.
  • Then, right-click the file, select Properties, change the file extension, and press OK > Yes.
  • Use the ren Command Prompt command to change the file extension for several files at once.

This article explains how to change the file extension of a file in Windows 11. It also discusses the difference between file extension and file type.

Change a File Extension the Easy Way

For most people, the easiest way to change a file extension in Windows 11 is to do so from the same place you change the file name. However, Windows doesn’t show file extensions by default, so we must first make a small change to that before we’re given the option to edit the file extension.

  1. Open File Explorer. A quick method is to use the WIN+E keyboard shortcut.

  2. Select View at the top of the window, followed by Show > File name extensions.

  3. Now that Windows 11 displays file extensions, right-click the file you want to edit the extension for and choose Properties.

    If you’re in a hurry, left-click the file once (don’t open it), press F2, edit the file extension, press Enter, and then select Save.

  4. In the General tab, rename the characters after the period to change the file extension.

  5. Press OK, and then Yes, to save.

Changing the file extension does not change the file type. See the bottom of this page for more on that.

Change a File Extension From Command Prompt

If you’re familiar with Command Prompt, you might prefer to use the rename/ren command to change a file extension. This method lets you skip having to edit the File Explorer options (i.e., you can keep file extensions hidden, and this will still work).

  1. Open Command Prompt.

  2. Change to the directory where your file is located.

    For example, if Command Prompt opens to C:\Users\jonfi, but the file is on your desktop, type this into Command Prompt:

     cd C:\Users\jonfi\Desktop
    
  3. Type ren followed by the original file and then the new name for the file.

    Here’s an example where I’m changing the file extension from DOCX to TXT:

     ren file.docx file.txt
    
  4. Press Enter to immediately change the file extension.

How to Change File Extensions in Bulk

Command Prompt also makes it super easy to edit the file extension for multiple files simultaneously, assuming they’re in the same folder. The trick is using asterisks so you don’t have to call out any specific file by name.

  1. Put all the files you want to edit into their own folder.

  2. Right-click an empty area next to the files, and select Open in Terminal.

  3. Confirm that Command Prompt shows the correct folder. In my example, it says C:\files>.

    If PowerShell opens instead, press Ctrl+Shift+2 to get to Command Prompt. Learn more about Terminal if you need help.

    Don’t breeze through this step. If you’re in the wrong folder, there’s no easy way to undo the command you’re about to perform.

  4. Type the following, but change *.jpg to be whatever it is you want your files to have:

     ren *.* *.jpg
    

    This command will rename everything in this folder. Make sure you’re in the correct folder, and want to change the file extension for every file in there.

    If you only need to rename a group of similar file extensions, you can modify the command slightly. Here’s what to type if you want to make all the GIF files have the JPG file extension (everything else will be left untouched):

     ren *.gif *.jpg
    
  5. Press Enter. All of the file extensions will change automatically.

Convert the File to Change the File Type

A file conversion tool can change the file extension, too. The primary reason you’d do this is if you want to change the actual file format (i.e., file type), like if you need the file to be compatible with a specific device or software program.

Here’s an example where we’re using the Zamzar file converter to change the file extension of an audio file from MP3 to WAV.

  1. Visit Zamzar, and select Choose Files.

  2. Select the MP3 file you want to change to WAV, and then press Open.

  3. Select Convert To, and then pick WAV from the list.

  4. Select Convert Now to start the file conversion.

  5. Choose Download to save the file to your device.

Some software programs have built-in file conversion tools. This is often the case for programs that can open several file types. Adobe Photoshop, for example, can open a PNG file and convert it to over a dozen other image formats, which then changes the file extension (to JPG, GIF, TIFF, etc.).

What Does Changing the File Extension Do?

The Windows operating system uses the file extension to understand how to open a file. For example, when you double-click to open a TXT file, Notepad probably opens it. This happens because Notepad is configured to open TXT files.

If I changed the TXT file to the DOCX file extension, Microsoft Word would open it instead because my PC is configured to use Word for that file type.

Reasons to Change the File Extension

One reason to change a file extension is if the original one was appended to the file by mistake. This sometimes happens when a file is downloaded from a website. If you were supposed to get a PDF file, for example, but the web service exported your file to something else, you can change the file extension to PDF to make it work correctly with your PDF reader.

Another example is if you’re working with a BAT file. Building it as a TXT document makes more sense, so you can quickly double-click to open it in a text editor when you need to make changes. But when you’re done, you have to change the file extension to BAT to work as intended.

You might think about changing the file extension to make the file work with a different program or device. For example, changing the file extension sounds helpful if your eReader supports PDF files, but your book is an FB2 file. In reality, you’d need to change the file type.

The File ‘Type’ Is Different

When you change a file extension, it doesn’t affect the file type. It might look like it does if the icon changes and a different program opens when you double-click it. But really, the file extension only serves as a way to tell Windows which program to trigger when you open the file.

The file type is the format that the file exists in. For instance, an SVG file is an image format, but it’s very different from the JPG image format, and both are even less like an ISO file. Those are three different file types.

The DAT file extension is another great example. If you follow that link, you’ll see that one kind of DAT file is a video, another is a text file, and yet another is used to store backed-up data. That’s three different file types that are using the same file extension.

One way to understand why the differences matter is to think about what would happen if you changed the MP3 file extension to DOCX. MP3 is an audio file format, and DOCX is a document format. Changing the file extension would not magically display all the MP3’s lyrics in a document format you can look through in Microsoft Word.

Instead, use a file converter to change the file type. If you need your MKV video to be an MP4 file, maybe so it opens in your favorite video player that only accepts MP4s, then a file conversion tool is the best way to do it. The same is true for other file types.

Thanks for letting us know!

Get the Latest Tech News Delivered Every Day

Subscribe

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Завершение установки windows 7 долго стоит на месте
  • Windows worms dors cleaner
  • Windows management instrumentation command line
  • Disable uac windows server 2012
  • Как установить windows 10 без установки драйверов