How GPS Coordinates Are Stored in Photo Metadata
Photo location isn't stored as an address. It's stored as numbers in a dedicated section of the EXIF data called the GPS IFD.
The GPS section of EXIF
EXIF data is organised into directories (IFDs). The main directory includes a pointer to a separate GPS directory, which holds tags such as:
- GPSLatitudeRef: N or S
- GPSLatitude: degrees, minutes and seconds
- GPSLongitudeRef: E or W
- GPSLongitude: degrees, minutes and seconds
- GPSAltitude and GPSAltitudeRef
- GPSTimeStamp and GPSDateStamp: satellite time in UTC
- GPSImgDirection: which way the camera was pointing, on some devices
- GPSHPositioningError: estimated accuracy
From degrees to a map pin
Each coordinate is stored as three fractions: degrees, minutes and seconds. Software converts them to decimal degrees. For example, 30° 11' 30" N becomes 30.1917. A negative sign is used for south and west.
How precise is it?
Phone GPS is often accurate to within a few metres outdoors. Indoors or in dense cities it may be less precise, but it's usually enough to identify a building.
Videos store location differently
MP4 and MOV files store location as text, often in a format like "+30.1917+071.4700/", inside metadata boxes. See remove metadata from MP4.
Removing GPS data
GetFileClean removes the entire EXIF block, including the GPS directory, and shows you the coordinates it found so you can see what would have been shared.
Topics in this guide
- gps exif tags
- how gps stored in photos
- exif gps coordinates
- photo latitude longitude metadata
- gps ifd