Macs are known for handling images well — but macOS doesn't make image compression obvious. There are actually six different ways to compress images on a Mac, ranging from built-in tools you already have to powerful command-line utilities. Here's every method, compared.
sips in Terminal for batch processing. Use a browser compressor for the best balance of speed and file size without installing anything.Every Mac comes with Preview, and it has a hidden image compression feature:
Limitations: No batch processing. Only JPEG quality control — you can't compress PNG files while keeping them as PNG. No WebP or AVIF export.
macOS includes a powerful command-line tool called sips (Scriptable Image Processing System). It can batch-resize and convert images without installing anything:
sips -Z 1200 *.jpg — Resize all JPGs to 1200px max dimension
sips -s format jpeg -s formatOptions 80 *.png --out output/ — Convert all PNGs to JPG at 80% quality
Limitations: Command line only. No WebP/AVIF support. Cannot optimize PNG (only convert away from PNG).
ImageOptim is a free Mac app that losslessly compresses PNG, JPEG, and GIF files by stripping metadata and applying advanced compression algorithms:
Limitations: Lossless only — you can't do aggressive "good enough" compression. No WebP/AVIF support. Mac-only.
A browser compressor like compress2png.com works on Mac without installing anything:
This combines the ease of Preview with the power of dedicated apps, and works identically on Mac, Windows, and Linux.
macOS Monterey and later include the Shortcuts app, which can automate image compression:
Great for repeat workflows — right-click any image in Finder → Services → Your Compression Shortcut.
If you already own pro editing software, both offer detailed export controls including color profile management, metadata control, and format-specific tuning. Overkill for simple compression, but necessary if color accuracy is critical.
| Method | Batch | WebP | Free | Best For |
|---|---|---|---|---|
| Preview | ❌ | ❌ | ✅ | Quick single export |
| sips (Terminal) | ✅ | ❌ | ✅ | Scripting & automation |
| ImageOptim | ✅ | ❌ | ✅ | Lossless PNG shrinking |
| Browser Compressor | ✅ | ✅ | ✅ | All-around best |
| Shortcuts | ✅ | ❌ | ✅ | Right-click workflow |
| Pro Software | ⚠️ | ✅ | ❌ | Color-critical work |