Explainers
Location Data in Photos (EXIF): What’s Stored, Where, and When It Disappears
VeryEasyTools · 4 min read
How this was measured
- Photo
- A photo taken on an iPhone 17 (converted to JPG by Safari when picked, 4,385,007 bytes)
- Checked
- Unpacked the JPEG segment (APP1) by hand and counted only entry names. No location values were recorded
- Compared
- Re-saving with Chrome canvas.toBlob, and the result of this site’s Compress Image
- Measured
- November 11, 2026
A photo from your phone carries more than the picture. It also holds shooting information: when it was taken, with what device and settings, and, if location services were on, where. This information is called EXIF. I wanted to know whether location travels with a photo when you upload or send it, so I took one apart.
EXIF is a set of tags at the front of a JPG
A JPG file is divided into segments, and several metadata segments come before the actual image data. EXIF lives in one of them, called APP1. Inside, it is further divided into groups (IFDs).
| Group | What it holds |
|---|---|
| Primary | Maker, model, orientation, software, date and time saved |
| Exif | Time taken and time zone, exposure time, aperture, ISO, focal length, lens, maker-specific data (MakerNote) |
| GPS | Latitude, longitude, altitude, GPS time, speed of movement, direction the camera faced |
In a photo from an iPhone 17 (converted to JPG by Safari), this segment was 9,431 bytes with 63 entries, and 14 of them were in the GPS group alone. Not just latitude and longitude but altitude, how fast the phone was moving at that moment, which way the camera was pointing and how accurate the position was.
HEIC, the iPhone’s native format, uses the same EXIF. Instead of a segment at the front, it sits as a separate Exif item in the file’s table of contents. In the HEIC original of the same photo, that item was 3,030 bytes.
Other metadata besides EXIF
Listing every segment at the front of the same photo showed more than EXIF.
| Segment | Size | Contents |
|---|---|---|
| APP0 (JFIF) | 20 bytes | JPG format marker, resolution units |
| APP1 (Exif) | 9,433 bytes | Shooting information, location |
| APP2 (MPF) | 88 bytes | An index saying the file holds several images. iPhone bundles the brightness (gain) map here |
| APP2 (ISO 21496-1) | 34 bytes | A marker for the international standard way of using the brightness map |
| APP2 (ICC) | 552 bytes | Color profile: which color space this photo’s numbers should be read in |
| APP10 | 1,082 bytes | Extra information used by Apple |
The color profile (ICC) isn’t personal information, but you don’t want to lose it. iPhones save photos in Display P3, which covers more colors than ordinary screens; without the profile the same numbers get read as the narrower sRGB and the colors look washed out. So “removing information” doesn’t mean stripping everything. It means choosing what to keep and what to remove.
Why the time zone is stored separately
EXIF’s capture time (DateTimeOriginal) is just a date and time such as “2026:05:05 14:30:00”, with no time zone. For photos taken abroad, or moved to a device in another time zone, there’s no telling which time zone the clock was set to. So current phones record OffsetTimeOriginal (for example, +09:00) as well. Photo apps read both to put photos in the right order. Without the zone, a photo can land a few hours out of place.
Why location includes speed and direction
Among the 14 GPS entries, the ones that stand out besides latitude and longitude are speed and camera direction. Map and photo apps use them to show where you stood and which way you faced, or to join travel photos into a route. Flip that around: a single photo with location can reveal not only where it was taken but whether you were walking or in a car, and which way you were looking. It’s more accurate to think of location as this whole group, not one line of coordinates.
What survives when you save again
I saved the same photo again in two ways and unpacked the EXIF once more.
| How it was saved | EXIF | Location (GPS) | Date taken |
|---|---|---|---|
| Original (iPhone JPG) | 63 entries, 9,431 bytes | Present (14) | Present |
| Re-saved by browser (canvas) | Gone entirely | Gone | Gone |
| Compress Image | 2 entries, 90 bytes | Gone | Kept (with time zone) |
When a web page draws a photo on a canvas and saves it, EXIF disappears entirely, because only the picture is drawn and the tags don’t come along. Losing the location sounds good, but the date goes too. Put such a photo back into your photo library and it lands on the day you saved it, not the day you took it, scrambling the album order.
Compress Image removes everything, location included, and puts back only the date taken and time zone. So a compressed photo saved to your library goes back to the day it was taken. If the original had a location, the result is marked Location removed.
Without the orientation tag, photos end up sideways
As important as location in EXIF is orientation. Phone cameras often save the pixels in the same orientation however you hold the phone and add a tag saying “rotate this 90° when showing it”. Programs that read the tag show it upright; programs that don’t show it sideways.
So order matters when removing EXIF. If you delete only the tag, the photo ends up sideways. Rotate the pixels first, then remove the tag, and it looks right everywhere. Current browsers apply the orientation tag when drawing a photo on a canvas. Compress Image turns the picture upright this way before saving, and marks rotated photos Orientation fixed.
Checking for location before you share
- iPhone: swipe up on a photo in Photos to see a map of where it was taken. When sharing, tap Options at the top of the share sheet and turn Location off to send it without.
- Windows: right-click the file, then Properties → Details to see the GPS entries. Remove Properties and Personal Information at the bottom deletes them.
- Mac: open in Preview, choose Tools → Show Inspector, check the GPS tab and use Remove Location Info.
Whether chat and social apps strip location from uploads differs by service and setting, and it changes. For photos where location would be a problem (home, near your child’s school), removing it yourself before sending is the surest way.