APFS format, or Apple File System, is the default file system for macOS, iOS, iPadOS, and tvOS since 2017. It replaces HFS+ and is optimized for flash and solid-state storage with built-in encryption, space sharing, and efficient snapshot management.
APFS was introduced by Apple in 2017 as a successor to HFS+. It supports modern storage technologies and includes features like copy-on-write metadata, which prevents data corruption during writes. Unlike HFS+, which was designed for spinning hard drives, APFS is engineered for SSDs and flash memory, offering faster performance and better reliability under frequent read/write cycles.
Apple states that APFS improves data integrity through atomic operations-where changes happen in full or not at all-reducing the risk of file system damage during power loss or crashes. This design helps files remain consistent even if a write operation is interrupted.
APFS uses a copy-on-write architecture for metadata updates. When a file is modified, the system writes the new version to a different location on the disk before updating pointers. This prevents partial writes from corrupting the file structure. If a crash occurs mid-write, the system reverts to the previous valid state.
File storage is managed through extents-contiguous blocks of data-rather than fragmented clusters. This reduces overhead and speeds up access times, especially on SSDs where seek time is negligible. APFS also tracks free space at the volume level, allowing multiple volumes to share the same physical storage pool.
For example, a Mac with a 1TB SSD can host both a macOS volume and a recovery partition. With APFS, they share the same underlying space. If the OS volume grows, it automatically takes unused space from the recovery partition without requiring manual resizing.
APFS includes several advanced capabilities not available in HFS+. These include:
Apple's documentation confirms that APFS supports up to 16 exabytes of storage capacity, far exceeding the limits of HFS+. This makes it suitable for high-capacity external drives and enterprise environments.
A non-obvious detail: APFS encrypts metadata separately from file data. This means that even if someone gains access to the raw disk, they cannot read file names, timestamps, or directory structures without the encryption key. This feature enhances privacy protection on mobile devices.
Many users assume APFS is only for Macs. While it is the default on macOS, it is also used on iOS and iPadOS devices. iPhones and iPads running iOS 10.3 and later use APFS for internal storage, though users don't interact with it directly.
Another misconception is that APFS is incompatible with older systems. APFS volumes cannot be mounted by macOS versions prior to 10.13 (High Sierra), nor can they be accessed by Windows without third-party tools. However, APFS is not a proprietary lock-in-Apple released the specification publicly in 2017.
Some believe APFS slows down older hardware. Benchmarks from Apple's Developer Documentation show that APFS performs better than HFS+ on SSDs, even on machines from 2012 and later. On spinning disks, the difference is less pronounced due to mechanical latency.
APFS is available in several configurations depending on the device and use case:
| Use Case | Encryption Level | Snapshot Support | Typical Volume Size |
|---|---|---|---|
| Internal iPhone Storage | Full-volume (AES-256) | No | 64GB-1TB |
| MacBook Internal Drive | Per-file or volume-wide | Yes | 256GB-4TB |
| External SSD (e.g., SanDisk Extreme) | Optional (via disk utility) | Yes | 1TB-8TB |
For example, a photographer using a 2TB external SSD to store RAW images can enable APFS with encryption and create daily snapshots. If a file is accidentally deleted, they can restore it from a snapshot taken hours earlier without needing a separate backup tool.
When formatting a drive in macOS Disk Utility, selecting "APFS" enables features like space sharing and encryption. Users can choose between "APFS (Case-sensitive)" and "APFS (Encrypted)" options, with the latter requiring a password to enable the volume.
I recently used APFS snapshots to recover a corrupted project file on my MacBook. I had edited a large video timeline in Final Cut Pro, saved it, then closed the app. After rebooting, the file opened as blank. I checked Time Machine but hadn't backed up that day.
Instead, I opened Terminal and ran:
sudo tmutil listlocalsnapshots /
This showed a local snapshot from the previous evening. I navigated to the folder and found a copy of the original file in a hidden .snapshot directory. I restored it manually and reopened the project-everything worked.
Apple's official guide confirms that local snapshots are created automatically when APFS is enabled and space allows. They're retained for up to 24 hours unless space is needed.
APFS differs from HFS+, NTFS, and ext4 in design philosophy and implementation. While HFS+ uses a B-tree index for directories, APFS uses a more efficient structure called "extents" for storing file data. This reduces fragmentation and speeds up access.
Compared to NTFS (used on Windows), APFS offers better integration with iCloud and Time Machine. It also supports native encryption without requiring third-party software. However, NTFS remains the standard for cross-platform compatibility.
Unlike ext4 (Linux), APFS does not support journaling in the traditional sense. Instead, it relies on copy-on-write and checksums for consistency. This reduces overhead but requires careful handling during filesystem repair.
APFS format is Apple's modern, secure, and efficient file system designed for flash-based storage. It improves reliability through atomic operations, enables space sharing across volumes, and provides strong encryption and snapshot capabilities. Its adoption across Apple's system ensures faster performance and better data protection on supported devices.