User Agents

Web browsers and everyday web tech, explained

How to Change File Extensions on Mac

· 5 min read · Extensions

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Changing a file extension on a Mac allows you to modify how your system identifies a file, which can be useful for compatibility with certain applications, file conversion, or organizing your documents. While macOS typically hides file extensions by default, you can manually show and change them using Finder. This guide walks you through enabling file extension visibility, renaming extensions safely, and avoiding common pitfalls. Always exercise caution—changing a file extension doesn’t convert the file’s format, so incorrect changes can make files unusable.

What You'll Need

  • A Mac computer running macOS
  • Finder access to locate and rename files
  • Basic knowledge of file types (e.g., .jpg, .pdf, .mp4)
  • A backup of important files before making changes

Step-by-Step

  1. Open a Finder window by clicking the Finder icon in the Dock or pressing Command + N to create a new window.
  2. Navigate to the file you want to rename. Use the sidebar to access locations like Desktop, Documents, or Downloads.
  3. Click on the file once to select it, but do not open it.
  4. Go to the top menu bar and click Finder, then select Settings (or Preferences on older macOS versions).
  5. In the Settings window, click the Advanced tab.
  6. Check the box labeled Show all filename extensions. This setting ensures you can see extensions on all files, not just the one you're editing.
  7. Close the Settings window. You should now see extensions (like .jpg or .pdf) displayed after filenames in Finder.
  8. Right-click (or Control-click) the file you want to rename, then select Rename from the context menu. Alternatively, select the file and press Return.
  9. In the rename field, click the part of the filename after the dot (the extension). For example, in report.docx, click .docx.
  10. Type the new extension you want (e.g., .txt, .html). Be precise—use lowercase unless the format typically uses uppercase (like .MOV).
  11. Press Return to confirm. A warning may appear: "Are you sure you want to change the extension?" Click Use .[new extension] to proceed.
  12. Test the file by opening it with the intended application to ensure it still works correctly.

Common Mistakes

  • Changing the extension without converting the file: Renaming a .jpg to .png does not convert the image format. The file remains a JPEG and may not open correctly in apps expecting PNGs.
  • Hiding extensions after renaming: If you disable "Show all filename extensions" after changing one, you won’t be able to see or edit others easily, increasing the risk of accidental misnaming.
  • Using incorrect or unsupported extensions: Assigning a file an extension like .xyz or .bad can confuse the system, and apps may refuse to open it.
  • Renaming without a backup: If the file becomes unreadable, you’ll need a backup to restore the original. Always duplicate critical files before renaming.
  • Editing the wrong part of the filename: Accidentally renaming the main filename instead of the extension can break file references in projects or links.

Tips

  • Keep the "Show all filename extensions" setting enabled if you frequently work with different file types—it prevents confusion and accidental mislabeling.
  • Use consistent lowercase extensions (e.g., .jpg, .pdf) unless you’re certain an app requires uppercase (rare).
  • When in doubt, research the correct extension for your intended use. For example, use .mp4 for video, .wav for uncompressed audio, and .json for data files.
  • Use Quick Look (press Spacebar while selecting a file) to preview content before and after renaming to verify it still opens correctly.
  • For batch changes, consider using Automator or Terminal commands—but always test on copies first.
  • If a file won’t open after renaming, revert to the original extension immediately.

Troubleshooting

If the file doesn’t open after changing the extension, the first step is to revert the change. Right-click the file, rename it back to the original extension, and test again. If the file still won’t open, it may have been corrupted or was incompatible to begin with.

If macOS doesn’t show the option to rename or displays a lock icon, the file may be locked or you lack permission. Right-click the file, select Get Info, and check if "Locked" is checked. Uncheck it if needed. Also, ensure you’re the file owner or have edit permissions under the "Sharing & Permissions" section in the Info window.

If the extension doesn’t appear even after enabling the setting, restart Finder: press Option + Right-click the Finder icon in the Dock, then choose Relaunch. This often refreshes the view.

If you accidentally create a file with an invalid name (e.g., containing / or :), macOS will show an error. Remove prohibited characters and retry. Valid characters include letters, numbers, hyphens, underscores, and periods (except at the start or end).

Frequently Asked Questions

Does changing a file extension convert the file?

No. Changing the extension only alters how macOS identifies the file. The actual data remains unchanged. Use a converter tool to properly transform file formats.

Why can’t I see file extensions on my Mac?

By default, macOS hides extensions for common file types. Enable them in Finder Settings under the Advanced tab by checking "Show all filename extensions."

Can changing a file extension damage the file?

It won’t damage the data, but it may make the file unopenable if the new extension doesn’t match the actual format. Always keep a backup.

How do I change multiple file extensions at once?

Select multiple files in Finder, right-click, and choose Rename. Use the "Replace text" or "Format" option to apply changes in bulk. Test a few files first.

Will changing a file extension affect how apps open it?

Yes. Apps use extensions to determine if they can open a file. Incorrect extensions may prevent apps from recognizing or opening the file.

What should I do if I get a warning when renaming?

The warning is normal. It reminds you that changing the extension may affect usability. Proceed only if you’re certain of the correct format.