How to revert renamed files to their original names on Mac?

I've renamed so files from my camera and they now won't open in a report they need to be on. How do I restore the original name?


[Re-Titled By Moderator]

MacBook Air 13″, macOS 14.5

Posted on Mar 7, 2025 11:48 PM

Reply
4 replies

Mar 9, 2025 07:18 AM in response to Pianoann2

Pianoann2 wrote:
I've renamed so files from my camera and they now won't open in a report they need to be on. How do I restore the original name?

There is no way to "revert" to a previous filename. When you change a filename it overwrites the previous name and it cannot be "restored."


But you said the images now won't open, so it would appear that you changed the file type (aka extension), not the file name. A full filename consists of two sets of characters separated by a "." The characters that follow the "." are called the extension and they determine the file type.

  • The common image file types are JPG (JPEG), PNG, TIFF, GIF and now on iPhones HEIC.
  • For example, if you change the extension of a JPG file to PNG, it probably won't open because the extension doesn't match what the image file really is.


Do you know what type of files your camera produces?


First step should be to make sure you can see the file types in the Finder. In Finder > Preferences > Advanced make sure that you have checked "Show all filename extensions." Then navigate to your files and inspect the filename & extension. If your camera produces JPG/JPEG files but your files have a different extension try changing one of them back to the original extension and see if it opens.



Mar 13, 2025 12:50 AM in response to MartinR

MartinR wrote:


Pianoann2 wrote:
I've renamed so files from my camera and they now won't open in a report they need to be on. How do I restore the original name?
There is no way to "revert" to a previous filename. When you change a filename it overwrites the previous name and it cannot be "restored."

But you said the images now won't open, so it would appear that you changed the file type (aka extension), not the file name. A full filename consists of two sets of characters separated by a "." The characters that follow the "." are called the extension and they determine the file type• .
The common image file types are JPG (JPEG), PNG, TIFF, GIF and now on iPhones HEIC.
• For example, if you change the extension of a JPG file to PNG, it probably won't open because the extension doesn't match what the image file really is.

Do you know what type of files your camera produces?

First step should be to make sure you can see the file types in the Finder. In Finder > Preferences > Advanced make sure that you have checked "Show all filename extensions." Then navigate to your files and inspect the filename & extension. If your camera produces JPG/JPEG files but your files have a different extension try changing one of them back to the original extension and see if it opens.


Do you remember exactly what the original file extensions were before the change? If not, did you transfer the files from your camera recently? You might be able to check the originals there to confirm.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to revert renamed files to their original names on Mac?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.