Protecting Your Privacy: Image Metadata and EXIF Data
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:
- Location: A photo taken at home and posted on a forum or marketplace can reveal the address.
- Linking accounts: A camera serial number shared across photos can connect separate identities. Sensor noise patterns can link photos even with no metadata, though that is a forensic technique, not a metadata problem.
- Routine: Timestamps across a series of photos can show when someone is usually at a given place.
- Workplaces: A photo of something confidential can reveal where it was taken and with what device.
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:
- Facebook and Instagram: Remove EXIF from the images other people see. Removal from the public image does not mean the company did not read the metadata when you uploaded it, so check its privacy policy.
- X (formerly Twitter): Removes EXIF from uploaded images.
- WhatsApp: Compresses and strips images sent as photos, but files sent as documents are delivered unchanged.
Platforms that may preserve EXIF data:
- Flickr: Keeps EXIF by default. It has account settings for hiding it from others.
- Google Photos shared links: May include location unless you hide it in the sharing settings.
- Email attachments: No stripping occurs. The full original file is sent.
- Cloud storage links (Dropbox, Google Drive): Original files with all metadata intact.
- Forums and message boards: Vary by software and configuration, and many serve the file as uploaded.
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:
- GPS coordinates: Any
GPSLatitudeorGPSLongitudefields. - Device identifiers:
SerialNumber,LensSerialNumber,InternalSerialNumber. - 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.
- 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.
- Usually no GPS data. Screenshots are generated by the OS, so location tags are not normally added.
- Software info. Some systems record the OS or the screenshot tool.
- Timestamps. The creation date is often recorded in the file or its name.
- Display info. The image dimensions reveal your screen resolution.
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:
- Check for GPS data. Open the image in the EXIF Viewer and look for any latitude/longitude fields.
- Check for device identifiers. Look for serial numbers, unique image IDs, and device model info.
- Check the thumbnail. If the image was cropped, verify that the embedded thumbnail does not show the original uncropped version.
- Strip metadata. Use a client-side tool or command-line utility to remove all metadata. Re-check afterward to confirm.
- Consider the file name. File names like
IMG_20260315_142307.jpgencode the date and time. Rename the file to something generic. - 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.
- 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.