The Short Answer
iPhone names photos using the DCF (Design Rule for Camera File System) standard — the same naming convention used by virtually every digital camera since the early 2000s. Files are named IMG_ followed by a 4-digit sequential number (IMG_0001 through IMG_9999), stored inside numbered folders (100APPLE, 101APPLE, etc.) inside a DCIM directory. The numbers are sequential on each device and reset after IMG_9999 by creating a new folder. There is no deeper meaning to the specific number — it is simply a counter of how many photos that iPhone has taken since its last reset.
The DCF Standard: Why IMG_?
The "IMG_" prefix and four-digit numbering system comes from the DCF standard (Design Rule for Camera File System), published by JEITA (Japan Electronics and Information Technology Industries Association) as JEITA CP-3461. It was established in 1998 and revised in 2003.
DCF was created to ensure interoperability — a photo taken by any digital camera should be readable by any computer or card reader without proprietary software. The standard specifies:
- Photo files must be stored in a root DCIM directory
- DCIM must contain numbered subdirectories (100–999) with a device identifier suffix
- Each subdirectory can hold a maximum of 9,999 files
- File names must be 8 characters followed by a 3-character extension
- The 4-digit sequential number must be consistent within a device
Apple's implementation on iPhone uses "APPLE" as the folder suffix (so you see folders like 100APPLE, 101APPLE) and "IMG_" as the file prefix. Other camera manufacturers use their own suffix and prefix — Canon uses "IMG_", Nikon uses "DSC_", Sony uses "DSC0" — but all follow the same underlying DCF structure.
What Is the DCIM Folder?
DCIM stands for Digital Camera Images. It is the mandatory top-level folder name in the DCF standard. Every camera — digital point-and-shoot, DSLR, mirrorless, iPhone, Android — stores all photos inside a DCIM folder. This is why when you connect any camera (or phone) to any computer, the computer can automatically recognize it as a camera and offer to import photos: the operating system knows to look for a DCIM folder.
When you connect your iPhone to a Mac with a USB cable and open Finder, you will see your iPhone listed in the sidebar. Click on your iPhone, then click "Files" to browse the file system. Your photos are inside the DCIM directory. On Windows, your iPhone appears as a camera device in File Explorer, and you can navigate to DCIM and its numbered subfolders directly.
| Path Component | Example | Explanation |
|---|---|---|
| Root folder | DCIM/ | Required by DCF standard; all photos live here |
| Subfolder | 100APPLE/ | 3-digit number (100–999) + device code (APPLE) |
| File name | IMG_4827 | 8-char name: 4-char prefix (IMG_) + 4-digit number |
| Extension | .HEIC / .MOV | Format identifier; not part of DCF numbering |
File Extensions: HEIC, MOV, JPG, PNG
The file extension after the IMG_XXXX number tells you what format the file is in:
- .HEIC — Standard iPhone photo in High Efficiency Image Container format (default since iOS 11)
- .JPG / .JPEG — Photo saved in JPEG format (when "Most Compatible" is selected in Camera settings)
- .PNG — Screenshots taken by pressing the side button and volume up
- .MOV — Video clips recorded by the camera
- .DNG — ProRAW photos (Digital Negative format, Adobe's open RAW standard that Apple adopted for ProRAW)
- .AAE — Sidecar file containing edit history for a photo (the edits you make in Photos, stored separately from the original)
The .AAE sidecar files are why you sometimes see pairs of files when browsing your iPhone via USB — an IMG_XXXX.HEIC and an IMG_XXXX.AAE. The .AAE file is the edit record. If you copy only the HEIC without the AAE to your computer, the photo will appear unedited. Copy both files together to preserve your edits.
When and Why Numbers Repeat
The four-digit counter maxes out at 9999. After IMG_9999, iOS creates a new DCIM subfolder (e.g. 101APPLE) and starts numbering again from IMG_0001. This means you can have two files with the same name (IMG_0001.HEIC) in different subfolders — they are distinct files at different paths.
This can cause problems if you have been manually organizing imported photos on your Mac by filename without the folder path. Photos named IMG_0001 from two different iPhone folders could appear to be duplicates or could overwrite each other if naively copied to the same destination.
If you factory reset or restore your iPhone, the counter may reset. After a restore from backup, iOS typically resumes the counter where it left off (from the backup metadata), but a fresh setup (not from backup) starts from IMG_0001 again.
How to Rename iPhone Photos
iOS does not provide a built-in way to rename photo files while they are on your iPhone. The Photos app shows the original filename in the Info panel (swipe up on a photo to see Info) but does not allow editing it.
Options for renaming:
On Mac
- Export photos from Photos app: select photos → File → Export → Export Photo
- Choose a destination folder and click Export
- Rename the exported files in Finder using standard macOS renaming tools
- For bulk renaming, select multiple files in Finder, right-click → Rename to use the batch rename feature
On iPhone via Shortcuts
- Create a Shortcut using the "Get Photos" and "Rename File" actions
- Use "Save File" to save the renamed copy to the Files app
- Note: this creates a copy, not a rename of the original in Photos
For most practical purposes — organizing, searching, sharing — the original IMG_ filename matters less than the date and location metadata embedded in the EXIF data. The Photos app on iPhone and Mac organizes primarily by capture date, not filename. Learn more in our article on iPhone photo metadata and EXIF data.
If you have thousands of photos you want to sort through, the filename is rarely the right filter. Instead, use Swype Photo Cleaner to quickly swipe through your library and remove shots you no longer need.
Thousands of IMG_ Files? Start Deleting the Ones You Don't Need
Swype Photo Cleaner lets you quickly swipe through your entire camera roll — left to delete, right to keep. No confusing menus, no batch selections — just fast, satisfying cleanup.
Free · iPhone · iOS 16+ · 100% on-device, zero uploads
Free · iPhone · iOS 16+