Skip to content
Back to Blog
device-usecase-privacy

Photos Leak Your Location: How to Strip EXIF Before Sharing

2026-05-17 9 min read

The Hidden Passenger in Every Photo You Take

Every photo your smartphone takes carries a silent stowaway: a block of metadata called EXIF data (Exchangeable Image File Format). This isn't a conspiracy theory or an edge case — it's a technical standard baked into the JPEG and TIFF formats since 1995, and it's present in virtually every photo taken by a modern camera or phone. EXIF data records the camera make and model, lens focal length, aperture, shutter speed, ISO, timestamp, and — if your device has GPS enabled — the precise latitude and longitude where the photo was taken. Not a rough neighborhood. Not a city. Coordinates accurate to within a few meters. To see this yourself on a Windows PC, right-click any photo, choose Properties, then click the Details tab. Scroll down to GPS and you'll find latitude, longitude, and sometimes altitude. On a Mac, open the photo in Preview, go to Tools > Show Inspector, and click the GPS tab. You'll see a map pin dropped on your exact location. A photo posted to a personal blog, emailed to a stranger, or uploaded to a forum that doesn't strip metadata will hand anyone who downloads it a precise location. That could be your home address if you snapped a photo indoors, your child's school if you photographed a school event, or your daily commute route if you share photos regularly over time. Aggregating multiple EXIF-tagged photos from the same person can reconstruct a detailed map of their life. This is not theoretical — journalists, stalkers, and security researchers have all demonstrated it in documented cases.

What Exactly Is Stored — and How Much of It Matters

