Skip to content
OSINTblogs

How to read EXIF data: what photo metadata reveals and hides

A practical guide to photo metadata for investigators. The EXIF, IPTC and XMP fields that matter, how to read GPS position, camera direction and time zones with ExifTool, which platforms strip metadata and which keep it, how to spot editing, and why none of it is proof.

· 8 min read

A photo file name above four rows: GPS position, capture time, device and any field, marked if present, check zone, useful and not proof.

A digital photograph is two things in one file: the picture, and a set of notes the camera wrote about it. Those notes can include the make and model of the device, the exact time, the lens settings, the position on Earth to within a few metres and the compass direction the camera was pointing. When they are present and genuine, they answer in seconds what visual analysis takes hours to establish.

They are often absent, because most platforms delete them, and they can be edited by anyone. This guide covers how to read photo metadata properly and how much weight to put on it.

Three kinds of metadata

Standard

Written by

Typical contents

EXIF

The camera or phone

Device, settings, date and time, GPS, orientation, thumbnail

IPTC

Photographers, agencies, editing software

Caption, creator, credit, copyright, keywords, location names

XMP

Editing software

Edit history, software used, document IDs, ratings, anything IPTC holds

EXIF tells you about the moment of capture. IPTC and XMP tell you about what people and programs did to the file afterwards. A news agency photograph may have little EXIF and rich IPTC, naming the photographer and describing the scene.

Reading it with ExifTool

ExifTool is free and reads every format in common use, including JPEG, HEIC, PNG, RAW files and video.

# Everything, with the group each tag belongs to
exiftool -a -G1 -s photo.jpg

# All date and time fields
exiftool -time:all -a -G1 -s photo.jpg

# Position as decimal numbers, ready to paste into a map
exiftool -n -GPSLatitude -GPSLongitude -GPSAltitude -GPSImgDirection photo.jpg

# A whole folder as a spreadsheet
exiftool -csv -r -Make -Model -DateTimeOriginal -OffsetTimeOriginal -GPSPosition -Software ./photos > metadata.csv

Browser-based viewers are convenient, but they involve uploading the file to someone else's server. For anything sensitive, use a local tool. See OPSEC for OSINT.

Always work on a copy and keep the original untouched, with its hash recorded. Opening and re-saving an image in an editor can rewrite its metadata. See preserving web evidence.

The fields that matter

Device

Make, Model, LensModel and Software identify the camera or phone and its firmware or operating system version. The operating system version sets an earliest possible date: a photo cannot have been taken with software that had not been released.

Some cameras record a body or lens serial number. A serial number links photographs to one physical device, across different websites and different claimed photographers. Phones generally do not record one.

Time

There are several time fields, and they mean different things.

Field

Meaning

DateTimeOriginal

When the shutter fired, in the camera's local clock time

CreateDate

When the image was written or digitised. Usually the same

ModifyDate

When the file was last changed by software

OffsetTimeOriginal

The clock's offset from UTC, on newer devices

SubSecTimeOriginal

Fractions of a second, useful for ordering burst shots

GPSDateStamp, GPSTimeStamp

Date and time from the satellite signal, always in UTC

Points that catch people out:

  • The main time fields have no time zone unless an offset field is present. "14:30" on an older camera means 14:30 on whatever that clock was set to.

  • Camera clocks are set by hand and are often wrong, sometimes by years. Phone clocks are set by the network and are usually right.

  • GPS time is the trustworthy one, because it comes from the satellites. Comparing it with DateTimeOriginal gives you the device's offset, which suggests a time zone.

  • A ModifyDate later than the original means software touched the file. It does not say what changed.

File system dates, the "created" and "modified" times your computer shows, are not metadata from the camera. They reflect when the file was copied or downloaded.

Position

GPSLatitude and GPSLongitude give where the device believed it was. Phones record this by default when location access is allowed for the camera. Most dedicated cameras do not.

Three related fields are valuable and often overlooked:

  • GPSImgDirection is the compass bearing the camera was pointing, from the phone's compass. With position and direction you can reconstruct the view on a map exactly.

  • GPSAltitude gives height, which separates a street from a rooftop or a hillside from the valley.

  • GPSHPositioningError, on some phones, gives the estimated accuracy in metres.

Accuracy varies. Outdoors with a clear sky it is within a few metres. Indoors or among tall buildings, the phone may fall back on Wi-Fi and mobile network positioning, which can be off by tens or hundreds of metres. The compass is unreliable near metal and electrical equipment.

Settings

Exposure time, aperture, ISO, focal length and flash are less often decisive, but they corroborate. A long exposure at high ISO fits a night scene. A claimed telephoto shot from a great distance should show a long focal length.

Embedded thumbnail

Cameras store a small preview inside the file. Some editing programs change the main image and leave the preview alone, so the thumbnail can show the picture before it was cropped or altered.

exiftool -b -ThumbnailImage photo.jpg > thumbnail.jpg
exiftool -b -PreviewImage photo.jpg > preview.jpg

