Protecting Your Privacy: Image Metadata and EXIF Data

By the BoltQuickTools team | April 9, 2026 | Updated November 8, 2026 | 9 min read

A photo file contains more than pixels. It can carry a block of metadata with GPS coordinates, the device make and model, the exact time the photo was taken, and on many dedicated cameras a serial number. If you share the original file, anyone who downloads it can read that information with free software.

What Is EXIF Data?

EXIF stands for Exchangeable Image File Format. It is a standard for embedding metadata in image files, most commonly JPEG and TIFF, and it is also used in HEIC, the default photo format on recent iPhones, and in WebP. This metadata travels with the file unless something removes it.

The EXIF standard was originally designed for photography workflows. It lets photographers and software know the camera settings used for each shot, which is genuinely useful for learning and post-processing. The privacy problem is that the standard also includes fields for location, device identification, and other personally revealing information.

What Metadata Reveals

Here is an illustrative example of what EXIF data can contain (the values are made up). You can check your own photos with the EXIF Viewer:

GPS Latitude:          37.7749 N
GPS Longitude:         122.4194 W
GPS Altitude:          52 meters

Camera Make:           Apple
Camera Model:          iPhone 15 Pro
Lens:                  iPhone 15 Pro back triple camera 6.765mm f/1.78
Software:              17.4.1

Date/Time Original:    2026:03:15 14:23:07
Date/Time Digitized:   2026:03:15 14:23:07

Image Width:           4032
Image Height:          3024
Color Space:           sRGB
Flash:                 No flash
ISO:                   50
Exposure Time:         1/2500
F-Number:              f/1.78
Focal Length:           6.765 mm

Unique Image ID:       a1b2c3d4e5f6...

GPS Coordinates

This is usually the most sensitive piece of metadata. If location access is enabled for your camera app, photos are tagged with latitude, longitude, and often altitude. The coordinates are often precise enough to identify a building, so a photo taken at home can reveal your address.

Camera and Device Identification

The make and model are almost always recorded, and many dedicated cameras also write a body serial number. Phones generally do not write a serial number to EXIF. Where a serial number is present, it can link photos taken by the same device, including photos posted under different accounts.

Timestamps

The date and time fields record when the photo was taken, not when it was uploaded or modified. This can reveal your schedule, your timezone, and your whereabouts at specific times.

Lens and Camera Settings

These are less sensitive, but an unusual lens or camera can narrow down who took a photo.

What the Risks Look Like

The best-known example is from December 2012, when Vice published a photo of John McAfee while he was avoiding police in Belize. The file still held GPS coordinates that placed him in Guatemala, and he was arrested there days later. More ordinary risks follow the same pattern:

How Social Media Handles EXIF

Platforms handle metadata differently, and they change their behavior without notice. The list below reflects commonly documented behavior, so treat it as a starting point and test a platform you depend on: upload a photo, download it, and check the result.

Platforms that strip EXIF data:

Platforms that may preserve EXIF data:

The safe assumption: if you are not certain a platform strips metadata, assume it does not.

Checking Your Photos for Metadata

The BoltQuickTools EXIF Viewer lets you drop in an image to see its metadata. It reads the file with JavaScript in your browser and does not upload it. The page itself still loads the site's usual analytics and ad scripts, but your image is not sent to them.

From the command line, you can also use ExifTool:

# View all metadata
exiftool photo.jpg

# View only GPS data
exiftool -gps:all photo.jpg

# View in a compact format
exiftool -s -G photo.jpg

Key things to look for:

  1. GPS coordinates: Any GPSLatitude or GPSLongitude fields.
  2. Device identifiers: SerialNumber, LensSerialNumber, InternalSerialNumber.
  3. Thumbnails: EXIF can contain a thumbnail image. Even if you crop out sensitive content from the main image, the original thumbnail might still show it.
  4. Software tags: These reveal your editing software and version, which can be a fingerprint.

Stripping Metadata

There are several approaches to removing metadata before sharing images.

On Your Phone

Stop location tagging at the source. On iOS, open Settings, then Privacy & Security, Location Services, Camera, and choose Never. The iOS share sheet also has an Options control for leaving out location on a single share. On Android, look for a location tags setting in your camera app, since the name varies by manufacturer.

Client-Side Tools

