DEV Community

Arhan Ahmad
Arhan Ahmad

Posted on

How to remove EXIF data from photos (and why you should before sharing)

Every photo you take with a smartphone embeds hidden metadata — the camera model, GPS coordinates, date and time, even the orientation you held the phone. This is called EXIF data, and most people don't know it's there.

Why you should care

When you share a photo online, that EXIF data goes with it unless you explicitly strip it. This means:

  • A photo taken at your home reveals your exact GPS coordinates
  • Product photos for your business leak the camera equipment you use
  • Screenshots of private conversations are timestamped and geotagged
  • Vacation photos posted in real-time show you're not home

What EXIF data typically contains

  • Camera make and model
  • GPS latitude and longitude
  • Date and time
  • Focal length, aperture, ISO, shutter speed
  • Flash settings
  • Image dimensions and orientation
  • Thumbnail (sometimes containing a smaller version of the image itself)

How to remove it

There are two approaches:

Option 1: Remove metadata only
This strips the EXIF, XMP, and IPTC data without re-encoding the image. No quality loss. File size actually decreases by removing the metadata.

Option 2: Re-save the image
Re-encoding the image creates a fresh file with no metadata. This is what happens when you use a compressor — the output file is clean.

The easiest way

ToolBox Image has a free EXIF viewer that shows all the hidden metadata in your photos, and every tool processes images client-side so your files never leave your device. Just drag your photo in and you'll see exactly what data is embedded.

All free. No sign-up. No uploads.

Top comments (0)