MainspringGuides › Extension warning
macOS Guide

Stop the 'Change the Extension?' Warning on Mac

Updated July 2026 · 2 min read

Rename report.txt to report.md and Finder interrupts: "Are you sure you want to change the extension?" Useful the first time, tiresome the fiftieth. The dialog is controlled by a single checkbox — and a matching Terminal command — and turning it off is entirely reversible.

Turn the warning off in Finder Settings

  1. Click the desktop or any Finder window, then choose FinderSettings (Cmd+,).
  2. Click the Advanced tab.
  3. Uncheck Show warning before changing an extension.

That is it — renames now go through silently, whether you change .txt to .md or delete the extension entirely. The path is identical on macOS Ventura, Sonoma, and Sequoia. To restore the warning later, tick the box again.

The Terminal equivalent

The checkbox writes a Finder preference you can set directly — useful for setup scripts or if you just prefer the shell:

# turn the extension-change warning off
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
killall Finder

# undo: turn the warning back on
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool true
killall Finder

The killall Finder relaunches Finder so it picks up the change — your windows reopen automatically and nothing is lost. Checking the current state: defaults read com.apple.finder FXEnableExtensionChangeWarning prints 0 when the warning is off, 1 when it is on, or an error if you have never changed it (which means the default: on).

Why the warning exists

The dialog is guarding against a real misunderstanding: renaming an extension does not convert the file. Renaming photo.heic to photo.jpg produces a HEIC file with a misleading name, not a JPEG — some apps will refuse to open it, others will open it and confuse you later. The extension is also how macOS picks the default app, so changing it silently reroutes double-clicks to a different program.

Changing extensions is still legitimately useful when the name is wrong and the contents are right: a log file saved as .txt you want treated as .log, a downloaded file that arrived with no extension, a .zip a server mislabelled. If that describes most of your renames, turning the warning off costs you nothing. If you genuinely convert file formats often, keep the warning and use a real converter instead — Preview exports images between formats, and textutil converts documents in Terminal.

If you never see extensions at all

The warning only fires when an extension actually changes, and Finder hides most extensions by default — so you may be changing names without ever touching the extension. To see the full picture, open FinderSettingsAdvanced and check Show all filename extensions. With extensions visible, renames behave predictably: Cmd+A inside a rename selects the whole name, and Finder helpfully pre-selects only the base name (not the extension) when you press Return to rename.

Silence every nag in one place

The extension warning, the Trash warning, and dozens of other Finder dialogs each hide behind their own checkbox or defaults key. Mainspring turns them all into labelled, reversible one-click toggles.

Try Mainspring free →

Signed & notarized by Apple · 1-day free trial · $29 once

The other Advanced-tab warning

The same settings tab holds the empty-Trash confirmation. If you are disabling nags, read turning off the Empty Trash warning next — it covers the matching defaults command and a shortcut that skips the dialog without disabling it.