Does removing EXIF data remove GPS location from a photo?
Updated
Short answer
Usually, yes: a photo’s GPS coordinates are stored as EXIF tags, so removing EXIF removes them. But location can also sit in XMP or IPTC metadata, some tools strip only part of it, and landmarks visible in the picture can reveal where it was taken, so check the result.
Where a photo stores its location
Digital photos carry metadata — information about the image stored alongside the pixels. Three formats matter for privacy:
- EXIF is written by the camera or phone at capture time: make and model, lens, exposure settings, the date and time, the orientation, and — when location services are on — a GPS section with latitude, longitude, altitude, a GPS timestamp, and sometimes the direction the camera was facing. Phone GPS is often accurate to within a few meters.
- XMP is an XML block written mostly by editing software. It can record the editing app, edit history, and its own copy of location fields.
- IPTC is used by photographers and news agencies for captions, creator names, copyright, and place names such as city and country.
EXIF can also contain a small embedded thumbnail and a manufacturer’s ‘maker notes’ block, which on some cameras includes a serial number. A thumbnail may not be updated when an image is cropped, so it can still show the uncropped original.
Why stripping EXIF might not be the whole job
A tool that removes only the EXIF GPS section can leave location in XMP or IPTC fields, and a tool that edits only some tags can leave the thumbnail behind. Other things carry location too:
- What’s in the picture: street signs, house numbers, shop fronts, landmarks, a view from a window, reflections in glasses or windows.
- The file name, if your phone or app names files after places.
- Videos, which store location in the container (for example a QuickTime location entry), not in EXIF.
- Screenshots of a map, a delivery app, or a photo’s info panel.
The safest approach is to remove all metadata rather than selected tags, then check the output.
Photos versus screenshots
A photo taken with a phone camera may include GPS coordinates if the camera app has location permission. A screenshot is not a camera capture, so it generally has no GPS tags, although it can carry a date, the device or operating system, and the software that created it. The larger risk with screenshots is what they show: notifications, names, account numbers, and map locations that were on screen.
What happens when you share
Platforms handle metadata differently, and behavior changes between app versions, so treat the following as a general pattern rather than a guarantee:
- Many large social networks remove EXIF, including GPS, from the copy of an image they show to other people. The platform may still keep the original data you uploaded.
- Messaging apps vary. Several recompress photos and drop metadata when you send them as photos, but deliver the original file untouched when you send it as a file or document.
- Email attachments, cloud-storage links, and file transfers generally deliver the file exactly as it was, metadata included.
- On an iPhone, the share sheet has an Options control with a Location switch that lets you share a photo without its location. On Android, you can turn off location tagging in the camera app’s settings; some gallery apps offer a remove-location option when sharing.
If location matters, remove the metadata yourself before sharing instead of relying on the platform.
Two ways to strip metadata
Byte-level tools, such as ExifTool, remove metadata segments from the file and leave the compressed image data as it was, so there is no quality change. They also let you remove selected groups, such as only GPS.
Re-encoding tools decode the image to pixels and save a new file that contains only the pixels. Everything else — EXIF, XMP, IPTC, thumbnails, maker notes — is dropped because it is never written. For JPEGs this means a second round of compression, usually imperceptible at high quality settings.
GhostX takes the re-encoding approach, in your browser: the image is decoded, rotation from the EXIF orientation tag is applied to the pixels so the photo stays upright, and a new file is written at high quality (0.95 for JPEG). Before you strip, it reports what the file contains — for JPEG and PNG it lists the fields and shows GPS coordinates first, with a link to see the spot on a map. For formats its inspector can’t fully read yet (HEIC, WebP, AVIF, GIF), it says so, and stripping still works by re-encoding. HEIC photos are saved as JPEG.
How to check a photo yourself
- Windows: right-click the file → Properties → Details, and look for the GPS section.
- macOS: open the image in Preview and choose Tools → Show Location Info (it is greyed out when the photo has no location). On older versions, open Tools → Show Inspector, choose the More Info (i) tab, then GPS.
- Any platform: ExifTool lists every tag — exiftool -a -G1 photo.jpg shows all of them with their group, and exiftool -gps:all photo.jpg shows only GPS.
- After stripping, run the same check on the new file. It should list no GPS, XMP, or IPTC fields.
Frequently asked questions
-
Do screenshots contain GPS location?
Generally no, because a screenshot isn’t a camera capture. It can include a date and device or software details, and it contains whatever was on the screen, which may itself reveal a location.
-
Does cropping a photo remove its metadata?
Usually not. Most editors keep EXIF when you crop, and an embedded thumbnail may still show the uncropped image. Strip the metadata separately.
-
Does removing metadata reduce image quality?
Byte-level stripping doesn’t touch the image data. Re-encoding a JPEG adds one more round of compression; at high quality settings the difference is not visible in normal viewing. PNG re-encoding is lossless.
-
Can I remove the location but keep the date?
Yes, with a tool that edits selected tags — for example exiftool -gps:all= photo.jpg removes GPS tags only. Tools that remove all metadata, such as GhostX’s strip, remove the date too.