JPG vs JPEG on Mac — is there a difference?
Some files are .jpg, others are .jpeg, and macOS seems to treat them differently. Here's what's actually going on.
You’ve got a folder where half the photos are .jpg, half are .jpeg, and you’re wondering if you need to do something about it. Spoiler: no, they’re the same file. But the inconsistency can still cause real problems with scripts, batch tools, and certain CMS upload checks.
Why this happens
JPEG is the format (Joint Photographic Experts Group). The original spec was published in 1992, back when Windows file extensions were limited to three characters — so .jpg was forced. Modern systems handle four-character extensions fine, so .jpeg is also valid. Both extensions describe identical files; the bytes inside are identical.
What varies:
- iPhones export
.jpeg(when set to Most Compatible mode). - Most digital cameras export
.jpg. - Photoshop, Affinity Photo, and Pixelmator default to
.jpg. - Some web-export pipelines use
.jpeg.
The native way to rename
If your tool only accepts .jpg (or only .jpeg), you can rename without re-encoding — they’re the same data.
Finder. Select files, right-click, Rename, pick “Replace Text”, change .jpeg to .jpg. Or use:
for f in *.jpeg; do mv "$f" "${f%.jpeg}.jpg"; done
That’s a rename, not a conversion — no quality loss.
When renaming isn’t enough
If you need to actually re-encode (different quality, smaller dimensions, stripped EXIF), you need a tool that re-saves the JPEG bytes:
sips -s format jpeg -s formatOptions 85 input.jpeg --out output.jpg
Or drag your files into Melt, set the output to JPEG, click Compress. It outputs .jpg regardless of the input extension, plus gives you control over quality and metadata. Download Melt.
Re-export in Melt
- Open Melt.
- Drag your mixed-extension files in.
- Set output format to JPEG.
- Pick a quality if you want re-compression.
- Click Compress.
What you lose, what you keep
A pure rename (no re-encode) loses nothing — the file is identical. A re-encode through sips or Melt is lossy: you’ll lose a small amount of quality each time. If you’re just standardising extensions, rename. If you’re actually compressing or resizing, re-encode but only once from the original.
So which should you use?
Pick one and stick with it. .jpg is more common on the web and slightly more compatible with old tools. .jpeg is technically more correct. Either works.
More Melt tips
-
Receive iPhone photos as JPG via AirDrop (not HEIC)
AirDropping photos from iPhone keeps landing them as HEIC files on your Mac. Here's how to get them as JPG instead.
-
AVIF on Mac — opening and converting AVIF images
AVIF is the next-gen image format that's even smaller than WebP. Here's how to open and convert AVIF files on macOS.
-
How to batch compress a folder of photos on Mac
Compressing 200 photos one at a time is its own form of suffering. Here's how to batch compress images on macOS.
-
What's the best image format for the web (and how to export it on Mac)?
JPEG, PNG, WebP, AVIF, SVG — they each have a job. Here's how to pick the right one for the web and export it from your Mac.