Skip to content
PrivateAI
← Back to Home
how to

How to Strip Metadata From Photos Before Sharing Them

7 min readBy PrivateAI Team

Every photo you take with a smartphone contains invisible data that tells anyone who examines it exactly where you were, when you were there, what device you used, and sometimes even the direction you were facing. This data — called EXIF metadata — is embedded in every image file by default.

When you send a photo directly to someone via email, text (non-iMessage), AirDrop, or upload it to certain platforms, the metadata travels with it. That selfie you sent includes your GPS coordinates accurate to within a few meters. The photo of your kid's first day of school reveals your home address. The picture of your home office setup tells someone the make and model of your phone and the exact time the photo was taken.

Here is how to check what your photos reveal and how to strip it all out before sharing.

What Metadata Your Photos Contain

Take any photo with your smartphone right now and examine its EXIF data. You will likely find:

  • GPS coordinates (latitude and longitude, accurate to 5-10 meters)
  • Date and time (exact second the photo was taken)
  • Device make and model (e.g., "iPhone 16 Pro Max" or "Samsung Galaxy S25 Ultra")
  • Camera settings (aperture, shutter speed, ISO, focal length)
  • Lens information (which lens was used on multi-camera phones)
  • Software version (iOS version or Android version)
  • Unique device identifier (some devices embed serial numbers or unique camera IDs)
  • Altitude (elevation above sea level)
  • Direction (compass heading the camera was pointing)
  • Thumbnail (a small preview that may retain cropped-out content)

That last point is particularly dangerous: if you crop a photo to remove something sensitive and share the file without stripping metadata, the original uncropped thumbnail may still be embedded in the EXIF data.

How to View Metadata on Your Photos

On iPhone

  1. Open the Photos app
  2. Open any photo
  3. Tap the "i" (info) button or swipe up on the photo
  4. You will see the date, time, location on a map, and camera details

This shows you a subset of the metadata. For the full EXIF data, use the Shortcuts app (see below) or a dedicated app like Metapho.

On Android

  1. Open Google Photos or your gallery app
  2. Open any photo
  3. Tap the three-dot menu → Details (or swipe up)
  4. You will see location, date, device info, and file details

On Mac

  1. Right-click any image file → Get Info
  2. Expand "More Info" to see EXIF data
  3. For complete data, open the image in Preview → Tools → Show Inspector → EXIF tab

On Windows

  1. Right-click any image file → Properties
  2. Click the "Details" tab
  3. All EXIF metadata is listed here

Online (for checking before sharing)

Upload a photo to exifdata.com or jimpl.com to see the complete metadata in a readable format. Note: Only use these for non-sensitive photos — you are uploading the image to a third-party server.

How to Strip Metadata: Every Platform and Device

iPhone (Built-in Method)

Before sharing:

  1. Open the photo in the Photos app
  2. Tap Share
  3. Tap "Options" at the top of the share sheet
  4. Toggle OFF "Location" and "All Photos Data"
  5. Now share via your preferred method

This strips GPS data and most EXIF data from the shared copy. The original on your phone retains its metadata.

Permanently strip location from all photos: Settings → Privacy & Security → Location Services → Camera → set to "Never." This prevents location data from being recorded in the first place. You will not have location-organized photo albums, but no photo will contain GPS coordinates.

Android

Before sharing (Google Photos):

  1. Open the photo
  2. Tap Share
  3. Google Photos automatically strips location data when sharing with non-Google apps (check Settings → Google Photos → Sharing → Remove geolocation)

Permanently disable location in photos: Settings → Apps → Camera → Permissions → Location → set to "Don't Allow." This prevents the camera from recording GPS data.

For complete metadata removal: Use the free app "Scrambled Exif" from the Play Store. When you share a photo through Scrambled Exif, it strips all EXIF data before passing the file to the recipient.

Mac

Using Preview (built-in):

Preview does not have a metadata removal feature. Use the following Terminal command instead:

Open Terminal and use the sips command:

```

sips --deleteProperty all /path/to/photo.jpg

```

For batch processing: ExifTool is the most powerful option. Install via Homebrew:

```

brew install exiftool

```

