How to Add GPS Coordinates to a Photo
Four ways to write a known location into a photo's EXIF data β on your phone, with a desktop map, with ExifTool, or a whole folder at once β so every app shows the place.
You know where a photo was taken β you just want that location stored in the file, so Apple Photos, Google Photos, Lightroom, and any map all show it without you explaining. That location lives in the EXIF metadata, in two tags: GPSLatitude and GPSLongitude. Every method below does the same underlying thing β writes those two tags β and they differ only in interface and how many photos you can handle at once.
TL;DR: Get the coordinates in decimal degrees from Google Maps. For one photo, edit the location right in your phone's Photos app β it's free and built in. On a computer, drop a pin on a map in Apple Photos or Lightroom. For exact coordinates or a whole folder, use ExifTool from the command line. If you have a folder of photos whose locations you don't know, that's a different problem β see the geotagging-without-GPS guide.
First: get the coordinates
Before writing anything, get the location as a latitude/longitude pair. The quickest source is Google Maps: find the spot, right-click (or long-press on mobile) exactly on it, and the coordinates appear at the top of the menu β click to copy. You'll get something like 48.8584, 2.2945. That decimal-degrees format is what every tool below expects.
Method 1 β On your phone
Both major phone platforms can now write GPS into a photo with no extra software.
- iPhone / iPad (iOS 15 and later) β Open the photo in the Photos app, swipe up to reveal the info panel, and tap Adjust next to the location row (it says "Add Location" if there's none yet). Search for the place or drop a pin. The GPS is written into the file immediately.
- Android β Open the photo in Google Photos, tap the three-dot menu, and choose Edit location (sometimes under "Add a location"). Pick the place. Note that for some photos Google stores the edited location in your Google Photos account rather than re-writing the original file's EXIF β if you need the tag in the file itself, export the photo afterward or use Method 3.
This is the right method for a handful of photos when you have your phone in hand.
Method 2 β On a desktop, with a map
A map you can drop a pin on is the most intuitive way to tag photos you're reviewing on a computer.
- Apple Photos (Mac) β Select a photo, open the Info panel (βI), and use the map at the bottom. You can assign a location, and assign the same location to a multi-photo selection in one action β useful for a batch from one place.
- Adobe Lightroom Classic β The Map module shows your library on a world map; drag photos onto a location, or drop a pin. Lightroom writes standard GPS EXIF that every other tool can read.
- A dedicated EXIF editor β If you don't use a full photo manager, a standalone metadata editor (there are free desktop and web ones) opens a photo, shows its EXIF, and lets you set GPS without importing anything into a library.
Desktop map tagging is comfortable for tens of photos. Past that, the per-photo clicking becomes the bottleneck β see Method 4.
Method 3 β ExifTool, for precision and batches
ExifTool is the reference tool for reading and writing image metadata. It's a free, open-source command-line program, and it's the most precise option β you type exact coordinates, and it writes exactly those.
For a single photo:
exiftool -GPSLatitude=48.8584 -GPSLatitudeRef=N \
-GPSLongitude=2.2945 -GPSLongitudeRef=E photo.jpg
ExifTool also accepts a whole directory in place of one filename, and can read coordinates from a CSV β so if you have a spreadsheet mapping filenames to places, you can tag hundreds of photos in one command. It's the power-user path: exact, scriptable, no GUI. The trade-off is that you need to be comfortable in a terminal.
Method 4 β A whole folder at once
When you have a large folder, the question splits in two:
- You know where each photo was taken (a trip you remember, captioned scans). A batch map tool lets you select many photos and assign one location, or pin groups quickly. Apple Photos' multi-select assignment (Method 2) covers this for Mac libraries; RetroTagr offers the same select-and-pin on a web map for any platform, with the locations written as standard EXIF GPS on export.
- You don't know where some of them were taken. That's not a writing problem β it's a discovery problem, and no map can solve it for you. AI visual recognition (RetroTagr's main feature) proposes locations from what's in each photo; you review and accept. The full workflow is covered in the geotagging-without-GPS guide.
Most real libraries are a mix: some photos you can place from memory, some you can't. A tool that does both β manual map for the known ones, AI suggestions for the unknown β saves the most time.
Which method should you use?
| Situation | Best fit | | -------------------------------------------- | -------------------------------------------------- | | One or two photos, phone in hand | Method 1 β edit location in Photos / Google Photos | | Tens of photos, reviewing on a Mac | Method 2 β Apple Photos map, multi-select assign | | Exact coordinates, or scripted/CSV batch | Method 3 β ExifTool | | A folder where you know all the locations | Method 4 β batch map assignment | | A folder where you don't know some locations | AI visual recognition β see the without-GPS guide |
Wrap-up
Adding GPS to a photo is, underneath every method, a one-line metadata write. For a few photos, your phone already does it for free. For a Mac library, Apple Photos' map is the path of least resistance. For exactness or scripting, ExifTool. The only genuinely hard part isn't writing the coordinates β it's knowing them; when you don't, AI geotagging is the tool, and if you're weighing a desktop geotagger against a web one, the RetroTagr vs GeoSetter comparison lays out that choice.