Information Security Stack Exchange is a question and answer site for information security professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I like to upload photos to various internet services, but I prefer not to share my geographic location. I understand Facebook and other services strip out the geolocation data, but they still have the data. I want to keep that data to myself and not share geolocation.

What are some tools that can find if geolocation data exists in a photo?

Is there a way I can manually strip this data from my photos?

share|improve this question
up vote 13 down vote accepted

I have used exiftool for this kind of work. It basicly lets you review and edit any meta information in your pictures.

I used this to exploit a image service which echoed the geo details back at the user. I filled the images geo data with XSS and attacked other users viewing the picture.

share|improve this answer
+1, and I wish I could get another +1 for you pointing out an implementation / security flaw in displaying that information. – Jeff Ferland Oct 10 '11 at 14:31

The data you're looking for is called Exif data. There's a ton of information about reading, preserving, changing, or deleting it. See

share|improve this answer

First install Imagemagick and then mogrify -strip *.jpg for a directory of images or specify a single image and strip it.

share|improve this answer

As Karrax says, exiftool is perfect for stripping this information from images.

More broadly, you might be interested in MAT, the Metadata Anonymisation Toolkit, which allows you to view metadata that is stored in all sorts of files. This includes not just location data stored in images, but all sorts of data that may be stored in pictures, music files, documents, and so on.

share|improve this answer

Another very quick and simple solution can be found here:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.