Yes. APFS, the file system on every current Mac, can store a file compressed while it keeps its name, its dates and every byte, and apps can't tell the difference. On our Mac, compressing 26,030 files that hadn't changed in a while would free 18.28 GB.

Most Apple app files are compressed

Files stored compressed: their data and the space they take, GB

Much of macOS is already stored compressed

  • Data
  • On disk

Measured on MacBook Pro M1 Max · macOS 27.0.1 · October 6–20, 2026 · One MacBook Pro, macOS 27.0.1, October 6, 2026

Apple stores much of macOS compressed: Freeform has 192 of its 195 files compressed, and Music 1,993 of 2,737.

Apps you install mostly arrive at full size. Xcode alone accounts for 26,564 of the 28,742 compressed files in /Applications and 6.31 GB of the 6.51 GB saved there. Chrome and Raycast had none.

In Terminal, ls -lO shows a file's flags: on Safari's Info.plist, it reads restricted,compressed. None of this is new. Mac OS X 10.6 Snow Leopard introduced it in 2009, when John Siracusa found 97% of its executable files compressed, as quoted by Stephen Foskett.

A 40 MB build log took 5.7 MB on disk

A build log's space on disk, MB

A 40 MB log took 5.7 MB, until one more line

Measured on MacBook Pro M1 Max · macOS 27.0.1 · October 6–20, 2026 · ditto --hfsCompression --noclone, macOS 27.0.1

You can do the same to your own files, with no administrator password. ditto, which comes with every Mac, wrote a 40 MB build log as a copy that takes 5.7 MB on disk, about a seventh of the original:

ditto --hfsCompression --noclone build.log build-small.log

Comparing them with cmp finds the two files identical byte for byte, and both keep the same modification date. Keep --noclone on macOS 27. Without it, ditto makes an APFS clone (a copy that shares the original's space) and compresses nothing.

Text such as logs compresses well. Photos, videos and zip archives are already compressed and won't shrink much. ditto keeps a file compressed only when that saves about a fifth of its size or more.

Any write undoes it

Adding one line to the compressed copy removed its compressed flag, and the file took 40 MB on disk again. So this suits files you're done with: old projects, exports, logs, finished conversations. A file you're still editing goes back to full size at its next save.

Your own files start out at full size, and we haven't seen macOS go back and compress one later. To make a full-size version of a compressed file, use a plain cp; cp -c and ditto keep the copy compressed.

Check your own Mac

This command counts the files already stored compressed in Apple's apps and your Applications folder, along with the space they save. It reads metadata only, needs no password and uses only tools that come with macOS. Paste it into Terminal as one line:

for d in /System/Applications /Applications; do find "$d"/ -type f -exec stat -f '%Sf %z %b' {} + | awk -v d="$d" '{n++} $1 ~ /compressed/ {c++; l+=$2; s+=$3*512} END {printf "%s: %d of %d files stored compressed, %.2f GB of data in %.2f GB on disk, %.2f GB saved\n", d, c, n, l/1e9, s/1e9, (l-s)/1e9}'; done

Ours printed:

/System/Applications: 11025 of 14161 files stored compressed, 1.15 GB of data in 0.52 GB on disk, 0.63 GB saved
/Applications: 28742 of 309246 files stored compressed, 9.44 GB of data in 2.93 GB on disk, 6.51 GB saved

A big /Applications takes a while: 12 to 23 seconds for about 310,000 files here. Safari is in neither count, because on macOS 27 it lives outside both folders. To check another folder, replace /System/Applications /Applications with its path, for example for d in ~/Downloads; do.

Unchanged files shrink, bytes intact

One file by hand is easy. Compressing a whole home folder in place is not: if you replace a file an app has open, the app can keep writing to the old one, a database can be copied halfway through a write, and iCloud uploads a replaced file again.

Mint's Optimizable list includes files that haven't changed in a while and would come out noticeably smaller. Optimize stores them compressed in place, with the same path, name, reported size, dates and every byte. It leaves out files an app has open, cloud placeholders, databases, files inside apps and files in iCloud-synced folders. Every compressed copy is read back and compared with the original before it takes the original's place, and nothing is deleted.

In a rehearsal on this Mac, compressing 26,030 files would free 18.28 GB, and every compressed copy read back identical. Compression in place is in Mint's direct download and in the Setapp edition, not in the Mac App Store edition.

Questions

Does a compressed file open more slowly? macOS decompresses the file as it reads it, which takes some CPU time. We haven't noticed any slowdown with Apple's apps or with files that are seldom opened, though we haven't benchmarked it.

What about iCloud and Time Machine? Optimize leaves iCloud-synced folders alone. We haven't tested what iCloud or Time Machine does with a compressed file.

What it means

Freeing space doesn't have to mean deleting. macOS has stored its own apps compressed since 2009, and the same works for your files, with every byte kept. It pays off on files that have stopped changing, and a single write puts a file back at full size.

Data: file metadata only (find and stat), on one MacBook Pro (M1 Max) on macOS 27.0.1 (26A434), October 6, 2026; the compression test and copy checks were repeated on October 20. Mint's 18.28 GB figure is from a rehearsal on September 23, 2026, which ran every step except putting the compressed copies in place. One Mac and one macOS version, so your numbers will differ with your apps.