What EXIF data is hiding in your photos — and how to strip it
Most photos taken on a phone contain exact GPS coordinates. Stripping metadata takes one re-save through a decoder that does not copy it forward.
NoUpload engineering teamLast updated
Key facts
- A typical phone photo's EXIF includes GPS coordinates, a to-the-second timestamp, device model, lens and exposure settings, and often a thumbnail of the uncropped original.
- Email attachments, your own website and cloud photo libraries usually preserve metadata; most social platforms strip it from the served image, but that is a policy, not a guarantee.
- Decoding to pixels and re-encoding removes every metadata block, because none of it is read in the first place.
A photo straight off a phone is not just pixels. It is a small dossier: where you were, when, on which device, with what settings — and occasionally your name, if the camera software wrote it into the copyright field.
None of this is visible when you look at the picture. All of it travels with the file when you post it, email it or put it on a website.
What is actually in there
EXIF (Exchangeable Image File Format) is the container most of this metadata lives in. A typical iPhone or Android photo includes:
- GPS coordinates, altitude and, in many cases, a direction and speed reading from the moment of capture.
- Timestamp to the second, often with a time zone.
- Device make and model — enough to identify an iPhone 15 Pro versus a budget Android.
- Lens, focal length, aperture, ISO and shutter speed.
- Serial number on some cameras.
- Software and firmware version.
- A thumbnail of the original, sometimes including a version of the image you deliberately cropped out.
Two other blocks ride along:
- XMP — Adobe’s metadata format. Lightroom and Photoshop store edit history, ratings, keywords and sometimes user names here.
- IPTC — the news-industry block. Captions, bylines, copyright notices and contact details.
A screenshot typically has almost none of this. A photo exported from a social network usually has it stripped already.
The two risks people underestimate
The first is obvious: exact GPS coordinates of your home attached to a photo you posted publicly. This happened to enough people that most major social platforms now strip location data on upload — but “most” is doing real work in that sentence, and the guarantee changes whenever a platform changes its pipeline.
The second is less obvious: the embedded thumbnail. If you crop a photo to hide something at the edge, the original thumbnail can still be in the EXIF block at full scene width. Tools that display it are rare, but the data is there, and anyone can extract it with one command.
Where metadata survives
| Destination | What usually happens |
|---|---|
| Instagram, X, Facebook | Stripped from the served image in most cases |
| Stripped by default; “send as document” keeps the original file | |
| Email attachment | Preserved exactly |
| Your own website | Preserved unless your build pipeline removes it |
| Cloud photo library | Preserved, and searchable by the service |
| A CDN image optimiser | Varies — some strip it, some do not |
If the file leaves your device as a file, assume the metadata is intact.
How to remove it properly
There are three approaches, and only one is reliably complete.
1. Re-save through a decoder that does not copy metadata
This is the cleanest method: decode the image to raw pixels, then encode a new file from those pixels. Metadata cannot survive because it was never read.
That is also how the compressor on this site works. It decodes with the browser’s createImageBitmap, which applies EXIF orientation to the pixels and drops everything else, then encodes with mozjpeg, libwebp or oxipng. The result has correct orientation and no EXIF at all.
The one thing to watch: some pipelines handle “orientation” by writing an EXIF tag instead of rotating pixels. If the metadata is then stripped, the photo appears sideways. Decoding through createImageBitmap avoids this by baking rotation into the pixels before encoding.
2. Use a metadata-specific tool
exiftool -all= photo.jpg removes every tag in place. It is the gold standard on the command line and available for every desktop OS. ImageMagick can do it too: magick photo.jpg -strip out.jpg.
The advantage is that you can choose exactly what to keep — for example, preserving colour profile while removing GPS:
exiftool -gps:all= -xmp:geotag= -overwrite_original photo.jpg
3. Rely on the social platform
Convenient, and not a policy you control. It does not help for email, Slack, a company website, a job application attachment or a file sent to a client.
What you should keep
Not all metadata is bad. Two fields are worth preserving deliberately:
- ICC colour profile. Without it, a photo edited in a wide-gamut space can look muted on another screen. Most encoders keep it; a naive “strip everything” can drop it and change how the image renders.
- Copyright and credit. If you publish photos professionally, you probably want your name in the IPTC block. Which is exactly why blanket tools are risky: they remove the fields you wanted along with the ones you did not.
For web publishing, removing everything except the colour profile is the usual right answer.
A practical checklist before publishing a photo
- Decide whether the location is sensitive. For a landscape, who cares. For a photo taken at home, it matters.
- Pixel-render the image through your compressor or
exiftool -all=. - Confirm the result: run
exiftool photo.jpgand check the GPS field is gone. On macOS, Finder’s Get Info panel shows location for photos that have it. - Check orientation — if the photo was taken in portrait, make sure it still looks right.
- Only then upload.
Frequently asked questions
Does resizing remove EXIF?
No. Most resizers copy metadata forward into the new file. Only a decode-and-re-encode pipeline, or an explicit strip step, removes it.
Does converting to WebP remove EXIF?
It depends on the encoder. libwebp can copy EXIF and XMP if asked; many wrappers do not bother. Do not assume conversion equals removal.
Does cropping remove the GPS tag?
It removes the visible location content, not the tag. And the original thumbnail may still show what you cropped out. Strip metadata and re-encode.
Can I see who viewed my photo from the metadata?
No. EXIF is not a tracker and contains no viewing information. Claims otherwise are usually about tracking pixels in an email or a web page, which is a different mechanism entirely.
Is removing EXIF illegal?
No. Removing metadata from your own photo is normal and legal in every jurisdiction I am aware of. Removing a copyright notice from someone else’s photo to pass it off as yours is a different matter and is covered by copyright law, not by metadata rules.
Does this site keep a copy?
No. Metadata is removed inside your browser tab by re-encoding the pixels; nothing is uploaded, and there is no copy anywhere but on your disk. You can verify that in the Network tab — see how it works.
Questions this guide answers
Do screenshots contain EXIF data?
Almost none. Screenshots usually carry a colour profile and little else, because there was no camera sensor to record GPS, aperture or device serial numbers. Phone-camera photos are the ones that leak location.
Does Instagram remove EXIF and GPS data?
It usually strips metadata from the image it serves, but the original file you uploaded may still be stored by the service, and the behaviour can change. Strip metadata yourself before uploading if the location matters.
Does resizing or converting an image remove EXIF?
Usually yes, if the tool decodes to pixels and re-encodes. Tools that copy the metadata block forward preserve it. Converting to WebP or resizing through a canvas both drop EXIF, including the orientation tag, which is why the pixels must be rotated first.