Edit Photo EXIF Data
Operator: Abdulla Al Fahad. How tools are built and checked
A camera whose clock was set 1 day and 2 hours behind files every photo under the wrong time, and photos merged from two cameras interleave in the wrong order. Entering an offset of +1 day 2 hours turns 2020:01:01 10:00:00 into 2020:01:02 12:00:00 on the date taken, the date digitized and the date modified of every photo in the batch, in one pass, without touching a single pixel.
The same page changes the text fields (description, artist, copyright, camera make, model and software), sets or removes the GPS position, and shows every tag the file holds. It edits tags one by one rather than deleting them in groups.
Key features
- A readout of every tag in the first table and the Exif table, grouped, plus the GPS position
- Edit description, artist, copyright, camera make, model and software; an empty box clears the tag
- Set an exact date and time, or shift the date taken, date digitized and date modified by days, hours, minutes and seconds in either direction
- Set GPS from decimal or degrees-minutes-seconds text with optional altitude, or remove the GPS block with its stored values zeroed
- Optional removal of the XMP packet, which can carry its own copy of the position
- Up to 100 JPEG photos per run, returned as one file or a ZIP
- A report line for every file saying what changed, with warnings such as an invalid date that was left alone
Which EXIF tags are edited and how the block is rewritten
JPEG only, checked by the FF D8 FF bytes at the start, up to 25 MB per file. EXIF lives in an APP1 segment of at most 65,533 bytes, and if an edit would push the block past that, the file is refused with a message instead of being cut. A PNG, WEBP or HEIC file is declined with an explanation, since their metadata sits in other containers.
Dates follow the EXIF layout YYYY:MM:DD HH:MM:SS with a trailing zero byte, 20 bytes in all. A shift is done as plain wall-clock arithmetic in UTC with no daylight-saving rule, so 2024:03:01 00:00:00 minus 1 second is 2024:02:29 23:59:59 (a leap day) and 2024:12:31 23:59:59 plus 2 seconds is 2025:01:01 00:00:01. A date that is not a real calendar date, such as 2023:02:29, is reported and left alone. The time-zone tags (OffsetTime, 0x9010 to 0x9012) are not shifted, so if you move a photo across zones, correct them separately.
GPS latitude and longitude are stored as three rationals, degrees, minutes and seconds, with N, S, E or W. Typed values are split exactly into whole degrees, whole minutes and seconds in ten-thousandths, and 0.0001 arcsecond is about 3 mm on the ground. A negative decimal such as -33.8688 is written as 33 degrees 52 minutes 7.6800 seconds S. Latitude must lie within 90 and longitude within 180.
Text is written as UTF-8. The specification asks for ASCII, and nearly every viewer reads UTF-8, but a very old program may show accented letters wrongly.
How it works
The page does not rebuild the EXIF block. It patches it. A changed value that is not longer than the old one is written over the old bytes, and the unused tail is zeroed, so the file does not grow. A longer value is appended at the end of the block and its entry is pointed at it, and the old bytes are zeroed. A tag that did not exist is added by writing a longer copy of the table at the end, in tag order, and pointing its parent at the copy. Everything else, including the maker note whose internal offsets are relative to the block, stays at the same position, so it keeps working. The new APP1 segment replaces the old one and every other byte of the file, from the quantisation tables to the end of the image data, is copied across unchanged. A decode before and after gives identical pixels. Removing GPS clears the entries and the stored rationals and deletes the pointer, so the coordinates do not survive in unreferenced bytes.
Common use cases
- A wedding shot on two cameras, one set 3 hours and 14 minutes ahead: shift the second camera's 412 photos by -3 hours 14 minutes, and a gallery sorted by date taken interleaves them correctly.
- A travel set from a camera with no GPS: type the coordinates of the hotel once and apply to all 60 photos from the day, with the altitude of 35 m.
- A box of 200 print scans, each stamped with the day it was scanned: set the exact date the prints were taken, 14 July 1987 at noon, for the whole folder, and an album sorted by date taken groups them with their era.
- A photographer crediting a shoot: tick Artist and Copyright, type the name and a copyright line, and apply to the folder. Each file gets the same two tags, and a file that had none gets a new EXIF block.
How to use this tool
- Drop one or many JPEGs and click a file in the list to see its tags, then choose the changes: tick the text fields to edit, set or shift the dates, and set or remove GPS.
- Press Apply. One photo downloads as a JPEG, several as a ZIP, with a line for each file saying what changed.
Example
IMG_2041.JPG from a camera whose clock ran 1 day 2 hours slow, with GPS you want gone
Tags before: camera make Canon, camera model Canon EOS 250D, date taken 2020:01:01 10:00:00, latitude 40.712800, longitude -74.006000, altitude 10.00 m
Settings: shift the dates by +1 day 2 hours, tick Remove the GPS blockTag table after Apply, and the report line
date taken 2020:01:02 12:00:00; the three GPS rows are gone; camera make and model unchanged
report: shifted 1 date by 93600 s, removed the GPS block
the image data decodes to the same pixelsCommon pitfalls
Only the tags listed here are edited. IPTC captions, the Windows-only XP author and comment tags, and the thumbnail embedded in the file are left as they were, so a thumbnail made from the old picture still shows the old picture. A damaged EXIF block is refused rather than repaired.
File names and the file's own modified time are not EXIF, and a browser cannot change the latter. A date shift fixes the date taken that gallery apps sort by, not the date your file manager shows, and not the time stamp that GPS keeps in UTC.
- Read the line under the offset boxes before pressing Apply. It runs your offset on the first dated photo, so a wrong sign shows up before anything is downloaded.
- If a photo shows a place you do not want known, tick Remove the GPS block and also Remove the XMP packet; the readout under the table says when the XMP carries coordinates.
Common errors and how to fix them
- A file is declined as not a JPEG
- The first three bytes were not FF D8 FF. A file renamed to .jpg from another format is declined for that reason; export it as a JPEG first.
Best practices
- When merging two cameras, shift only the one that was wrong, in a separate run. The camera make and model in the tag table tell you which files belong to which camera.
Which dates a shift changes, and which it leaves
A date shift is wall-clock arithmetic on three tags. Two of them live in the Exif table and one in the first table, and each is ticked by default so that programs sorting by any of them agree.
Everything else that mentions time stays as it was, so a photo moved across time zones needs a second look afterwards.
- Date taken (tag 0x9003) is the one galleries sort by.
- Date digitized (0x9004) is when the picture was made into a file, usually the same moment as the date taken.
- Date modified (0x0132) is when software last changed the picture.
- Not touched: the time-zone offsets (0x9010 to 0x9012) and the GPS time and date stamps, which are recorded in UTC.