Lankio Tools

How GPS Location Is Stored in Photos

Published August 25, 2026

If a camera or phone has location services enabled at the moment of capture, it writes GPS data directly into the photo's EXIF structure, in a dedicated sub-block called the GPS IFD (Image File Directory). Here's how that actually works.

Degrees, minutes, seconds — not decimal

Unlike a typical "37.7749, -122.4194" you might see in a maps app, EXIF stores latitude and longitude as three separate rational numbers representing degrees, minutes, and seconds — the traditional DMS coordinate format — plus a reference field (GPSLatitudeRef: N or S; GPSLongitudeRef: E or W) indicating the hemisphere. A reader (including our EXIF Viewer) converts these into a single decimal coordinate for display: degrees + minutes/60 + seconds/3600, negated if the reference is S or W.

Why it's more precise than people expect

Each of those three components is stored as a rational number (a fraction: numerator and denominator), which lets the seconds component carry fractional precision well beyond whole seconds. In practice this means EXIF GPS data is commonly accurate to within a few meters — enough to identify a specific house, not just a neighborhood.

What else travels with the coordinates

The GPS IFD isn't limited to latitude/longitude. Depending on the device, it can also include:

  • GPSAltitude — elevation above (or below) sea level
  • GPSTimeStamp / GPSDateStamp — the UTC time of the GPS fix, which can differ slightly from the photo's main capture timestamp
  • GPSImgDirection — the compass bearing the camera was pointing, on devices with a magnetometer
  • GPSSpeed — recorded on some devices if the camera was moving

Combined, these can reconstruct not just where a photo was taken, but roughly which direction the photographer was facing and whether they were stationary or moving.

Why this matters practically

None of this requires special tools to read — GPS EXIF data is a documented, standard format, and free tools (including this one) can extract it from a file in seconds. If you don't want a photo's exact location attached before sharing it, that data needs to be removed deliberately; it doesn't disappear on its own. See Why You Should Remove GPS Metadata Before Sharing Photos for the practical reasoning, and use our EXIF Remover to strip it losslessly.