For images that already have metadata, strip it before sharing. The EXIF Viewer has a strip option, and the Image Compressor re-encodes through a canvas, which also drops metadata. Both run in your browser without uploading your file.

Command Line

# Strip ALL metadata with ExifTool (leaves photo.jpg_original as a backup)
exiftool -all= photo.jpg

# Strip GPS only (keep camera settings)
exiftool -gps:all= photo.jpg

# Strip metadata from all JPEGs in a directory
exiftool -all= -overwrite_original *.jpg

# Using ImageMagick 7 (older versions use convert)
magick photo.jpg -strip clean_photo.jpg

# Using FFmpeg (for video metadata)
ffmpeg -i video.mp4 -map_metadata -1 -c copy clean_video.mp4

Programmatically in JavaScript

// Strip EXIF by re-encoding through canvas
function stripExif(file) {
  return new Promise((resolve) => {
    const img = new Image();
    const url = URL.createObjectURL(file);

    img.onload = () => {
      const canvas = document.createElement('canvas');
      canvas.width = img.naturalWidth;
      canvas.height = img.naturalHeight;

      const ctx = canvas.getContext('2d');
      ctx.drawImage(img, 0, 0);

      canvas.toBlob((blob) => {
        URL.revokeObjectURL(url);
        resolve(blob);
        // The resulting blob has no EXIF data
        // because canvas.toBlob() creates a fresh file
      }, 'image/jpeg', 0.95);
    };

    img.src = url;
  });
}

Drawing an image onto a canvas and exporting it creates a new file without the original metadata. It also re-compresses the image, so JPEG quality drops slightly, and exporting a transparent PNG as JPEG loses the transparency. Color profiles may not survive either.

Check the output with a viewer afterwards, whichever method you use.

Other Metadata Types

EXIF is the most well-known, but it is not the only metadata format embedded in images.

XMP (Extensible Metadata Platform)

XMP stores editing history, keywords, copyright information, and creator details. It is XML-based and can be embedded in JPEG, PNG, TIFF, PDF, and other formats. Adobe's editing tools write a lot of it, and GPS data can appear here as well as in EXIF.

IPTC (International Press Telecommunications Council)

IPTC metadata is used in photojournalism and stock photography. It includes fields for captions, credits, copyright notices, and keywords. Less of a privacy concern for casual photos, but relevant if you are publishing professionally.

PNG Text Chunks

PNG stores metadata in text chunks, key-value pairs that can hold creation software, timestamps, and comments. PNG can also carry Exif data in an eXIf chunk, which became part of the main specification with the PNG Third Edition in 2025, so do not assume a PNG has no location data.

# View PNG metadata
exiftool screenshot.png

# Common PNG metadata fields:
# Software: Adobe Photoshop 25.0
# Creation Time: 2026:03:15 14:23:07
# Comment: (sometimes contains editing history)
# Author: (sometimes present)

Screenshots and Metadata

Screenshots are generally lower risk than photos, but what they carry depends on the operating system and the tool that made them.

If you are sharing something anonymously, strip the metadata anyway, and look at what is visible in the image itself.

Privacy Checklist Before Sharing Images

A checklist to run through before you share an image:

  1. Check for GPS data. Open the image in the EXIF Viewer and look for any latitude/longitude fields.
  2. Check for device identifiers. Look for serial numbers, unique image IDs, and device model info.
  3. Check the thumbnail. If the image was cropped, verify that the embedded thumbnail does not show the original uncropped version.
  4. Strip metadata. Use a client-side tool or command-line utility to remove all metadata. Re-check afterward to confirm.
  5. Consider the file name. File names like IMG_20260315_142307.jpg encode the date and time. Rename the file to something generic.
  6. Consider image content. Metadata is not the only way images reveal information. Reflections, visible addresses, screen content, and identifiable landmarks can all give away location and identity.
  7. Do not rely on the platform. Where a platform preserves metadata (many forums, email, cloud storage), stripping is essential. Where it strips metadata, it can still read it first, so remove anything you do not want it to have.

Image metadata is useful to photographers and a liability when you share a file without knowing what is in it. Check your photos with the EXIF Viewer, strip what you do not want shared, and turn off location tagging in your camera app if you do not need it.

The Background Remover and Image Compressor also process images in your browser without uploading them.