How to View and Change File Extensions on iPhone
In this article
Yes, you can view and change file extensions on an iPhone or iPad, but only within the native Files app. Apple does not allow direct extension renaming in other apps like Photos or Safari downloads for security reasons. This process allows you to identify file types manually or fix compatibility issues by ensuring a document has the correct suffix (like .pdf or .jpg).
What You'll Need
- An iPhone or iPad running iOS 13 or later.
- The pre-installed "Files" app.
- A file that is already saved to your device (not just streamed from the web).
Step-by-Step
- Open the Files App: Locate the blue folder icon labeled "Files" on your home screen or in the App Library and tap to open it.
- Navigate to the File: Browse through "On My iPhone," "iCloud Drive," or any connected cloud services (like Dropbox or Google Drive) to find the specific file you wish to modify. Note that files viewed directly in Safari or Mail cannot be renamed here; they must be saved to the Files app first.
- Initiate Rename: Press and hold (long-press) the file until a context menu appears. Tap the option labeled "Rename." Alternatively, you can swipe left on the file and tap "More," then select "Rename."
- Edit the Extension: The full filename will appear in a text field. Scroll to the end of the name. If the file currently shows an extension (e.g.,
document.pdf), delete the period and the letters after it. Type the new extension you want to assign (e.g., change.pdfto.txt). Ensure there are no spaces before the new extension. - Confirm the Change: Tap anywhere outside the text box or press "Done" on the keyboard. A warning alert may appear stating that changing the extension might make the file unusable. Read this carefully, as incorrect extensions can prevent apps from opening the file. Tap "Keep" or "OK" to confirm.
Note: Menu labels and exact navigation paths may differ slightly depending on your iOS version or if you are using an iPad with macOS-style multitasking.
Common Mistakes
- Forgetting to Save First: Trying to rename a file directly from a preview in Mail or Safari will fail. You must use "Share" > "Save to Files" first.
- Adding Double Extensions: Users often type
file.txt.txtinstead of replacing the old one. Always delete the existing suffix before typing the new one. - Ignoring Warnings: Changing a video file from
.mp4to.jpgwill corrupt the file's ability to play, even if the data remains intact. Only change extensions if you understand the file format.
Tips
- View Hidden Extensions: Unlike Windows, iOS does not have a global setting to "show all extensions" in the list view. You must open the file details or rename it to see the current extension clearly.
- Batch Renaming: The Files app does not support batch renaming of multiple files at once. You must rename each file individually.
- Use Shortcuts: For frequent changes, create an Automation in the Shortcuts app to automate file organization, though direct extension editing is still best done manually for precision.
Troubleshooting
If you cannot rename a file or the extension reverts, check the following:
- File Permissions: If the file is stored in a read-only location (like some synced folders from certain cloud providers), you cannot edit it. Copy the file to "On My iPhone" first.
- App Locking: If the file is currently open in another app (like Pages or Numbers), close the app completely and try again.
- iCloud Sync Issues: If the file is syncing, wait for the sync circle to finish. Attempting to rename during active sync can cause errors.
Frequently Asked Questions
Can I see file extensions in the Photos app?
No. The Photos app manages media internally and does not expose file extensions or allow renaming. You must save the photo to the Files app to see or change its extension.
Does changing the extension delete the file content?
No. Changing the extension only changes how the system identifies the file. However, if you assign an extension that the file's internal data does not match (e.g., renaming a Word doc to .pdf), the file may become unopenable by standard apps.
Why is the "Rename" option grayed out?
This usually means the file is located in a read-only directory, such as a mounted network drive or a specific iCloud folder with restricted permissions. Move the file to "On My iPhone" to edit it.
Can I hide file extensions on iPhone?
iOS does not provide a toggle to hide extensions globally. They are displayed when you view file details or attempt to rename them.
Is this feature available on Android?
Android handles file extensions differently. Most Android file managers show extensions by default or allow easy toggling in settings, whereas iOS restricts this primarily to the Files app interface.