How to Set EXIF GPS Coordinates Manually

19 June 2023 · 1 min read · EXIF, Terminal, Photography, GPS

Contents

Usually I use a GPS tracker on my phone when taking pictures so that I can sync up the GPS data later. Every so often I forget to start the tracker and need to manually set the GPS coordinates. The easiest way I’ve found is exiftool — the swiss army knife of EXIF data. The -overwrite_original flag prevents it from creating a backup file.

1
exiftool -XMP:GPSLatitude="XX.XXXXX" -XMP:GPSLongitude="YY.YYYYYY" -overwrite_original <IMAGE_FILES>

To get the actual coordinates, any online map tool that shows decimal degrees will do.