Made on Earth Donate

What a phone photo gives away: GPS to a few metres, a thumbnail that survives cropping, and your camera’s serial number

14 November 2026 · 10 min read · by Varun Agrawal

The tool this post is aboutRemove Photo Location & EXIF DataSee what a photo’s hidden metadata gives away (GPS location, camera serial number, the time it was taken) and download a clean copy, with the pixels untouched.

You take a photo of the bike you’re selling, in your hallway. You crop out the coat rack, brighten it a little and attach it to an email to a buyer you’ve never met. The buyer sees a bike. The file they receive says, in a block of data no photo viewer shows by default, the latitude and longitude of your hallway to a fraction of a second of arc, the date and time to the hundredth of a second with your time zone, the make, model and serial number of your phone, the editing app and when you used it, and, depending on the editor, a small picture of the hallway before you cropped it.

None of that is a bug. It is metadata, written on purpose so that photo libraries can put pictures on a map, sort them by date and tell you which lens you used. The trouble is that it travels with the file. This post takes that block apart: what a phone writes, how exact the location really is, why a cropped photo can still hold what you cropped, how serial numbers tie photos together, which apps and services remove it for you, and how Remove Photo Location & EXIF Data strips it without re-compressing the picture.

What a phone writes into every photo

Most of it lives in Exif, a format from the 1990s that borrows the structure of TIFF files: a short header that says whether numbers are stored little-endian or big-endian, then directories (IFDs) of numbered tags, each with a type and a value. A typical photo has five of them:

  • IFD0, the main image: camera make and model, the orientation flag, the software, the date modified, and fields for artist and copyright that some cameras fill in for you once you have typed your name into their settings.
  • The Exif directory: the moment the shutter fired (DateTimeOriginal), its time zone and fraction of a second, every exposure setting, the lens, and since Exif 2.3 the camera owner’s name and the serial numbers of the body and lens.
  • The GPS directory: latitude, longitude, altitude, the compass direction the camera faced, speed, the receiver’s own date and time, and on newer phones its estimate of its own accuracy.
  • An interoperability directory, harmless housekeeping.
  • IFD1, the thumbnail: a complete small JPEG embedded in the file, typically 160 × 120 pixels, so galleries don’t have to decode the full picture to show a preview.

Next to Exif there is often XMP, an XML packet invented by Adobe that editors use for their own records: copies of the Exif fields, keywords, the creator, a document ID that survives every save, and an editing history listing which program saved the file and when. Older newsroom software adds IPTC fields (author, caption, city, country) inside a Photoshop block. PNG files carry text chunks, WebP files have Exif and XMP chunks, and HEIC and AVIF files store Exif and XMP as items inside their container. Cameras also add a maker note, a manufacturer-specific blob that nobody outside the manufacturer fully documents and that can hold yet more serial numbers.

How exact is the location?

Exif stores latitude and longitude as three fractions: degrees, minutes and seconds, each written as a numerator and a denominator. A phone that writes seconds over 100, as is common, records positions in steps of a hundredth of a second of arc. One second of latitude is about 30.9 metres, so a hundredth is about 31 centimetres. The precision of the number is far finer than the precision of the measurement; what limits it is the GPS fix, which outdoors on a phone is typically within a few metres. Some phones write that estimate too, in GPSHPositioningError.

A few metres is enough to identify a house, and in a block of flats the altitude can narrow it to a floor. The direction the camera faced, also in the GPS block, says which window you were standing at.

The best-known demonstration was in December 2012. Vice published a photo of John McAfee, then wanted for questioning in Belize, alongside an interview. Readers pulled the GPS coordinates out of the photo’s metadata and found that it had been taken in Guatemala, as NPR and PetaPixel reported at the time. McAfee first claimed he had faked the data, then confirmed he was in Guatemala.

The thumbnail that survives cropping