EXIF is only one slice of image metadata. Photos can also carry IPTC data (used by news agencies to embed copyright and caption information) and XMP data (Adobe's extensible metadata format). For privacy purposes, EXIF is the most dangerous because it contains GPS coordinates, but the others can expose information you might not want public either. A typical smartphone JPEG from an iPhone 15 Pro or a Samsung Galaxy S24 can contain 50 or more distinct EXIF fields. The ones that matter most for privacy are: - **GPSLatitude / GPSLongitude**: The coordinates. These are the critical ones. - **GPSAltitude**: Useful for determining whether you're on a specific floor of a building. - **GPSTimestamp**: The exact UTC time of capture, separate from the local timestamp. - **Make / Model**: Identifies your device. Combined with serial number fields, this can fingerprint your specific phone. - **DateTimeOriginal**: The local time the photo was taken. - **Software**: The firmware or app version, which can reveal OS version. Fields like FNumber, ExposureTime, and FocalLength are harmless for privacy — they describe the optical settings, not you. But GPS fields, device identifiers, and timestamps together create a profile. A photo taken at 7:43 AM at coordinates 40.7128° N, 74.0060° W on a Tuesday, every Tuesday for six weeks, tells a story. One important nuance: not all photos have GPS data. If you've disabled location services for your camera app, or you're using an older point-and-shoot without GPS, the GPS fields will simply be absent. But the device model and timestamp will still be there.

Which Platforms Strip It For You (and Which Don't)

Some major platforms remove EXIF data automatically when you upload photos, which provides a degree of protection — but you shouldn't rely on this as your only defense, because the behavior varies, changes without notice, and doesn't protect you in every context. **Platforms that strip GPS EXIF on upload (as of 2025):** - Instagram removes GPS data from photos before they're served to viewers. - Facebook strips location metadata from uploaded images. - Twitter/X removes EXIF data from photos. - WhatsApp compresses images and removes metadata in the process. **Platforms and contexts that may NOT strip EXIF:** - Email attachments: Gmail, Outlook, and most email clients send photos exactly as attached. No stripping occurs. - Dropbox, Google Drive, and OneDrive: These are file storage services, not image processors. They preserve the original file, EXIF intact. - Direct file sharing (AirDrop, Bluetooth, USB): The file is copied verbatim. - Personal websites and blogs: Unless your CMS explicitly strips metadata (some WordPress plugins do, most don't by default), uploaded photos retain their EXIF data. - Discord: As of 2024, Discord does not strip EXIF from uploaded images in most cases. - Forums and imageboards: Behavior varies wildly. Many serve the original file. The safest assumption is that unless you've verified a platform strips metadata, it doesn't. Stripping before upload takes the decision out of the platform's hands entirely.

How to Strip EXIF Yourself: Device-Level Options

The most reliable approach is removing metadata before the file ever leaves your device or computer. Here are the concrete methods by platform. **iPhone (iOS 17+):** Go to Settings > Privacy & Security > Location Services > Camera and set it to Never. This stops new photos from getting GPS tags. For existing photos, iOS doesn't have a built-in batch EXIF stripper, but you can share a photo via the Photos app, tap the share sheet, and toggle off Location before sending — this strips GPS from that specific share instance without modifying the original file. **Android (varies by manufacturer):** On Samsung Galaxy devices running One UI 6, open the Camera app, tap the settings gear, and disable Location Tags. On Pixel phones running Android 14, go to Camera settings and turn off Save location. Again, this prevents future tagging but doesn't clean existing files. **Windows 11:** Right-click a photo, select Properties > Details > Remove Properties and Personal Information. Choose either to create a sanitized copy or remove properties from the original. You can select all properties or specific ones. This works file-by-file and is fine for occasional use, but tedious for batches. **macOS (Sonoma/Sequoia):** Preview doesn't offer a built-in metadata removal tool. The Photos app can export without location data: select photos, go to File > Export > Export [N] Photos, and uncheck Location Information. This creates clean copies. **ExifTool (all platforms, free, command-line):** Phil Harvey's ExifTool is the gold standard for power users. The command `exiftool -all= photo.jpg` strips all metadata from a file. For a whole folder: `exiftool -all= -r ./photos/`. It's free, open-source, and handles hundreds of formats. The learning curve is real, but the documentation is thorough.

Using CocoConvert to Strip EXIF Before Sharing

If command-line tools aren't your preference and you need a quick, browser-based solution, CocoConvert's image conversion tool removes EXIF metadata as part of the conversion process. When you convert a JPEG to JPEG (or to PNG, WebP, or another format), the output file is written fresh — it doesn't carry the original EXIF block forward. Here's how to use it specifically for metadata removal: 1. Go to CocoConvert's image converter and upload your photo or batch of photos. 2. Set the output format to JPEG (or WebP if you prefer smaller files for web use). 3. Convert. The output files will not contain the original GPS coordinates, device identifiers, or other EXIF fields. This works because the conversion process decodes the image data and re-encodes it into a new container — the metadata from the source file isn't carried over unless the tool is explicitly designed to preserve it, and CocoConvert's converter does not preserve EXIF. A few honest caveats about this approach: CocoConvert is a general-purpose file conversion service, not a dedicated metadata management tool. It won't let you selectively keep some EXIF fields (like copyright or color profile) while removing others. If you need that level of control — for example, you're a photographer who wants to retain ICC color profiles but strip GPS — ExifTool or a dedicated tool like ExifPurge is the better choice. CocoConvert also processes files through its servers, so if you're working with sensitive images beyond just location privacy concerns, a local tool may be more appropriate. For most people sharing everyday photos, the browser-based conversion approach is fast, free, and effective.

Building a Consistent Habit: A Practical Workflow

Knowing the risk is one thing. Building a habit that actually prevents metadata leaks is another. The goal is to make the safe behavior the path of least resistance, not an extra step you remember to do sometimes. **For casual social sharing:** Turn off location services for your camera app at the OS level right now. On iPhone: Settings > Privacy & Security > Location Services > Camera > Never. On Android: Camera settings > Location tags > Off. This is the single highest-leverage action. You lose nothing meaningful — your photos app can still organize by date, and you can manually tag locations in your photo library if you want them for personal reference without embedding them in the file. **For email attachments:** Make it a rule to convert photos before attaching them to emails going outside your household. Drag the photo into CocoConvert, convert to JPEG, attach the output. Takes 30 seconds and becomes automatic after a few weeks. **For blog or website uploads:** If you use WordPress, install the Exif Remove plugin or Enable Media Replace with metadata stripping. If you use a static site generator, add an image processing step that strips metadata. If you use Squarespace or Wix, test by uploading a photo and downloading it again, then checking the EXIF — behavior varies by plan and update. **For sensitive situations:** If you're sharing photos in contexts where your location genuinely needs to be protected — documenting workplace issues, sharing images in activist or legal contexts, or communicating with people you don't fully trust — don't rely on any single method. Strip metadata locally with ExifTool, then convert with a tool like CocoConvert as a second pass, then verify the output using a free EXIF viewer like Jeffrey's Exif Viewer (exifdata.com) before sending. Verification is underrated. It takes 10 seconds to drag a file into an EXIF viewer and confirm the GPS fields are gone. Make it the last step every time the stakes are high.

What Stripping EXIF Doesn't Protect Against

Metadata removal is a meaningful privacy step, but it's not a complete privacy solution, and overselling it would be dishonest. **Visual content is still there.** Stripping EXIF doesn't blur your face, remove a street sign in the background, or hide the distinctive mural on the wall behind you. A photo taken in front of your house with the house number visible is still a photo of your house, regardless of whether GPS coordinates are embedded. Before sharing any photo, look at what's actually in the frame. **Platform metadata is separate from file metadata.** When you upload a photo to Instagram, Instagram knows your IP address, the time of upload, and your account history — none of which is in the EXIF. Stripping EXIF doesn't make you anonymous to the platform itself. **Some platforms re-add metadata.** Certain services embed their own metadata into images when you download them, including identifiers that can be traced back to your account. This is a known practice on some stock photo and social platforms as a watermarking mechanism. **AI-based geolocation is improving.** Researchers have demonstrated that machine learning models can geolocate photos based purely on visual content — sky color, vegetation, architectural style, road markings. A 2023 paper from ETH Zurich showed a model that could geolocate street-level photos to within 25 kilometers 40% of the time with no metadata at all. This is still imprecise for most purposes, but it's a reminder that EXIF is one layer of a larger picture. Stripping EXIF is a concrete, achievable step that removes a specific and well-documented risk. Do it consistently. But treat it as one layer of a broader approach to what you share, with whom, and on which platforms — not as a complete solution.