What EXIF Data Reveals, and How to Strip It Properly
Published 6/16/2026 · 13 min read · Image & design tools
Daniel Okonkwo — Front-end developer and tech writer at OneKitly
Web performance · File formats
Checked against 6 sources
A photo taken on a phone usually carries a GPS directory with latitude, longitude and altitude, a DateTimeOriginal timestamp with a UTC offset and a sub-second field, the make and model of the device, the lens, the full exposure settings, an orientation flag and an embedded thumbnail. Some camera makes also write a body or lens serial number, and most write a proprietary MakerNote block. The stored coordinate precision is finer than the measurement: latitude is written as degrees, minutes and seconds, where one arcsecond is about 101 ft, and the seconds field is a fraction, so a denominator of 100 records to roughly 12 in — far finer than the positioning itself, which is why many phones also store their own error estimate. Stripping is cheap and lossless when done properly: removing every metadata marker from a 5,617,703-byte JPEG took out 1,344 bytes, 0.0239% of the file, and the decoded pixels were bit-identical afterwards. What stripping cannot do is change the picture. It removes no watermark, no face, no recognisable street corner and no reflection in a window. Inspect the output file after cleaning rather than trusting the tool's confirmation message.
A photo file carries coordinates, an exact timestamp, the device and lens, and on some cameras a serial number. Here is what is actually in the block, what stripping does and does not fix, and how to verify it worked.
What is actually in the block
A JPEG stores metadata in APPn marker segments that sit before the compressed image data. The Exif block is a small TIFF structure with several directories. The first holds the device — make, model, orientation, the software that last wrote the file, sometimes an artist and a copyright line. A sub-directory holds the capture: DateTimeOriginal to the second, an offset field giving the time zone, a sub-second field, exposure time, aperture, ISO, focal length, lens make and model. Several manufacturers add a body or lens serial number, and almost all of them add a proprietary MakerNote blob whose contents are undocumented and can be substantial.
If location services were on, a third directory holds the GPS data: latitude and longitude with their hemisphere references, altitude, a UTC timestamp, often a compass bearing for the direction the lens was pointing, and on many phones a positioning-error field giving the device's own estimate of how far off it might be. Alongside all of that sits an XMP packet — an XML block that can carry keywords, ratings, an editing history, region tags naming faces, and the creator's contact details — plus a legacy IPTC block with caption, byline and place names, an ICC colour profile, and a small JPEG thumbnail in a directory of its own.
How precise the coordinates really are
Exif stores latitude and longitude as degrees, minutes and seconds, each written as a fraction. One degree of latitude is about 69.17 miles, so one arcminute is about 6,087 ft and one arcsecond about 101 ft. Because the seconds field is a fraction, the stored resolution depends on the denominator the device chose: a denominator of 100 records to roughly 12 in, a denominator of 1,000 to roughly 1.2 in. Longitude behaves the same way but shrinks with the cosine of the latitude — at 40 degrees north, one arcsecond of longitude spans about 78 ft rather than 101.
Do not confuse that stored resolution with accuracy. The file can hold a number precise to a fraction of an inch while the underlying satellite fix is several times coarser, and it is the fix that determines whether the coordinates point at a house or at the road outside it. That is exactly why the specification includes a positioning-error field, and why a responsible reading of a coordinate pair treats it as an area rather than a point. It remains specific enough to be a privacy question. A single holiday photo posted publicly rarely matters; a run of photos from one address, all carrying coordinates and timestamps, describes a routine.
Who strips it on upload, and why you should test rather than trust
Large platforms generally re-encode uploaded photographs, and re-encoding drops most metadata as a side effect rather than as a privacy feature. But behaviour varies by platform, and more importantly by the path the file takes within a single platform. The same messaging app that re-encodes a photo sent as a photo will transmit the original bytes untouched when the same file is sent as a document or a file attachment, because that path is explicitly designed to preserve the file exactly. Cloud storage links serve the original by definition. A content management system typically keeps the uploaded original alongside its resized derivatives, and while the derivatives are re-encoded, the original often remains reachable at its own URL.
Because these behaviours change without announcement, no published list stays correct for long, and this page is not going to give you one. The reliable procedure is a round trip: clean the file, upload it exactly as you normally would, download the copy the platform serves, and inspect that copy. Five minutes of testing on the path you actually use beats any table of platform behaviour, including a recent one.
What stripping does not do
Stripping metadata edits the header. It does not touch the picture, so everything visible in the picture survives it intact: a watermark, a face, a house number, a school badge on a jumper, a name on a delivery label, a distinctive skyline through a window. If the photograph itself identifies a person or a place, the fix is an edit to the pixels — a crop, a blur or a solid block — not a metadata operation. The two are often confused because both are offered as privacy features, and they solve entirely different problems.
The screenshot case illustrates this exactly. Photographing a screen, or taking a screenshot of a photo, produces a new file with no camera metadata at all — no coordinates, no capture timestamp, no device. It also reproduces every pixel of the original. The location data is gone; the recognisable street corner is not. A screenshot is a fine way to hand someone an image without its history, and a poor way to hide what the image shows.
Removal that only pretends to remove
Not every tool labelled as a metadata remover rewrites the file. Some blank the values of the tags they recognise and leave the directory structure in place, which defeats a casual viewer and nothing else. Some handle the standard Exif tags and skip the proprietary MakerNote or the XMP packet entirely, so the block that most reliably identifies a specific camera body is the one left behind. Some operate on a copy and leave the original in the same folder under a similar name, which is how a cleaned file and its uncleaned twin end up attached to the same message.
Conversion is not stripping either, and can work the other way. Converting a PNG that carried no camera metadata at all into a JPEG with a standard system tool produced an output file containing a brand-new 124-byte Exif block: five tags in the primary directory and three in the sub-directory, written by the converter itself. Nothing sensitive in that particular case, but it is a useful reminder that every tool in a pipeline gets to add its own annotations, and that the only way to know what a file carries is to open it and look.
Keeping metadata is often the right call
This is not an argument for deleting everything by reflex. Metadata is what lets a photo library sort by date, what makes a picture appear the right way up, what carries a photographer's copyright line, and what keeps a family archive legible in thirty years. Orientation in particular is worth protecting: strip it from a file whose pixels are stored rotated and the image will display on its side in anything that respects the tag.
The workable habit is therefore two files, not one blanket policy. Keep the original with its full metadata in your own storage, and produce a cleaned export for anything that leaves your control — a public post, a marketplace listing, a forum, an attachment to someone you do not know well. That way you never have to choose between a searchable archive and a photo you can publish without thinking about it.
| Block | Typical fields | What it can reveal | Keep when sharing? |
|---|---|---|---|
| EXIF IFD0 — the device | Make, Model, Orientation, Software, DateTime, Artist, Copyright | Which phone or camera, which editing software, and often an account name | Keep Orientation; drop the rest unless you want the credit |
| EXIF sub-directory — the shot | DateTimeOriginal, OffsetTime, ExposureTime, FNumber, ISO, FocalLength, LensModel, BodySerialNumber, MakerNote | The exact second and time zone of the shot, and on some makes a serial number that links every photo from one body | Exposure data is harmless; drop the serial numbers and MakerNote |
| GPS directory | GPSLatitude, GPSLongitude, GPSAltitude, GPSTimeStamp, GPSImgDirection, GPSHorizontalPositioningError | Where the photo was taken, stored more finely than the positioning itself, plus which way the lens was pointing | Remove it for anything leaving a private circle |
| Embedded thumbnail | A small JPEG copy of the image, a few kilobytes | If a crop or a redaction was applied without regenerating it, the version from before the edit | Drop it, or confirm it matches the edited image |
| XMP | Ratings, keywords, edit history, face and region tags, creator contact details | Names attached to faces, the software chain used, and sometimes an email address or phone number | Remove unless you deliberately want the credit block |
| IPTC and ICC | Caption, byline, credit, place names; and the colour profile | Place names typed by a person, which are often more specific than the coordinates | Remove IPTC; keep the ICC profile or colours may shift |
Frequently asked questions
- Does removing EXIF make the file noticeably smaller?
- Hardly at all. Removing every metadata marker from our 5,617,703-byte test JPEG took out 1,344 bytes — 0.0239% of the file. Metadata cleaning is a privacy operation, not a compression one. If a tool claims a large size reduction while removing metadata, it is re-encoding the image as well, which is a different decision and costs image quality.
- Does cropping a photo remove the location data?
- Not by itself. Most editors carry the metadata across into the cropped file, coordinates included, because photographers expect it to survive editing. Worse, if the editor does not regenerate the embedded thumbnail, the cropped file can still contain a small copy of the uncropped picture. Crop, then strip, then re-inspect — in that order.
- Can I turn off location tagging at the source instead?
- Yes, and it is the cleaner solution for photos you already know you will share. Every current phone lets you deny the camera app access to location, and most share sheets also offer a per-share option to leave location out. Doing it at capture time means no coordinates ever exist in the file, so there is nothing to forget to remove later. The trade-off is that your own library loses its map.
- Do PNG, WebP and HEIC carry metadata too?
- Yes. PNG has an eXIf chunk plus textual chunks; WebP and AVIF have their own EXIF and XMP chunks inside the container; HEIC files from phones carry the same Exif structure a JPEG would, and often a burst of extra images besides. The habit of checking only JPEGs is a leftover from when JPEG was the only format anyone shared. Inspect whatever you are about to send, regardless of extension.
- If a platform strips metadata anyway, why bother cleaning first?
- Because the platform receives the original before it strips anything, because the stripping is a by-product of its processing rather than a promise, because you may forward the same file elsewhere later, and because the behaviour can change with the next release. Cleaning before you upload costs seconds and does not depend on anyone else's implementation staying the same.
- Is there any legitimate reason to keep GPS data?
- Several. A travel archive that can be browsed on a map is genuinely useful, field documentation and survey work depend on it, journalism and insurance claims often need it as evidence of where a picture was taken, and scientific photography treats it as part of the record. The judgement is contextual: keep it in your own storage, and decide deliberately for each file that leaves your control.
Articles you may find interesting
All guides →Related tools
Sources
- CIPA — DC-008 Exchangeable image file format for digital still cameras (Exif) — tag definitions, GPS directory and thumbnail directory
- IPTC — IPTC Photo Metadata Standard
- Phil Harvey — ExifTool — reference documentation for EXIF, XMP, IPTC and MakerNote tags
- ITU-T — Recommendation T.81 — the JPEG standard, including the APPn marker segments that carry metadata
- W3C — Portable Network Graphics (PNG) Specification (Third Edition) — the eXIf and textual chunks
- MDN Web Docs — Image file type and format guide
Spotted a mistake in this article?