The thumbnail in IFD1 is made by the camera when it takes the picture. When you later crop or retouch the photo, the editor rewrites the main image. Whether it also rewrites the thumbnail depends on the editor. Some regenerate it, some delete it, and some copy the original Exif block across untouched, thumbnail and all. The result is a file whose main image shows your face and whose thumbnail shows the whole room.

This has been known publicly since 2003, when people found that cropped photos the TV presenter Cat Schwartz had posted on her blog still carried the uncropped originals as Exif thumbnails; her Wikipedia entry and a 2005 security advisory on the subject both cite it.

A related problem turned up in 2023, nicknamed “aCropalypse”: the screenshot editor on Google’s Pixel phones, and then Windows’ Snipping Tool, wrote a cropped image over the old file without shortening it, so the bytes of the uncropped original sat after the end of the new image, where viewers ignore them but anyone can recover them (Bruce Schneier’s write-up). That isn’t metadata in the strict sense, but it is hidden data that travels with the file, and a cleaner should cut it off.

A serial number doesn’t say where you are. It says that two photos came from the same camera. Post one photo under your own name and another anonymously, and if both carry the same BodySerialNumber, they are linked. The same goes for the lens serial, for the ImageUniqueID some cameras write, and for XMP’s document IDs, which an editor keeps across every save and export of the same picture.

That matters most when one camera serves two lives: a source sending a journalist photos from the same phone that took their holiday pictures, or a pseudonymous account posting from the camera its owner also uses under their real name.

Which apps and services remove it

Some do, some only partly, and the details are easy to get wrong. A few you can check in the services’ own documentation:

  • iPhone: Apple’s Personal Safety guide describes turning location off when sharing: in Photos, tap Share, then Options, then turn off Location (Apple Support). It applies to that share; it is not a permanent setting. The same guide shows how to stop the Camera recording location at all, under Location Services.
  • Google Photos: a setting, “Remove geo location in items shared by link”, removes location from photos you share by link. Google’s help adds that photos shared some other way, for example downloaded and emailed, can still include their location (Google Photos Help).
  • Flickr: shows Exif on photo pages by design, with a privacy setting to hide it (Flickr Help). Hiding is not deleting: Flickr’s privacy policy says it receives and stores Exif data unless it was removed before upload.

Whether a social network removes metadata from what it shows, and what it keeps for itself, isn’t something you can see from outside, and it changes over time. What reliably keeps everything is sending the file rather than a picture: email attachments, cloud storage links, “send as document” in chat apps, and marketplace or forum uploads that serve the original. Cleaning the file before it leaves means you don’t have to know which kind of service is at the other end.

A worked example: one phone photo, taken apart

The tool’s test suite uses an invented phone photo: an 80 × 120 pixel JPEG, cropped from a wider 160 × 120 scene, made with made-up camera and owner names. Here is what the cleaner’s parser reads out of it, exactly as the page shows it.

What the page reportsValue in the file
Location47.376900, 8.541700 (47°22′36.8″N 8°32′30.1″E), with a link to that spot on Google Maps
Altitude, direction, accuracy408.5 m above sea level, facing 123.4° from true north (SE), GPS accuracy ±4.7 m
Place namesCity: Zurich (in XMP and IPTC), Country: Switzerland (IPTC)
Taken2026-05-17 14:32:08.042 (UTC+02:00); the GPS clock says 12:32:08 UTC
Camera and serialsFabrikam FX-7 Pro, body serial FX7-000123456 (in Exif and XMP), lens serial LN-000987, an XMP document ID
NamesArtist: Jordan Sample (Exif, XMP and IPTC), copyright notice
SoftwareFirmware 4.2.1, then “saved with Example Photo Editor 3.1 (Windows) on 2026-05-18 09:05:41+02:00”
Hidden imageAn 80 × 60 Exif thumbnail of the whole scene, including the red door the crop removed

