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 some obscure technical detail; it's a standard baked into JPEG and TIFF files since 1995. It's in virtually every photo you take with a modern camera or phone. This EXIF data records the camera make and model, lens settings, shutter speed, and timestamp. More importantly, if your device's GPS is on, it also records the precise latitude and longitude where the photo was taken. We're not talking about a rough neighborhood or a city. We're talking about coordinates accurate to within a few meters. See for yourself. On a Windows PC, right-click any photo, choose Properties, then click the Details tab. Scroll down to GPS and you'll find the coordinates. On a Mac, open a photo in Preview, go to Tools > Show Inspector, and click the GPS tab to see a map pin dropped on the exact spot. A photo posted to a blog, emailed to a stranger, or uploaded to a forum that doesn't strip metadata hands over a precise location to anyone who downloads it. That could be your home address from a quick indoor snapshot, your child's school, or your daily walking route mapped out over time. When you aggregate multiple EXIF-tagged photos, you can build a detailed picture of someone's life. This isn't a hypothetical risk; it's a documented reality used by journalists, stalkers, and security researchers.

What Exactly Is Stored — and How Much of It Matters

EXIF is just one kind of image metadata. Photos can also contain IPTC data for news agency captions and XMP data from Adobe software. But for privacy, EXIF is the real danger because it's the one that can hold your GPS coordinates. The others can still expose information, but location data is uniquely sensitive. A single JPEG from an iPhone 15 Pro or Samsung Galaxy S24 can have over 50 distinct EXIF fields. The ones that pose the biggest privacy threat are: - **GPSLatitude / GPSLongitude**: The coordinates. This is the smoking gun. - **GPSAltitude**: Can help pinpoint which floor of a building you're on. - **GPSTimestamp**: The exact UTC time of the shot, which is distinct from the local timestamp. - **Make / Model**: Identifies your specific device, sometimes down to the serial number. - **DateTimeOriginal**: The local time and date the photo was created. - **Software**: The firmware or app version, potentially revealing your OS version. Fields like FNumber, ExposureTime, and FocalLength are harmless; they just describe camera settings. But the combination of GPS, device IDs, and timestamps is potent. A photo taken at 7:43 AM at coordinates 40.7128° N, 74.0060° W every Tuesday for six weeks tells a clear story about your routine. Of course, GPS data isn't always there. If you've disabled location services for your camera app or you're using an older camera without GPS, those fields will be empty. The device model and timestamp, however, will almost certainly still be present.

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

You might think the big social media sites have you covered. They often do, but relying on them is a bad habit, as policies change without warning and don't cover every way you might share a file. **Platforms that strip GPS EXIF on upload (as of 2025):** - Instagram removes GPS data from photos it serves to viewers. - Facebook strips location metadata from uploaded images. - Twitter/X removes EXIF data from photos. - WhatsApp heavily compresses images, which removes metadata in the process. **Platforms and contexts that likely do NOT strip EXIF:** - Email attachments: Sending a photo via Gmail or Outlook is like handing someone the original file. No stripping occurs. - Dropbox, Google Drive, OneDrive: These are file lockers, not image processors. They store the file exactly as you uploaded it, EXIF and all. - Direct file sharing (AirDrop, Bluetooth, USB): These methods create a verbatim copy of the file. - Personal websites and blogs: Unless your CMS has a plugin that explicitly strips metadata (most don't by default), the original EXIF data remains. - Discord: As of 2024, Discord does not strip EXIF from image uploads. - Forums and imageboards: It's a total crapshoot. Many serve the original, untouched file. The only safe assumption is that a platform does *not* strip metadata unless you have personally verified it. Stripping the data yourself before you upload takes the platform's policy out of the equation entirely.

How to Strip EXIF Yourself: Device-Level Options

The only way to be certain your data is gone is to remove it yourself before the file ever leaves your computer. Here's how to do it on every major platform. **iPhone (iOS 17+):** To prevent future location tagging, go to Settings > Privacy & Security > Location Services > Camera and set it to Never. For existing photos, iOS has no batch removal tool. You can share a single photo from the Photos app, tap the share sheet, and toggle off Location before sending. This only strips GPS for that one share, it doesn't change the original file. **Android (varies by manufacturer):** On a Samsung Galaxy with One UI 6, open the Camera app, tap the settings gear, and disable Location Tags. On a Pixel with Android 14, go to Camera settings and turn off Save location. This only affects new photos, not your existing library. **Windows 11:** You can right-click a photo, select Properties > Details > Remove Properties and Personal Information. This gives you the option to create a sanitized copy or modify the original. It works, but it's a file-by-file process that gets incredibly tedious for more than one or two images. **macOS (Sonoma/Sequoia):** Frustratingly, the built-in Preview app can't remove metadata. You have to use the Photos app: select your images, go to File > Export > Export [N] Photos, and make sure to uncheck the Location Information box. This exports clean copies. **ExifTool (all platforms, free, command-line):** For anyone even slightly serious about this, Phil Harvey's ExifTool is the gold standard. The command `exiftool -all= photo.jpg` strips all metadata from a single file. To nuke it from a whole folder, use `exiftool -all= -r ./photos/`. Anyone who has spent time in a terminal will appreciate its raw power and comprehensive documentation. It's free, it's fast, and it just works.

