GPX track + photo times · GPS EXIF written without re-encoding · ZIP out

Geotag JPEG Photos from a GPX Track

Photo times are camera wall-clock time and GPX times are UTC, so the match needs the camera's time zone and any clock error. Set those, check the match table and the map, and download JPEGs whose pixels are byte-identical to the originals.

1. GPX track

One or more .gpx files with timestamps

Drop GPX files here or click to choose

Up to 60.00 MB each. Track points need a time; files are merged by time.

    2. Photos

    JPEG files with a capture time

    Drop JPEG photos here or click to choose

    Up to 25.00 MB each. RAW and HEIC files are not written.

    3. Time and matching

    New York in winter is -5, Berlin in summer is 2, India is 5.5. Only used for photos without their own offset tag.

    Negative if it was behind. 90 means a photo stamped 12:00:00 was really taken at 11:58:30.

    Work out the clock error from one photo

    Between two track points further apart than this, no position is guessed.

    For photos just before, after or beside a track point outside an interpolated gap.

    4. Save

    0 photos will be tagged.

    Map of the track

    Plotted flat; dots are the photos

    The track appears here.

    Matches

    Add photos and a track

    Load a GPX file and photos to see where each one lands.

    Geotag JPEG Photos from a GPX Track

    Operator: Abdulla Al Fahad. How tools are built and checked

    A camera without GPS stamps each photo with the time on its own clock and nothing else. A phone or watch recording a GPX track knows where you were at every second but knows nothing about the photos. Matching them is a lookup: convert the photo's time to UTC, find that moment in the track, and write the position into the file.

    Most of the effort is in the conversion, because the camera clock is rarely exact and has no time zone. This page makes both explicit and shows every match in a table and a map before it writes anything.

    The JPEGs are not re-encoded. Only the EXIF block gains GPS entries, and the compressed image data stays byte for byte as it was.

    Key features

    • One or more GPX files, merged by time; track points, or route points or waypoints when there are no tracks
    • Camera time zone in quarter-hour steps, plus the photo's own OffsetTimeOriginal tag when it has one
    • A clock-error field and a helper that computes it from one photo of a clock or GPS screen of known time
    • Interpolation between the two surrounding track points up to a gap you set, otherwise the nearest point within a tolerance
    • A colour-coded match table, a flat map of the track with the matched photos, and a report CSV
    • Option to overwrite photos that already have GPS, and to include unmatched photos unchanged
    • Altitude from the track is written along with latitude and longitude when the points carry elevation

    Clock, time zone and track: how a photo time becomes a position

    A photo's EXIF time is local wall-clock time without a zone. UTC is the wall time minus the zone offset minus the clock error, where the clock error is how many seconds the camera was ahead. A photo stamped 12:00:20 on a camera set to UTC+2 that ran 5 seconds fast was taken at 10:00:15 UTC. Newer cameras also write OffsetTimeOriginal such as +02:00, and when that tag is present it takes precedence over the zone you type, which is how a trip across zones stays right.

    GPX times are ISO 8601 in UTC; a time with no zone designator is read as UTC, as the format requires. Between two track points no more than the gap limit apart, latitude, longitude and elevation are interpolated in proportion to time, with longitude wrapping handled across the antimeridian. Beyond that, a photo within the tolerance of a single point takes that point, and anything else is reported as before the track, after it, or in a gap.

    The writer sets GPSVersionID, the N/S and E/W references, latitude and longitude as degrees, minutes and seconds (seconds in ten-thousandths) and, when known, altitude and its reference. It does not write GPS time or date stamps. If a photo also has GPS coordinates in its XMP packet, that packet is left alone, and the result notes it.

    How it works

    Photo times are read once when the files are added, and the match table is recomputed from the track and your settings whenever anything changes. Nothing is written until you download.

    On download each photo is read again, its EXIF block patched in place so every other tag keeps its bytes, and the result is stored in a ZIP together with geotag-report.csv.

    Common use cases

    • A hiker has 180 photos from a camera set to UTC+2 and one watch GPX file. With the zone set and the clock error at 0, 176 match by interpolation and 4 taken before the watch started are listed as before the track.
    • A wedding photographer shot with two cameras whose clocks differ. She loads both card folders in turn, sets 94 seconds fast for the second body from a photo of her phone's clock, and the two sets line up on the same track.
    • A surveyor logs a GPX point every 5 seconds and keeps the gap limit at 30 seconds, so photos taken during a 4-minute signal loss are reported as in a gap rather than placed on a straight line.
    • A traveller crossing from UTC+1 to UTC+9 uses a phone camera whose files carry OffsetTimeOriginal, and the page applies the right zone to each photo without any setting.

    How to use this tool

    1. Add the GPX file or files, then the JPEG photos.
    2. Set the camera's time zone and clock error, and watch the match table and map change.
    3. Adjust the gap and tolerance until unmatched photos make sense, then download the ZIP.
    4. Check a few photos in your viewer's map or info panel before replacing the originals.

    Example

    Track and photo

    Track point 1: 10:00:00 UTC, 40.000000, -74.000000, 10 m
    Track point 2: 10:01:00 UTC, 40.001000, -74.002000, 20 m
    Photo: EXIF 12:00:20, camera zone UTC+2, clock 5 s fast

    Result

    Photo time in UTC: 10:00:15
    Interpolated a quarter of the way along the segment
    Position 40.00025, -74.00050, altitude 12.5 m

    Tips for best results

    • Take one photo of your phone's clock or a GPS screen at the start of a trip. It turns the clock-error question into a single field.
    • If every photo lands exactly one hour away along the track, the zone is right but daylight saving was not accounted for; set the zone to the offset in force on the day.
    • Use a small gap limit for a walking track and a larger one for a car track with sparse points, because a 10-minute default gap is a long way at 100 km/h.

    Common pitfalls

    Linear interpolation draws a straight line between points. On a winding trail with points 10 minutes apart the true path may be hundreds of metres off the line, and the page cannot know that.

    Photos edited by other software may have lost their capture time. Only the shooting time is used, never the file's last-modified stamp, so such photos are listed as having no time and cannot be matched.

    A track recorded without timestamps cannot be used at all. The page says so rather than guessing from point order.

    Common errors and how to fix them

    "The track points in this file have no timestamps"
    The GPX has positions but no <time> elements. Re-export it from the recorder with times, since photos can only be matched by time.
    "The photo is 2.0 h before the track starts"
    Check the zone and the clock error first: a missing zone shifts every photo by whole hours, and this message gives the size of the gap.
    "The EXIF block could not be read"
    The file's metadata is damaged. Re-save the photo with its original program or skip it; the page does not rewrite damaged EXIF.

    Best practices

    • Geotag copies, not your only originals, and keep the report CSV next to them.

    Reading the match table

    Exact and interpolated results are dark and light green, nearest-point results are amber and unmatched photos are red with the reason spelled out. A run of amber results at the same distance usually means the clock error is off by that amount, which is worth fixing before trusting any position.

    Frequently asked questions

    What if I only know one place for the whole batch?

    Then matching by time is the wrong tool. If every photo was taken at one hotel or venue, enter that single coordinate for all of them in Edit Photo EXIF instead; this page is for photos taken while moving, where each needs its own position from the track.

    Which time does it use when a photo has several?

    The shooting time (DateTimeOriginal), then the digitised time. The file's last-modified time is never used, because editing or re-saving a photo changes it, and a position matched to it would be wrong with no warning.

    Does it work with RAW files or HEIC?

    No. Writing GPS without re-encoding is done in the JPEG's EXIF segment, so only JPEG files are accepted. For RAW files, geotag the JPEGs you export, or use a RAW workflow that writes XMP sidecars.

    Is any track data sent anywhere?

    The GPX file and the photos stay in the page. The map is drawn from the track points as a flat line and does not load tiles, so no position is requested from a map service.