A photo's GPS position is stored in its EXIF metadata, next to the camera model and the time it was taken. Remove it before sharing by turning off location in your phone's share options, by running exiftool -gps:all= -xmp:geotag= photo.jpg, or by downloading a cleaned copy from a tool that strips the metadata without re-saving the picture.
Check whether the photo has a location
Not every photo has one: it depends on whether the camera app had location access when the picture was taken. Open the file in an EXIF viewer, or list its GPS tags on the command line:
exiftool -a -G1 "-gps*" photo.jpg
No output means no GPS tags. The quotes stop zsh treating the asterisk as a file name pattern.
On your phone or computer
iPhone: when you share a photo, tap Options at the top of the share sheet and turn off Location. That applies only to the copy being shared. To stop recording positions at all, set the Camera app's location access to Never in the privacy settings.
Android: camera apps have a setting to stop saving location, and Google Photos can leave the location out of items shared by link. The names and places of these settings vary between phones and versions.
Windows: in File Explorer, open the file's Properties, go to Details and choose Remove Properties and Personal Information. It can make a copy with the properties removed or remove the ones you tick.
macOS: Preview's Inspector shows a GPS section for a photo that has a position, with a button to remove it, and the export options in Photos can leave location information out.
Each of these handles a different set of tags, so check the result with a viewer before relying on it.
With exiftool
ExifTool is the standard command-line tool for metadata and works with nearly every image format, HEIC included. Remove only the location, from both the EXIF and XMP blocks:
exiftool -gps:all= -xmp:geotag= photo.jpg
Remove all metadata but copy the Orientation tag back, so the photo still displays upright:
ExifTool rewrites the metadata without re-compressing the image. It keeps the original as photo.jpg_original; add -overwrite_original to skip that backup, and give a folder name instead of a file to process every image in it.
ImageMagick can also do it, with magick photo.jpg -auto-orient -strip clean.jpg, but that decodes and re-saves the JPEG, which costs a little quality each time. -auto-orient turns the pixels upright first, since -strip removes the Orientation tag along with everything else.
What to watch for
Orientation: many cameras store a portrait photo sideways and rely on the Orientation tag to display it upright. Remove every tag and the photo shows sideways. Keep that one tag, or rotate the pixels first.
Embedded thumbnails: the EXIF block can hold a small preview made before you cropped or edited the photo. Removing the whole block removes it; deleting individual tags does not.
Other copies of the position: XMP can hold a second copy of the GPS tags, and videos store location in their own metadata. A tool that removes only the EXIF GPS block may leave these.
Sharing services: some sites remove metadata from the images they display, but you cannot rely on it, and a photo sent as a file or email attachment usually arrives unchanged.
The picture itself: removing metadata does nothing about a street sign, a house number or a landmark in the frame.
Do it in your browser
The EXIF Viewer & Remover shows a photo's camera, date and GPS data, warns when it records where it was taken, and gives you a cleaned copy of a JPEG or PNG. It drops the EXIF, XMP and IPTC blocks and embedded thumbnails without re-compressing the image, keeps the colour profile, and for a JPEG can keep the Orientation tag on its own. It reads HEIC, AVIF and TIFF but cannot clean them; use exiftool for those. The photo is never uploaded.
Frequently asked questions
Does removing EXIF data reduce photo quality?
Not when the tool rewrites only the metadata, as exiftool and the XUtil EXIF remover do. A tool that opens and re-saves the picture to drop the metadata re-compresses a JPEG and loses a little quality.
Do photos sent in a message keep their location?
It depends on the app and on how the photo is sent. Some services remove metadata from images, but a photo sent as a file or an email attachment usually keeps everything, so remove the location yourself if it matters.
How do I stop my phone adding location to photos?
Turn off location access for the camera app in your phone’s privacy or location settings. Photos taken afterwards have no GPS position; photos already taken keep theirs.
Why is my photo sideways after removing EXIF data?
The camera stored the pixels turned and relied on the Orientation tag to display them upright. Keep that tag when stripping, with -tagsfromfile @ -orientation in exiftool or the Keep the rotation option in the XUtil tool.