The location appears in three places and the serial number in two, which is typical: editors copy Exif fields into XMP, so removing one block is not enough. By size, the file is 5,873 bytes. The Exif block is 2,399 bytes, of which 1,209 are the thumbnail; XMP is 1,494 bytes; the IPTC block 124; a JPEG comment 25. The colour profile (606 bytes) and the JFIF header (18) are what the picture needs. The image data itself is about 1.2 KB, because the example is tiny; in a real 12-megapixel photo the proportions flip and the metadata is a few dozen kilobytes in several megabytes.

With Everything selected, the clean copy is 1,867 bytes: the start-of-image marker, the JFIF header, a new 36-byte Exif block holding only the orientation, the colour profile, and the image data copied byte for byte. The photo is stored sideways with an orientation of 6 (“rotate 90° clockwise to view”), which is why that one value stays. With Location only, the copy is 5,845 bytes: the GPS directory is gone, the XMP city and coordinates are gone, IPTC’s city and country are gone, and everything else, serial numbers included, is where it was.

How the cleaner removes it without touching the pixels

The common way to strip metadata is to draw the photo onto a canvas and save a new JPEG. That works, but it decodes and re-compresses the image, which loses quality, changes the file’s colours if the profile is dropped, and turns a portrait photo sideways if the orientation flag isn’t carried over. The tool works on the file’s structure instead:

  • JPEG is a sequence of segments. The cleaner walks them up to the image data and keeps only what the decoder needs: the JFIF header, the colour profile, the Adobe colour marker, the quantisation and Huffman tables, the frame header and the compressed scans, copied as they are. Exif, XMP, IPTC, comments and other application segments are left out, and so is anything after the end-of-image marker: extra images such as depth maps, and leftovers of the aCropalypse kind.
  • PNG is a sequence of chunks. Text, Exif, the last-modified time and unknown private chunks are dropped; the image, palette, transparency, colour and animation chunks stay. Each chunk keeps its CRC, and a new orientation chunk gets a fresh one.
  • WebP is a RIFF file. The Exif and XMP chunks go, and the header’s size and feature flags are corrected to match what is left.
  • HEIC and AVIF point to everything by byte offset, so removing bytes would break them. The cleaner finds the Exif and XMP items through the file’s item list and item locations and overwrites them in place with empty ones of the same size. Nothing moves.

If the photo has an orientation other than “normal”, the clean copy gets a minimal Exif block with that one tag, because without it the photo would show sideways, and the page says so. Location only works in place: it removes the GPS directory’s entry from the Exif and blanks the directory, so every other offset (including the maker note’s, which often breaks when Exif is rebuilt) stays valid, and pads edited XMP back to its original length.

Then it checks its own work. The clean copy is parsed again with the same reader that produced the report, and the page shows what is left, before the download button appears. The test suite also checks that the image data of every clean copy is byte-identical to the original’s.

Limits and tips

  • Metadata isn’t the only giveaway. A street sign, a view from a window, a reflection or a parcel label in the photo itself is untouched. Google’s own help makes the same point about landmarks.
  • Rename the file. Phone file names like IMG_20260517_143208.jpg carry the date and time. The download is named after the original, with -clean added.
  • Turn off location in the camera if you rarely want it. On an iPhone it is under Privacy & Security, Location Services, Camera; Android camera apps have a similar setting.
  • Check what you receive, too. The same card that tells you what your photo gives away tells you where and when someone else’s photo claims to have been taken. Claims, because metadata can be edited.
  • Supported formats are JPEG, PNG, WebP, HEIC and AVIF. TIFF and camera RAW files aren’t. A HEIC’s built-in preview images (smaller copies of the photo itself) are kept. Maker notes are listed but not decoded, so in Location only mode anything a manufacturer stored there stays.
  • Pasted screenshots are usually fresh copies made by the operating system, with little or no metadata. To check a photo, choose the file.

Try it on the last photo you sent someone; the card is usually more talkative than people expect.

Try it now, freeRemove Photo Location & EXIF DataSee what a photo’s hidden metadata gives away (GPS location, camera serial number, the time it was taken) and download a clean copy, with the pixels untouched.

More from the blog

All posts →