How to turn off warnings for file extension changes on Mac

In this tutorial, we’ll share two easy methods to turn off the warning popup you see when you change the extension of a file in Finder on Mac.

Change extension warning on Mac

When you change the extension for a file in macOS, you’re normally treated with a warning. This is because changing the extension is not an everyday task, and adding the wrong or different extension can prevent you from opening or using that file. Altering a file’s extension could also corrupt the file, and you may not be able to undo the changes.

However, if you’re someone who changes file extensions a lot and knows what you’re doing, then you may soon get annoyed by the repeated warning. Luckily, there are two easy ways to stop getting the confirmation popup when you tweak a file’s extension.

Also see: How to show or hide filename extensions on Mac

Turn off the file extension warning from Finder

1) Open Finder on your Mac and click Finder > Settings or Preferences from the top menu bar.

2) Go to the Advanced tab.

3) Uncheck the Show warning before changing an extension option.

Uncheck Show warning before changing an extension in Finder settings

Now close the dialog box, and you will no longer see the warning that you normally get when making changes to a file extension.

Using Terminal

1) Launch Terminal on your Mac.

2) Type in the following command and hit the return key:

defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
Terminal command to turn off Finder extension change warning

3) Now enter killall Finder in Terminal to relaunch Finder. You will no longer see the warning when you change a file’s extension.

To re-enable the warning, enter the following command in Terminal and hit the return key.

defaults write com.apple.finder FXEnableExtensionChangeWarning -bool true

On a related note: