Digital Forensic Tools
Home / Workflows / Photo location and time (EXIF)
Case workflow

Where and when was this photo taken?

Most photos from cameras and phones carry hidden notes inside the file, called metadata. This workflow shows how to read the camera, time and GPS position from a photo, and how to judge how far to trust them.

This workflow was written from the tools' documentation and published references. It has not yet been checked step by step on the practice data. If a step does not match what you see, please report it.

What you will be able to answer

  • Which camera or phone model took the photo
  • What date and time the photo says it was taken
  • Whether the photo has a GPS position, and where it is on a map
  • Which software last saved the file
  • Whether there are signs that the picture was edited

What you need

  • One or more image files, or the practice images described in the practice section
  • ExifTool installed (it runs from the command line)
  • A map tool such as Google Earth Pro, which is free

Steps

  1. 1

    Hash the file and work on a copy

    Calculate the hash value of the original file first and write it down. Then copy the file and work only on the copy. After your work, hash the original again. If the two hashes match, you did not change it. Reading metadata does not change a file. Writing options do: ExifTool then keeps the old file with _original added to its name unless you tell it to overwrite.

    sha256sum photo.jpg
  2. 2

    Read all the metadata

    ExifTool prints every tag it can find. -a also shows tags that appear more than once, -G1 puts the group in front of each tag and -s uses the short tag names. A line looks like: [ExifIFD] DateTimeOriginal : 2024:05:14 10:21:07. The group tells you where the value is stored, for example IFD0 or ExifIFD (EXIF), GPS, XMP, or System and File for values about the file on disk. Save the output as a text file with your notes.

    exiftool -a -G1 -s photo.jpg > photo-metadata.txt
  3. 3

    Look at the key tags

    Look for Make and Model (the camera or phone), DateTimeOriginal (when the picture was taken), CreateDate and ModifyDate, Software (the program that last saved the file), and the GPS tags. Some phones also write OffsetTimeOriginal, the time zone offset. Not every file has every tag, and an editing program may rewrite several of them. Write down each value with its group.

    exiftool -a -G1 -s -Make -Model -DateTimeOriginal -CreateDate -ModifyDate -OffsetTimeOriginal -Software photo.jpg
  4. 4

    Separate EXIF times from file system times

    EXIF times are written into the file by the camera. File system times, such as FileModifyDate in the System group, belong to the file on a disk, and they change when the file is copied, downloaded or saved again. If the two disagree, that is normal. The EXIF time describes the picture. The file system time describes what happened to the file. Do not mix them up in your notes.

  5. 5

    Think about time zones

    DateTimeOriginal is written without a time zone: it is the camera clock, which may be local time or wrong. GPS time is in UTC. ExifTool combines the GPS date and time into GPSDateTime. If a photo has both, the difference between them suggests the zone and the clock error. Example: 14:30:05 on the camera and 12:30:02 UTC from GPS suggest UTC plus 2 hours and a clock about 3 seconds off. Write your reasoning in your notes.

    exiftool -G1 -s -DateTimeOriginal -OffsetTimeOriginal -GPSDateTime photo.jpg
  6. 6

    Check the embedded thumbnail

    Many photos contain a small preview picture inside the file. Some editing programs change the main picture and leave the old thumbnail. If the thumbnail shows something different from the full picture, the main image may have been edited. Extract the thumbnail with ExifTool and look at it next to the photo. Not every file has one, and some programs update it correctly, so a match proves nothing.

    exiftool -b -ThumbnailImage photo.jpg > thumb.jpg
  7. 7

    Put the GPS position on a map

    Without options ExifTool prints coordinates as degrees, minutes and seconds with N, S, E or W. With -n it prints plain decimal numbers, where negative means south or west. Type the decimal pair, latitude first, into Google Earth Pro and look at the place. For a whole folder, the command below writes a CSV table that GPSBabel or a spreadsheet can use. Check that the place fits the scene.

    exiftool -n -csv -r -ext jpg -GPSLatitude -GPSLongitude -DateTimeOriginal photos_folder > photos.csv
  8. 8

    Look for signs of editing

    A Software tag with an editing program, a ModifyDate later than DateTimeOriginal, or a thumbnail that does not match are hints, not proof. Image analysis tools add more. Error level analysis highlights areas that were saved a different number of times. Clone detection looks for copied areas. These give leads that you must explain in your own words. FotoForensics is a web service. Do not upload evidence from a real case to a public website.

  9. 9

    Cross-check and write it down

    Compare the metadata with other facts: the picture itself, other photos from the same device, and the place on the map. Read the file in a second tool, for example the metadata view in Sherloq or the Details tab in the Windows file properties. In your notes, record the tool names and versions, the file name and hash, the time zone you assumed, and what you could not confirm.

