This guide shows you how to strip GPS coordinates from photos on a Mac, either one at a time or in bulk. You’ll learn three methods: using the built-in Photos app, using Preview, and using a quick Terminal command. No extra software is needed for any of these approaches.
What You’ll Need
- A Mac running macOS Ventura or later (for the Photos app method). Earlier versions work too, but the menu names may differ slightly.
- The photos you want to edit, either in the Photos library or as files on your disk.
- For the Terminal method: basic comfort with copying and pasting a command.
Step-by-Step
Method 1: Remove Location in the Photos App (Single Photo)
- Open the Photos app on your Mac.
- Double-click the photo whose location you want to remove to open it in the viewer.
- Click the Info button (the small circled “i”) in the toolbar, or press Command-I on your keyboard.
- In the info panel that appears, click the Map section to expand it. You’ll see a thumbnail map showing where the photo was taken.
- Click the Adjust Location button (it looks like a small arrow or pencil).
- In the drop-down that appears, click Remove Location.
- The map thumbnail will disappear, and the location field will show “No Location.” The change is saved automatically.
Method 2: Remove Location with Preview (For Photos Stored as Files)
- Locate the photo file (e.g., .jpg or .heic) in Finder.
- Right-click the file and select Open With > Preview.
- In Preview, click Tools in the menu bar, then select Show Inspector (or press Command-I).
- Click the More Info tab (the one with the circled “i” icon) in the inspector window.
- Click the GPS tab.
- Click the Remove button next to the location coordinates.
- Close the inspector. The location data is now stripped from the file. Important: If the photo is a JPEG, Preview may need to re-save the file. When you close the window, choose “Save” if prompted.
Method 3: Remove Location from Multiple Photos at Once (Terminal)
- Open Terminal (found in Applications > Utilities).
- Type the following command, but do not press Enter yet:
xattr -d com.apple.metadata:kMDItemWhereFroms - Add a space after the command, then drag and drop the photo files or a folder of photos onto the Terminal window. This will fill in the file paths.
- Press Enter. The command will remove the location metadata from all the dropped files.
- To verify, use the Photos app or Preview on one of the files to check that the location is gone.
Note: The Terminal method removes the GPS data from the file itself, but it does not remove the location from any copies that already exist in iCloud or on other devices. For photos already in your Photos library, use Method 1.
Common Mistakes
- Editing the wrong copy: If you edit a photo in Preview but the original is in your Photos library, the library copy still has the location. Always edit the version you intend to share.
- Forgetting to save in Preview: If you close Preview without saving, the location data remains. Always save after removing GPS info.
- Using the Photos app on a file not in the library: The Photos app only manages photos in its library. If you have a standalone file, use Preview or Terminal.
- Assuming the location is removed from all versions: If you have iCloud Photos enabled, the location change will sync, but older versions might still exist in backups or on other devices.
Tips
- Check before sharing: After removing location, open the photo in Preview and go to Tools > Show Inspector > More Info > GPS to confirm the field is empty.
- Remove location from all photos at once: In the Photos app, select multiple photos (Command-click), then press Command-I and follow the same steps. The “Remove Location” option will apply to all selected photos.
- Use a copy for sharing: If you want to keep the original with location data, duplicate the photo (Command-D in Photos) and remove location only from the copy.
- For social media: Many platforms strip location automatically, but not all. Removing it manually is the only sure way.
Troubleshooting
“Adjust Location” is grayed out in Photos
This usually happens when the photo is not in your library but is a referenced file. In Photos, go to Preferences > General and make sure “Copy items to the Photos library” is checked. Then import the photo again.
Preview doesn’t show a GPS tab
Some file formats, like PNG, don’t store GPS data. If the GPS tab is missing, the photo likely has no location to remove. For JPEG and HEIC files, the tab should appear.
Terminal says “No such file or directory”
This means the file path wasn’t added correctly. Make sure you drag the files after typing the command and a space. Also, check that the files exist and you have permission to read them.
After removing location, the photo still shows a map in the Photos app
Try quitting and reopening the Photos app. If it persists, the location might be stored in the photo’s metadata in a way the app cached. Use the Terminal method on the underlying file (if you can find it) or re-import the photo after deleting the original from the library.
I removed location from a photo, but when I share it, the location is back
You may have shared the original file, not the edited one. Double-check that you are sharing the version you edited. Also, if you use cloud sharing, some services may re-add location from the original file.
Frequently Asked Questions
Will removing location affect photo quality?
No. Removing GPS metadata does not change the pixels or compression of the image. It only deletes the location information.
Can I remove location from a video on Mac?
The Photos app method works for videos too. Open the video, press Command-I, and remove the location the same way. Preview does not work for videos.
Does this work for photos in iCloud?
Yes, if you edit a photo in the Photos app on your Mac, the change syncs to your iCloud library. However, the original file might still exist in a backup.
Is there a way to remove location from all photos at once?
Yes. In the Photos app, select all photos (Command-A) in an album or the library, then press Command-I and click “Remove Location.” This applies to every selected photo.
What if my photo is a HEIC file?
Both the Photos app and Preview handle HEIC files. The steps are the same as for JPEG.
Can I undo the removal?
No, once you remove location data, it cannot be recovered unless you have a backup of the original file. If you think you might need it later, duplicate the photo first.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Google Play Store Won’t Connect to Internet
- Windows Window Management Tips & Shortcuts
- Disable Automatic Updates on iPhone (iOS 18)
- Minimize All Windows in Windows: Shortcut Guide
- Android Messages on Desktop: Send & Receive from PC
- Forgot Windows 11 Password? Reset It Now