Modern software usually regenerates the thumbnail, so this works mainly on older or carelessly edited files. It costs ten seconds to check.

Edit history

XMP fields such as CreatorTool, HistoryAction, HistorySoftwareAgent and DocumentID record processing in Adobe and other software. They show that an image was edited and with what, and sometimes link files derived from the same original.

Newer provenance systems add signed records of origin and edits to some files. See our guide to verifying an image.

Video

Video files carry metadata too, in the container.

exiftool -a -G1 -s clip.mov
exiftool -ee -G3 -s clip.mp4 | head -50

Phone video commonly records the creation time, in UTC for most formats, the device model and, where location is enabled, the position. The -ee option extracts embedded streams, which on some devices and action cameras include a track of positions throughout the recording.

Where metadata survives

Whether a file has metadata depends on the route it travelled.

Route

Metadata

Original file from the device, by cable or card

Intact

Email attachment, cloud storage share, file transfer service

Usually intact

Messaging apps, sent "as a document" or "as a file"

Usually intact

Messaging apps, sent as a normal photo

Stripped or reduced

Major social networks

Stripped from what other users can download

Photo-sharing sites aimed at photographers

Often kept and displayed, if the uploader allows

Personal websites, blogs, small forums, classified adverts

Often intact

Screenshots

The original's metadata is gone. The screenshot has its own, minimal

Two consequences. A social media image with no metadata is normal and tells you nothing. And if metadata matters, ask the source for the original file, sent as a document or by a transfer service, and explain why.

Platforms that strip metadata from public view may still keep it themselves. That is available to law enforcement through legal process, and not to open-source researchers.

How far to trust it

Use the image to test the metadata, and the metadata to guide your reading of the image.

  • Does the scene fit the position? Open the coordinates in satellite and street-level imagery. See geolocating a photo.

  • Does the light fit the time? Shadow direction and length should match the sun's position for that place and time. See chronolocation.

  • Does the weather fit the date?

  • Do the fields agree with each other? GPS time against clock time, the device model against the image dimensions and lens data, the software version against the date.

  • Is anything too tidy or too sparse? A file with GPS and a date but no camera settings at all may have been constructed.

  • Does the device exist? A model and firmware combination that was never released is a sign of fabrication.

Genuine anomalies are common too. Clocks are wrong, phones record the last known position before losing signal, and editing software drops fields. An inconsistency is a question to resolve, not automatically a sign of deceit.

Finding where else a camera has been

Where a serial number is present, search for it. Photos uploaded with intact metadata to photography sites are indexed by services originally built to trace stolen cameras, and a matching serial number links accounts that use the same device. It is a specialised technique that applies mostly to dedicated cameras, and the link is to the equipment, which may have been sold or shared.

Protecting yourself and your sources

The same fields that help an investigation can expose a source, a safe house or your own home.

# Remove all metadata, keeping the original as a backup file
exiftool -all= photo.jpg

# Check what remains
exiftool -a -G1 -s photo.jpg
  • Turn off location for the camera app on any phone used for sensitive work.

  • Strip metadata before publishing or forwarding images from sources, unless the metadata is the point.

  • Remember visible information. Removing the coordinates does not hide the street sign in the background.

  • Keep the untouched original securely, since you may need to prove authenticity later.

For metadata in PDFs and office files, see our guide to document metadata.

A workflow

  1. Obtain the best copy available, and ask for the original if you have a copy from social media.

  2. Hash the file and work on a duplicate.

  3. Run ExifTool and save the full output with the case notes.

  4. Note device, software, all time fields with offsets, position, direction and altitude.

  5. Extract the embedded thumbnail and compare it with the main image.

  6. Test position against imagery, and time against shadows and weather.

  7. Check the fields against each other for consistency.

  8. Report what the metadata states, what you corroborated independently, and what you could not.

Frequently asked questions

What is EXIF data?

Information a camera or phone writes into an image file when a photo is taken: the device, the settings, the date and time, and often the GPS position.

How do I see where a photo was taken?

Read the GPS fields with a metadata tool such as ExifTool and open the coordinates in a map. This works only if the file still contains them, which is unusual for images downloaded from social media.

Do social media sites remove EXIF data?

The major ones strip it from the images other users can download. Email, cloud storage links and files sent as documents through messaging apps usually keep it.

Can EXIF data be faked?

Yes, easily. Any field can be edited with free tools. Check the metadata against what is visible in the picture before relying on it.

How do I remove metadata from a photo?

Run exiftool -all= on the file, or use the export options in your photo software, then check the result. Disabling location access for the camera app prevents position being recorded in the first place.

Share this post

Written by

Dheeraj Yadav

Founder of OSINTverse, where I build OSINT tools for investigators and journalists. Self-taught ethical hacker working in bug hunting, malware analysis and digital forensics. Previously ran OSINTCon, now OSINT Collective.

Newsletter

New OSINT write-ups by email

An email when there are new posts on OSINTblogs. No fixed schedule and no account needed.

We email a link to confirm. Unsubscribe at any time. See the privacy policy.

More from Dheeraj Yadav

Report this post