Remove location data from a photo before you upload it to a chat
Strip the GPS lines on a copy, read them back until none remain, and still look for a house number or a map pin in the picture.
What to do first
- Duplicate the photo. Delete the location lines on the copy, then read the copy.
- Upload that copy when the read prints no GPS line.
- Look at the picture before you attach it. A house number, a street sign, or a map pin is still the place.
The picture in the test below is a drawing, 640 by 360 pixels, with the words “12 Nguyen Hue” painted on it. On 22 November 2026 the coordinates 1° 0’ 0.00” N and 2° 0’ 0.00” E, and an altitude of 12 m, were written into that file. It is not a photograph of that point. The words are there so the second check has something to see.
ChatGPT’s image inputs FAQ, fetched the same day, says the model doesn’t process original file names or metadata, and that images are resized before analysis. That line describes the model. The US privacy policy, updated 10 September 2026, lists images you upload among the Content the service collects. The FAQ does not say the attachment is stripped of GPS before it is stored. A reply that cannot name a location is a reply about the model. The read below is about the file.

The order is the upload. The coordinates and the painted street name are what the next section measured.
Where a camera stores the point
Exif 3.1 is CIPA DC-008-Translation-2026, published 30 January 2026, jointly with JEITA as CP-3451H. The PDF downloaded from that list on 22 November 2026, CIPA_DC-008-2026-E.pdf, puts the GPS IFD behind tag 34853 (hex 8825), a pointer from the TIFF header. Section 4.6.7 says the tags were named for GPS and may also hold a position from another satellite system, a mobile base station, or a similar service. GPSLatitude (tag 2) is three rational numbers: degrees, minutes, and seconds. A typical form is dd/1, mm/1, ss/1. GPSLatitudeRef is N or S. GPSLongitude (tag 4) uses the same shape, and GPSLongitudeRef is E or W. GPSVersionID is mandatory when any GPS tag is present, and the text gives that version as 2.4.0.0.
A note under the GPS table says the subject’s position can also be described in Annotation Data. Section 6.2 stores that data in APP11 and says it is independent of the metadata in the other APP markers. This test did not write an annotation box, so an empty GPS read says nothing about that box.
CIPA DC-010-2026, Exif metadata for XMP, was published 1 June 2026. Its GPS table maps GPSLatitude to the XMP property exif:GPSLatitude and merges the north/south reference into that property. Longitude is mapped the same way. A delete that touches only the GPS IFD can leave this second copy.
ExifTool 12.76 wrote the test file. The GPS group came out as latitude 1 deg 0' 0.00" north, longitude 2 deg 0' 0.00" east, altitude 12 m above sea level, and GPSVersionID 2.3.0.0. The XMP-exif pair repeated the latitude and the longitude. Make was ForgebenchTest. DateTimeOriginal was 2026:11:22 10:00:00.
The ExifTool FAQ says exiftool -gps:all image.jpg will not necessarily extract every EXIF GPS tag, because a same-named tag in another group can hide it, and that -a is required to see the duplicates. The same answer says GPS may sit outside EXIF, so a command limited to the GPS group can miss it, and it offers exiftool -a "-gps*" as the wider read. On the test file that wider read, with -G1 -s added so each line names its group, printed the GPS group, the XMP-exif pair, and a Composite GPSPosition of 1 deg 0' 0.00" N, 2 deg 0' 0.00" E.
exiftool -a -G1 -s "-gps*" copy.jpg
Delete both copies of the coordinates
The ExifTool manual says -geotag= deletes GPS tags which may have been added by the geotag feature, and that this does not remove all GPS tags. The clear it names for the GPS group is -gps:all=.
On a copy that held the latitude, the longitude, the altitude, and the XMP pair, -gps:all= removed the GPS group, including the 12 m altitude. The next "-gps*" read still printed:
[XMP-exif] GPSLatitude : 1 deg 0' 0.00" N
[XMP-exif] GPSLongitude : 2 deg 0' 0.00" E
[Composite] GPSPosition : 1 deg 0' 0.00" N, 2 deg 0' 0.00" E
A second copy also held GPSDestBearing 87.31 (true north), GPSHPositioningError 4.7 m, GPSAreaInformation TestArea, and GPSDateStamp 2026:11:22. After -geotag=, the latitude, longitude, altitude, date stamp, and the XMP pair were gone. These lines remained: GPSVersionID 2.3.0.0, GPSDestBearing 87.31, GPSAreaInformation TestArea, and GPSHPositioningError 4.7 m. TestArea is a label typed for the test. It is the string -geotag= left in the GPS group.
The command that cleared every "-gps*" line on the first file:
exiftool -gps:all= '-XMP-exif:GPS*=' -overwrite_original copy.jpg
Quote the XMP piece. The manual notes that a wildcard has to be quoted where the shell expands stars, and All is the form that does not need quotes. After the command, "-gps*" printed no tag lines. Make and DateTimeOriginal were still there. Pillow 10.2.0 read the pixels before and after, and the lists matched. The file went from 17,082 bytes to 14,043 bytes.
Without -overwrite_original, ExifTool 12.76 also wrote backup-test.jpg_original beside the edited file. That backup still printed the GPS group, the XMP pair, and GPSPosition. Attach the copy you just read. Leave the _original file out of the upload.