Strip all metadata from a single file:

```

exiftool -all= photo.jpg

```

Strip all metadata from every image in a folder:

```

exiftool -all= /path/to/folder/*

```

ExifTool creates backup files by default (original filename with _original appended). Delete these after confirming the stripped files look correct.

Windows

Built-in method:

  1. Right-click the image → Properties → Details tab
  2. Click "Remove Properties and Personal Information" at the bottom
  3. Choose "Create a copy with all possible properties removed" or select specific properties to remove
  4. Click OK

This is the simplest method and works well for individual files.

For batch processing: Install ExifTool for Windows from exiftool.org. The command-line syntax is the same as Mac.

Linux

Install ExifTool:

```

sudo apt install libimage-exiftool-perl

```

Strip all metadata:

```

exiftool -all= photo.jpg

```

Alternatively, use mat2 (Metadata Anonymisation Toolkit v2), which handles multiple file types including images, PDFs, and office documents:

```

sudo apt install mat2

mat2 photo.jpg

```

Which Platforms Strip Metadata Automatically?

Not all platforms are equal when it comes to handling your photo metadata:

Strip metadata on upload (safer):

  • Twitter/X — strips EXIF data including GPS
  • Facebook — strips EXIF data (but Facebook retains and uses the data internally)
  • Instagram — strips EXIF data from the publicly visible file
  • Signal — strips metadata from photos sent in-app

Do NOT strip metadata (your GPS coordinates travel with the file):

  • Email attachments — metadata is fully preserved
  • SMS/MMS — metadata is often preserved
  • AirDrop — metadata is fully preserved
  • Direct file sharing (USB, cloud storage links) — metadata is fully preserved
  • Telegram (default) — preserves metadata unless you send as a compressed photo
  • Discord — preserves metadata on uploaded files
  • Slack — preserves metadata on uploaded files

The key distinction: Social media platforms strip metadata from the public-facing file because they are protecting themselves from liability. But they often retain the data on their servers. Messaging apps and file sharing methods typically pass the file as-is.

Private cloud storage that respects your data

Proton Drive encrypts your files on-device before they ever reach the cloud. Share photos and documents without exposing your data to any third party.

Learn More

The Thumbnail Trap

When you crop a photo to remove sensitive information — a license plate, an address, a person — the cropped-out content may still exist in the EXIF thumbnail. EXIF thumbnails are small preview images embedded in the metadata that are generated when the photo is taken or first edited. Not all editing apps update the thumbnail when you crop.

To be safe: After cropping a sensitive photo, strip all metadata (including the thumbnail) using one of the methods above before sharing. ExifTool's -all= flag removes the embedded thumbnail along with all other metadata.

Automating Metadata Removal

If you regularly share photos and want to strip metadata by default:

iPhone Shortcut: Create a Shortcut that strips EXIF data and saves the clean copy. The Shortcuts app has a "Convert Image" action that, when configured to output JPEG without metadata, produces a clean file.

Mac Automator/Folder Action: Create a Folder Action that runs ExifTool on every image dropped into a specific folder. This creates a "clean photos" workflow — drop originals in, get metadata-stripped copies out.

Android Automation: Use Scrambled Exif as your default sharing intermediary, or use Tasker to automatically strip metadata from photos moved to a specific folder.

Key Takeaways

  • Every smartphone photo contains GPS coordinates, timestamps, and device info by default
  • Email, AirDrop, text messages, and most messaging apps preserve full metadata
  • Social media platforms strip metadata from public files but may retain it internally
  • iPhone: use the Share sheet "Options" toggle to strip location before sharing
  • Android: disable camera location permission or use Scrambled Exif
  • Desktop: ExifTool is the most powerful option for stripping all metadata
  • Always strip metadata after cropping sensitive content — the EXIF thumbnail may contain the original

Protect your digital privacy

Weekly guides on metadata, encryption, and digital self-defense — from PrivateAI.

Related Articles:

Affiliate Disclosure: This article may contain affiliate links. If you make a purchase through these links, we may earn a small commission at no extra cost to you. We only recommend products we genuinely believe in. This helps support our work and allows us to continue providing free content.