Where the evidence is stored

Make and ModelEXIF block (IFD0) of the image file
The camera or phone that wrote the file
DateTimeOriginalEXIF block
Camera clock time when the picture was taken, usually without a time zone
OffsetTimeOriginalEXIF block, newer phones and cameras
The time zone offset of the camera clock, if the device wrote it
GPSLatitude and GPSLongitudeEXIF GPS block
The position the device recorded, if location was on
GPSDateStamp and GPSTimeStampEXIF GPS block
The date and time from the GPS receiver, in UTC
SoftwareEXIF block
The program or firmware that last saved the file
Embedded thumbnailEXIF block (ThumbnailImage)
A small preview that may differ from the main image if it was edited
File system timesThe disk that holds the file (System group in ExifTool)
When the file was created, changed or copied on that disk

Check your result

  • Read the same file with a second tool, such as the metadata view in Sherloq or the Details tab in Windows file properties, and compare the key tags.
  • Plot the GPS position and check that the place looks like the scene in the picture.
  • Compare the photo with other photos from the same device: same make, model and plausible time order.
  • Compare the GPS time with the camera time to check the clock and the time zone.

Common mistakes

  • Reading the file system dates (created, modified) as the date the photo was taken.
  • Treating DateTimeOriginal as UTC or as local time without checking. It has no time zone.
  • Pasting degree, minute and second coordinates into a map as if they were decimals, or swapping latitude and longitude.
  • Opening and re-saving the original in a photo program, which can rewrite the metadata. Work on a copy.
  • Concluding that a photo was not edited because the Software tag is empty. The tag is easy to remove.

Write it up

A short, careful way to state this kind of finding in a report. Change the details to match your own results.

The file [name] (SHA-256 [value]) carries the metadata Make [value], Model [value], DateTimeOriginal [value] (no time zone stored) and GPS position [latitude, longitude]. These values were read with ExifTool [version]. They show what the file states. They do not show who took the photo or that the clock was correct.

What this does not prove

  • Metadata is easy to edit or remove. A tag you read is what the file says, not proof of what happened.
  • Messaging apps and social networks often remove metadata or change it when a photo is uploaded or sent. A copy from such a source may show nothing.
  • The camera clock may be wrong, or set to another time zone. A correct-looking time is not proof that the clock was right.
  • Metadata shows a device, not the person who took the photo or who owned the device.
  • A missing GPS position or missing tags prove nothing. Location may have been switched off, or the data may have been removed.
  • A GPS position can be off by many metres, and it can be a stored position from earlier rather than one fixed at the moment of the shot.
  • Editing hints from error level analysis can be wrong. Treat them as leads.

Practise on public data

exif-samples (sample images for Exif testing)

by ianare and contributors, on GitHub

A public repository of sample images made to test Exif readers. The repository was archived by its owner on 22 April 2025, so it is read-only, and new samples now go to the exif-py project. Contributed images are under the CC BY-SA 4.0 licence. The top level has the folders heic, jpg and tiff. The jpg folder holds files from many camera makers. No answer sheet is published. ExifTool's own sample images page offers JPEG archives by camera make, with the main picture swapped out and the metadata kept, but it does not say which files hold GPS tags.

Your task. Part 1: download three or four JPEG files from the jpg folder, and look for a gps sub-folder there. For each, run the command from step 2, then write down the make and model, the original date and time, and the GPS position if there is one. Plot one position in Google Earth Pro. Part 2, with your own phone: take one photo with location on and one with it off. Send both to yourself through a messaging app, and compare the tags before and after.

Check the repository's own README files for what each sample holds. Not every file has GPS data. File names in the folders can change, so choose files you can see in the listing.

Where to go next

Sources and further reading

A study guide written in our own words. It is not a legal or laboratory procedure. Follow your own lab's approved method on real cases. Last reviewed 24 Nov 2026.