Using CocoConvert to Strip EXIF Before Sharing

If the command line isn't your thing and you just need a fast, browser-based solution, you can use an image converter. CocoConvert's tool removes EXIF metadata automatically during the conversion process. When you convert a JPEG to another JPEG (or to a different format like PNG or WebP), the tool writes a completely new file, leaving the original EXIF block behind. Here’s the simple workflow for metadata removal: 1. Go to CocoConvert's image converter and upload your photo or photos. 2. Set the output format to JPEG. If you want smaller files for the web, WebP is also an excellent choice. 3. Click convert. The downloaded files will be free of the original GPS data, device info, and other EXIF fields. This method is effective because file conversion decodes the core image data and then re-encodes it into a new container. The metadata from the source file isn't part of this core data, so it simply isn't carried over. CocoConvert's process does not preserve EXIF. Now for some honest caveats. CocoConvert is a general-purpose file tool, not a specialist metadata editor. You can't selectively remove GPS while keeping other fields like copyright or color profiles. For that fine-grained control, you absolutely need a dedicated program like ExifTool or ExifPurge. Also, CocoConvert processes files on its servers. If your images are sensitive for reasons beyond location privacy, an offline, local tool is a better fit. But for most people wanting to safely share everyday photos, this browser-based approach is fast, effective, and free.

Building a Consistent Habit: A Practical Workflow

Knowing the risk is one thing; building a habit to prevent the leak is another. The goal is to make the safe choice the easy choice, not an extra chore you might forget. **For casual social sharing:** Do this now. Turn off location services for your camera at the OS level. On iPhone: Settings > Privacy & Security > Location Services > Camera > Never. On Android: Camera settings > Location tags > Off. This is the single most effective action you can take. You lose very little—your photos app can still organize by date, and you can always manually tag a location later for your own records without embedding it in the file itself. **For email attachments:** Make it a simple rule: never attach a photo directly from your camera roll to an external email. First, drag it into CocoConvert, convert to JPEG, and then attach the clean output file. It takes less than a minute and quickly becomes second nature. **For blog or website uploads:** If you run a WordPress site, install a plugin like Exif Remove. If you use a static site generator, build a metadata-stripping step into your image processing pipeline. For platforms like Squarespace or Wix, you have to test it yourself—upload a photo with EXIF data, download it again, and check if the data is still there. Their behavior can change. **For sensitive situations:** If you are sharing photos where your location must be protected—like documenting workplace issues, activism, or communicating with sources you don't fully trust—do not rely on a single tool. Your workflow should be layered: strip the metadata locally with ExifTool, run it through a converter like CocoConvert as a second pass, and then, before sending, verify the final file with a free online tool like Jeffrey's Exif Viewer (exifdata.com). Verification is the most underrated step. It takes ten seconds to drag a file into a viewer and confirm the GPS fields are gone. Make it the final check every single time the stakes are high.

What Stripping EXIF Doesn't Protect Against

Removing metadata is a critical privacy step, but let's be clear: it is not a magic invisibility cloak. Overselling it would be a disservice. **The visual content is still right there.** Stripping EXIF doesn't blur your face, a street sign in the background, or the unique mural on the wall behind you. A photo taken in front of your house with the number visible gives away your address just as surely as GPS coordinates do. Before you share, simply look at what's in the picture. **Platform metadata is separate.** When you upload a photo to Instagram, the platform sees your IP address, logs the time of upload, and connects it to your account history. None of that is stored in the file's EXIF data. Stripping metadata does not make you anonymous to the platform itself. **Some platforms add their own metadata back in.** When you download an image from certain services, they may embed new metadata, including tracking identifiers that can be traced back to your account. This is a known watermarking practice on some social and stock photo sites. **AI-based geolocation is getting scarily good.** Researchers have models that can geolocate photos from visual clues alone—sky color, architecture, road markings, and vegetation. A 2023 paper from ETH Zurich detailed a model that could place street-level photos within 25 kilometers 40% of the time with zero metadata. While still imprecise, it proves that EXIF is just one piece of a much larger puzzle. Think of stripping EXIF as basic digital hygiene. It removes a specific, documented, and significant risk. Do it consistently. But treat it as one component of a larger strategy for deciding what you share, and with whom—not as a complete solution.