EXIF Metadata: Read It, Understand It, Remove It
After reading this you will know what data your photos carry, how to read the numbers hidden in an EXIF block, and why stripping that metadata changes no pixels at all.
What EXIF is and why one photo can expose your home
Every time a camera or phone writes a JPEG, it stores a block of metadata alongside the pixels. That block follows the EXIF standard (Exchangeable Image File Format). It records the camera model, the exposure settings, a timestamp, and often the exact GPS coordinates where the shutter fired.
Consider a single photo posted to a public forum. Suppose its EXIF block contains latitude 37.7749 and longitude -122.4194, a timestamp of 2024:03:15 14:32:07, and the camera model iPhone 14 Pro. Anyone who downloads that file can read those three fields in seconds and place you at a specific street corner at a specific minute. The pixels look harmless. The metadata is the leak.
Stripping EXIF removes that block. The pixels stay byte-for-byte identical, so the picture looks exactly the same. Only the description of the picture disappears.
What lives inside an EXIF block
EXIF is a set of tagged values. Each tag has a numeric ID, a type, and a value. A JPEG viewer maps the IDs to readable names. The groups you will see most often are these.
- Camera and lens
- Make, Model, LensModel. Example:
Apple,iPhone 14 Pro. - Exposure
- ExposureTime, FNumber, ISOSpeedRatings, FocalLength. These describe how the shot was taken, for example 1/125 s at f/2.8, ISO 200.
- Timestamps
- DateTimeOriginal, DateTimeDigitized, DateTime. Written as
YYYY:MM:DD HH:MM:SSwith colons in the date. - GPS
- GPSLatitude, GPSLongitude, GPSAltitude, and reference tags that say north/south and east/west. Stored as degrees, minutes, seconds.
- Orientation
- A value from 1 to 8 that tells the viewer how to rotate the image for display without moving pixels.
A typical phone photo carries between 30 and 80 tags. Many are harmless (color space, resolution). The sensitive ones are GPS and the timestamps.
When to strip and when to keep
Strip EXIF before you share a photo publicly: on social media, in a forum, on a marketplace listing, or attached to an email to someone you do not fully trust. GPS coordinates and timestamps are the fields worth worrying about, and both vanish when the block is removed.
Keep EXIF when the data helps you. Photographers rely on ExposureTime, FNumber and ISO to review what worked. Archives use DateTimeOriginal to sort images by capture date. Legal and journalistic work sometimes needs the original metadata intact as evidence.
Many social platforms already strip EXIF on upload, but not all, and not always the GPS fields. Do not rely on the platform. Strip the file yourself before it leaves your device, and you never have to guess.
How GPS coordinates are stored, with the conversion
EXIF does not store latitude as a single decimal. It stores three rational numbers: degrees, minutes, and seconds, plus a reference letter (N, S, E, or W). To use the coordinate on a map you convert to signed decimal degrees.
Here d is degrees, m is minutes, and s is seconds. The result D is decimal degrees, always positive from this formula. You then apply the sign: south and west are negative, north and east are positive.
Take a stored latitude of 37° 46' 29.64" with reference N. Then
Because the reference is N, the sign stays positive: +37.7749. A reference of W on a longitude of 122° 25' 9.84" gives -122.4194. Those are the two numbers from the hook example, and together they point at central San Francisco.
Worked example: reading the demo photo
Load the sample image with the demo button. The viewer reports the following tags.
| Tag | Raw value | Interpreted |
|---|---|---|
| Make | Apple | Apple |
| Model | iPhone 14 Pro | iPhone 14 Pro |
| DateTimeOriginal | 2024:03:15 14:32:07 | 15 Mar 2024, 14:32:07 |
| ExposureTime | 1/125 | 0.008 s |
| FNumber | 28/10 | f/2.8 |
| GPSLatitude | 37, 46, 29.64 (N) | +37.7749 |
| GPSLongitude | 122, 25, 9.84 (W) | -122.4194 |
- Read the GPS degrees, minutes, seconds and apply the conversion above to get
37.7749, -122.4194. - Note the timestamp
14:32:07on 15 March 2024. Combined with the coordinate, this is a precise place-and-time record. - Press the remove control. The GPS and timestamp rows disappear and the file shrinks by the size of the EXIF block, often 8 to 30 kilobytes.
- Re-read the stripped file. The GPS tags are gone. The pixel data hash is unchanged.
Why stripping is lossless
A JPEG file is a sequence of segments called markers. The pixels live in the scan segment. EXIF lives in its own APP1 marker near the front of the file. Removing EXIF means deleting that one marker and rewriting the byte offsets. The compressed pixel data is copied through untouched.
Contrast this with resaving. If you open a JPEG in an editor and export it again, the encoder recompresses the pixels, and lossy JPEG compression discards a little more detail each time. Stripping avoids that entirely. No block of pixels passes through the DCT quantizer a second time.
You can confirm losslessness with a pixel comparison. Decode the original and the stripped file, and every pixel matches. Only the file bytes before the scan differ.
Reading and interpreting results
When the viewer lists tags, focus on three questions. Does the file carry GPS? Does it carry timestamps that reveal your routine? Does the camera model narrow down who you are? A GPS tag with any nonzero coordinate is the highest-priority item. A missing GPS section means the photo was taken with location services off, or the location was already stripped.
Watch the orientation tag. A value of 1 means upright. Values 6 and 8 mean the viewer should rotate 90 degrees. If you strip metadata and the image suddenly appears sideways, the removed orientation tag was doing the rotation, and the pixels were stored rotated. In that case rotate the pixels once and re-save, or keep orientation while dropping GPS.
Common mistakes
The most frequent error is trusting a screenshot or a resize to remove metadata. A screenshot creates a new file with no EXIF, so it does strip location, but it also recompresses and loses quality. A resize in most editors preserves EXIF unless you tell it otherwise. If you resize to share, check the output.
A second mistake is forgetting that PNG and HEIC carry metadata too. PNG uses text chunks and can hold XMP data. HEIC stores EXIF in its own box. Removing the JPEG APP1 marker does nothing for a PNG. Check the format.
A third mistake is confusing thumbnail data with the main image. EXIF often embeds a small thumbnail, and old tools sometimes stripped the visible image but left an unredacted thumbnail behind. Modern stripping removes the whole block, thumbnail included, so verify the tool clears it.
Related tools on this site
Once metadata is off your plate, you may want to work with the pixels themselves. To sample exact colors or build a palette from an image, use the Image Color Picker & Palette. To reduce a photo to its Dominant & Average Color, that tool reports both. To prove two files are pixel-identical after stripping, the Image Diff tool renders a heatmap of any differences. And to pull text out of a screenshot rather than metadata, try Image OCR.
Frequently asked questions
Does removing EXIF reduce image quality?
No. The compressed pixel data is copied through untouched. Only the metadata marker is deleted, so the decoded image is byte-for-byte the same. A resave would recompress and lose quality, but stripping does not resave.
Will stripping EXIF remove the date the photo was taken?
Yes, if the date is stored in EXIF, which it usually is. DateTimeOriginal, DateTimeDigitized and DateTime all go away with the block. The file system modification date is separate and is not touched.
Are my images uploaded anywhere when I use this?
No. Everything runs locally in your browser. The image and its metadata never leave your device.
Why does my photo rotate after stripping?
The orientation tag was telling the viewer to rotate the pixels for display. Removing it shows the pixels as stored. Rotate the pixels once and save, or keep the orientation tag while removing only GPS.
How accurate is an EXIF GPS coordinate?
Phone GPS is typically accurate to 5 to 15 meters outdoors. Since one arc-second of latitude is about 31 meters, an EXIF coordinate given to hundredths of a second easily pins a location to a single building.