The bytes of the drawing matched before and after the two-group delete. A re-save, later in the article, did not.
Read the file the chat will receive
Apple’s personal-safety page, published September 2026, says that with Location Services on for Camera, the coordinates are embedded in the photo. To leave them out of a share: select the photos, tap Share, tap Options, and turn Location off. “Location Not Included” shows above Options. That line is about the shared copy. Taking the location off the library item is a different control on the same page: Adjust Info, Adjust Location, No Location. The Photos privacy page, dated 12 December 2025, describes that library edit as More, then Adjust Location, then No Location. The two pages name different buttons for the same library edit, so the label on your iOS version is the one to follow.
The iPhone share page says sharing a photo includes its metadata, such as date and time, location, device, and captions. The privacy page says access through Photo Picker includes associated metadata, such as location and depth information. A picker inside a chat app is that second path. The Location switch sits on the Share Sheet. Save the copy that shows Location Not Included, then attach that file.
Google Photos on a computer says you can change or remove an estimated location, or a location you added yourself. If the camera wrote the location, Google Photos will not update or remove it. The same page says a download you then email shows the original location the device saved, without the edits you made in Google Photos. It also says that hiding locations does not stop someone from guessing the place from landmarks in the photo.
Microsoft’s Learn library still hosts a Windows 7 tip for the Remove Properties dialog: select the files, open Properties, open Details, and click Remove Properties and Personal Information. The default creates a copy, appends the word Copy to the name, and removes the properties it can change for that file type. The other choice removes selected properties from the file itself, and a property with no checkbox is not editable. The tip says this zeroes metadata and does nothing with the contents of the file. This article did not run that dialog. If you use it, read the copy whose name contains Copy.
Opening the test JPEG in Pillow 10.2.0 and saving it again, without passing the 368 EXIF bytes back in, dropped the GPS lines, the Make, and the time. The new file was 13,970 bytes. The pixel list did not match the original drawing. The painted label still accounted for 318 dark pixels, the same count as before the save. A re-save is a new JPEG, and the words on it are still the words.
When the read is empty, look at the picture

The dashed return is one delete, of both groups. The _original backup still has the coordinates, so it stays off this path.
On the test file the empty read and the matching pixels still left “12 Nguyen Hue” in the drawing. If those words were a real address, the GPS delete would be finished and the upload would still be the wrong file. Crop the words out of the copy, or leave the file unattached. A screenshot of a map often has no GPS IFD, and the pin is the picture.
ChatGPT’s FAQ lists PNG, JPEG (.jpeg and .jpg), and non-animated GIF, up to 20 MB per image. HEIC is not on that list. Apple’s share options include Most Compatible, which may convert a file to JPEG. Read the file you will actually attach, after that conversion if the conversion is the one you send.
A strip removes other metadata with the GPS lines. If the file carries a Content Credential you still want to check, read it before this delete. That credential check needs the record present.
Watch-outs
-All=also removed the camera name and the time on this JPEG. The listing that remained was file information: name, size, type, and pixel size. The manual says-All=leaves the JPEG APP14 Adobe group in place by default, because that group can affect appearance, and that color-space information is removed, so colors may change. This file had no Adobe group, so that line was not tested. The location delete used above is the narrower pair,-gps:all=and-XMP-exif:GPS*=.- The
_originalbackup is a second copy of the coordinates. ExifTool writes it when-overwrite_originalis left off. The read that matters is the file you attach.
Related
- Check Content Credentials before you publish an image: read that record before a strip, because the strip can take it with the GPS lines
- Use AI meeting notes without leaking what was said: the same habit when the upload is a recording
Share