Welcome to GeoTagNinja

GeoTagNinja is an open-source photo geotagger GUI for Windows. GTN uses exifTool to read and write EXIF info. This also sets the limitations and capabilities. If exifTool can read/write a file, chances are so can GTN.

There is a “short” (15 mins) demo on YouTube if you feel like watching it. It’s from the original (Aug 2022) release but it still covers the main features more or less. It’s only gotten better since…

Screenshot from the November 2026 build (with dark mode on)

Download & Install (Windows 7+ x64 only)

  • Download the .msi file from Releases (latest) – Click on Assets if they are not showing.
  • The app is unsigned. This is because a certificate costs in the vicinity of £250 per year but the app is free, and I don’t particularly feel like splurging out on this at the moment.
    • Due to the lack of a signed certificate, when installing SmartScreen will complain that the app is unsafe. SmartScreen is meant to be called StupidScreen but MS made a typo there.
    • Just run the installer. As the code is public and people may compile on their own, everyone is welcome to ascertain the app is safe should they feel like.
  • The app comes prepackaged with ExifTool as the official exiftool-13.63_64.zip (one file in the install folder). On first start GTN unpacks it into %APPDATA%\GeoTagNinja (that’s where ExifTool lives, as an exiftool.exe plus an exiftool_files folder). GTN will automatically update ExifTool to whatever the current version is. You can always check the version it uses in the Help/About section. (Older GTN builds shipped the single-file 12.87, which cannot open paths of 260 characters or more; that build’s Resources\exiftool.exe is kept only as a fallback.)
  • The initially bundled webView2 installer has been removed because it had been more of a pain in the backside than benefit. If the app breaks complaining about the lack of webView2, it’s available here; This is likely to only happen on Win7 systems.

System Requirements

  • Windows 7+ x64 is needed. As I mentioned in the Roadmap support for Win7 will end in early 2027; existing compatible builds will be retained on GitHub.
  • IMPORTANT: You’ll need a GeoNames username and password to use toponym search (the username is also used first by the map’s search box). Register for free here
    • Copypaste from above: I’ve been told that by default the GeoNames API usage is disabled for (some?) new accounts. In that case you have to activate the free web service —> After registering and clicking the link in the activation email, you still need to activate your account for using web services. To do so, go to your Manage Account page [ http://www.geonames.org/manageaccount ] make sure your email shows up correctly. From here, click the Free Webservice activation link.
  • The map’s search box no longer needs registration of its own. It tries GeoNames first (using the username you’ve entered in Settings, place names only), then Photon (OpenStreetMap data, suggestions as you type), and finally Nominatim (OpenStreetMap data, only when you press Enter). Street addresses are found by Photon and Nominatim. The old ArcGIS API key is no longer needed or offered in Settings.
  • WebView2 is required but should come with your OS most likely. If not, get it from here

Features at-a-glance

  • Tag the location coordinates and City/State/etc details of multiple photos with the help of a map
  • Save and retrieve favourite locations, organised in a grouped tree, with an optional radius so photos taken there are labelled automatically (Auto Assign)
  • Import Track (GPX etc) files and associate them with the photos
  • Export coordinate tracks of photos to GPX or KML
  • Ability to define custom rules/logic wrt naming of places at country level
  • Get place names (country, state, city, etc.) and altitude from GeoNames for the selected location (altitude lookup can be disabled in Settings)
  • Drag the map marker, or long-press a point on the map, to apply a location to the selected photos
  • Search for a place or address from the map (no API key needed: GeoNames, then Photon, then Nominatim)
  • Overlay GPX tracks on the map before deciding whether to import them
  • Show the direction a photo was taken in (GPSImgDirection) and its destination on the map
  • Read and edit GPSDOP and GPSHPositioningError, and see GPSDateTime (read-only)
  • Filter list columns, rename (F2) and delete (Del) files from the list, and copy/paste tags between files
  • Batch Rename (Ctrl+Shift+R): rename, move or copy many files at once from a pattern (folder name, text, sequence number, dates, metadata, find-and-replace), with presets, a preview and XMP sidecars following along
  • Remove all geodata from files in one go
  • Flat Mode: load all subfolders of the current folder at once
  • Thumbnail View (switch from the View menu at any time; resize with Ctrl + mouse wheel, the slider or the menu), plus previews for common image types including RAW, HEIC, PNG and WEBP. Video files (MP4, MOV, …) can be listed, their location and dates read, and their location and descriptive details (title, caption, keywords, place names…) saved, with the experimental Show video files setting
  • Folder tree at the left of the main window (Ctrl+B) with favourite folders, Edit File(s) tabs for categories/keywords, source/description and contact details, templates, and Manage Favourites with radius, auto-assign and snap
  • Also opens AVIF, CRW, CRM, PSD and PSB files
  • Streaming folder load with progress on the taskbar button; loading a folder can be cancelled
  • Dark Mode (including a dark map option) and a choice of map layers
  • Optionally leave a file’s modified date untouched when saving (Settings), so a photo keeps showing when it was taken rather than when its location was added
  • Built-in Help (F1): getting started, every main feature and a keyboard-shortcut list, opening at the right topic from each dialog
  • Export and import Settings and Custom Rules
  • Translatable via Weblate; available in about 25 languages, the machine-made ones awaiting a human check (see Translations and Translation Progress)
  • Automatic ExifTool updates and in-app update checks; the update prompt shows what has changed since your version, and after an update the new entries are shown once (switch off in Settings)

Upcoming Features & Changes:

Nothing yet: everything in master is in the latest release (Build 9823). See changelog.md for what each release brought.

Parameters

The app works without parameters, however you may add:

  • -f or --folder (e.g. geotagninja.exe -f "g:\My Drive\DigiPics_4K_JPG") will launch gtn into a specified folder assuming it exists. Trailing backslash char will be auto-removed.
  • -c or --collection will launch collectionMode; read about this further down.

-f and -c are mutually exclusive.

Quirks and Things to Note

  • This is mentioned in Known Issues briefly but just to reiterate: if you have issues with file data not showing please try renaming/moving your files to a “simple” folder like C:\temp and make sure your file names don’t contain umlauts, special characters and anything “odd”. This is a limitation of ExifTool.
  • I have tried to test reasonably thoroughly but bugs probably remain. Do make backups of your files if you feel that’s the right thing to do.
  • As per usual I don’t accept any liability for damage and/or any other inconvenience you may suffer while/from using this app, no warranties and/or guarantees. The script is open source, and everyone is welcome to read it.
  • I’m kind of hoping this won’t come up as a problem but don’t bash me about country names please. I’m thinking disputed country names and areas here. They are ISO standards, the API returns those values, that’s it. Being from the UK I do think that the long name of United Kingdom of Great Britain and Northern Ireland (the) is a bit of a mouthful but it is what it is (and it’s relatively rarely disputed but for example Crimea does return Ukraine as a value, regardless of what’s been going on there since 2014; again, this isn’t a statement either way, it’s the GeoNames API’s response).
    • On this particular note above –> the script won’t change existing country details in files unless you explicitly edit them. So, it may happen that your existing file has the CountryCode GBR and the Country United Kingdom, that won’t be changed unless you do a Get From Web because the CountryCode-to-Country matching only runs in that case. That’s a feature, not a bug.
  • Altitude: in some cases, the API returns 32K or -32K as an altitude. Those are being blanked out.
  • Pressing Get From Web in Edit mode will always query the lat/long data for the file as in the main listview (the main page, in less geeky terms.). This is a feature. The assumption is that you aren’t going to change coordinates manually by typing stuff in and then query data. It’s a lot more likely you’ll change stuff using the map.
  • Time Zones (in the Edit File Form) are left as blank on open regardless of what the stored value is. There is no Exif Tag for TZ but only Offset, which is something like +01:00. As there is no indication for neither TZ nor DST per se I can’t ascertain that +01:00 was in fact say BST rather than CET, one being DST the other not. Either adjust manually or pull from web – the combination of coordinates + createDate would decisively inform the program of the real TZ value.
  • See my comment above re: the app being unsigned and SmartScreen getting derpy once in a while. On top of that…
    • If you have Avast running or some other nightmare that tries to capture iframes within apps the app will most likely crash sooner rather than later, at least on the first run. I think it should be okay afterwards.
    • I’ve seen once (and only once) ESET being silly about the app. Tbh no idea as to why. While I’d say the source code is open for public viewing and building it is probably clearer to just say: the app isn’t tracking or recording your data and isn’t doing anything that’s not strictly related to its function. If I ever were to include any tracking (no such plans for the foreseeable future), it’d be entirely anonymised anyway.
  • Regarding the GPSImgDirection on the map:
    • The logic is, as not to clutter the map the direction “line” will only show when only one image (with GPSImgDirection) is selected; if more than one such image is selected then the lines don’t show.
    • The way this is calculated requires a “distance” so that the target coordinate pair (“the image direction”) can be calculated. This is defaulted to 10km for the line and 1km for the triangle and is unlikely to change at this point.
  • Pasteing coordinate pairs into the GPSData (Lat/Long) of the Edit File:
    • The logic is that a Clipboard of only a pair of coordinates separated by (preferably) the Culture-invariant [aka comma] ListSeparator would be pasted into the Edit Form when pressing CTRL+V (e.g.: 56.1234, 12.5678) <– and nothing else.
    • I coded this in a relatively foolproof way but try not to outsmart it.
  • Flat Mode can be triggered from within the File menu. This will parse and load all subfolders within the currently selected folder. It’s a little experimental although should work.

A Particular Note on Working with Adobe Bridge (ACR) and RAW files > Saving as JPGs or Other Formats.

Basically, there appear to be two schools of thought, one propagating that RAW files themselves shouldn’t ever be edited, whereas the other is less specific on this matter. GTN allows to set a Process the original image on a per-extension basis. If set so then the updates will go into the RAW files as well as (subject to further settings) an XMP file. When not set then only the XMP file will be edited, leaving the RAW file intact. This latter (do-not-process-the-raw-file) can cause some issues:

  • GTN is coded so that data in XMP files take precedence over RAW files when there is conflicting information. The logic is that discrepancies should only happen if the user does not overwrite the RAW file and therefore whatever is in the XMP is created (and has been modified) on purpose and thus is the will of the user.
  • When using Bridge (and/or ACR) as a workflow tool, it has its own quirks, one being that GPS coordinates are read from the RAW file, not the XMP file, even if there is a discrepancy. To make matters worse, any updates to the GPS coords within Bridge are saved in the XMP file but upon refresh (F5) the values revert to those in the RAW file. One can say that is a feature of sorts.
    • This becomes a particular problem because if a user has the following workflow: download RAW from Camera > process & change coords in GTN (only write XMP) > save as JPG in Bridge then the JPG files will likely contain the wrong coordinates (those from the RAW file). There is nothing I can do about this. FWIW I checked and GeoSetter has the same thing, which is sensible given that this is ultimately an external factor. Amusingly enough a quick googling shows that users have reported this issue as early as 2017 but, while acknowledged, it’s been ignored by Adobe, certainly as late as Bridge v2022 (haven’t tried newer ones).
    • The only way to get around this is to process the RAW image (edit/overwrite as above) within GTN

Collection Mode – Hooking up GTN with Jeffrey Friedl’s Lightroom Classic Plugin “Run Any Command”

There is an optional CollectionMode – logic & usage are as follows:

  1. Download (and install) the plugin from http://regex.info/blog/lightroom-goodies/run-any-command – there are installation notes in Jeffrey’s website, if you are having issues with this part, please nudge him, not me.
  2. Within LRC under File | Plug-in Extras | jf Run Any Command | Configure... -> Configure the plugin as such: "c:\Program Files\GeoTagNinja\GeoTagNinja.exe" --collection={MANIFEST} (where {MANIFEST} is a literal string, i.e. just type that in with the curly brackets).
  3. Launch the Custom Command. This should trigger GTN in CollectionMode.
  4. Edit and interact with your files as usual. Don’t forget to save!
  5. When all’s done, close GTN. At the moment it doesn’t support being called twice with an updated file list. That may come later.

Things to note:

  • Technically this function also works if you provide a txt file path outside of LRC, such as "c:\Program Files\GeoTagNinja\GeoTagNinja.exe" --collection=C:\tmp\filelist.txt
  • If you specify a txt file that doesn’t exist, or there are no viable files in it then the app will just run normally (in “normal mode” that is.)
  • Lines in the txt file shouldn’t have trailing spaces.
  • When you’re in CollectionMode it’s generally possible to do anything, the app otherwise does apart from changing folders.

Building & Testing

If you want to build the project, Visual Studio is the most straightforward option. That said, the main project can also be built from VS Code.

There are 2 parts to the project. One is the “main” app, the other is the installer. The installer is a Visual Studio Installer Projects (.vdproj) project in GeoTagNinja_Setup/, part of GeoTagNinja.sln. It needs the “Microsoft Visual Studio Installer Projects” extension, and MSBuild can’t build it, so build it from the VS IDE (Release). It packages the Release build output, and some of its source paths are absolute (C:\Users\<you>\AppData\Local\build\...), so on another machine re-point those in the IDE. The .msi it produces is git-ignored.

For the “main” project you should be okay without anything separate once the proper toolchain is installed. This repo is an older-style .NET Framework 4.8 WinForms project, so VS Code is fine as an editor/task runner but it still relies on the Visual Studio/MSBuild toolchain underneath.

Building the main app in VS Code

Prerequisites:

Install either Visual Studio or Visual Studio Build Tools with the .NET desktop build tools workload. Make sure the .NET Framework 4.8 development tools targeting pack is installed. The C# VS Code extension is recommended.

The repo includes VS Code workspace files under .vscode/ for the main app:

  • Restore GeoTagNinja packages
  • Build GeoTagNinja (Debug x64)
  • Run GeoTagNinja (Debug x64)
  • Test GeoTagNinja (runs the NUnit tests against the Debug build)

The tasks call .vscode\msbuild.ps1, which finds MSBuild through vswhere. F5 launches the exe from %LOCALAPPDATA%\build\GeoTagNinja\.

GeoTagNinja_Setup/ (the installer) is deliberately not part of the VS Code workflow. It is a Visual Studio Installer Projects .vdproj, which MSBuild skips with warning MSB4078 (harmless, it appears in every solution build) and which only builds from the Visual Studio IDE. The .vscode tasks build, run and test the app only.

Tests

GeoTagNinja.Tests holds pure-logic NUnit tests (no ExifTool, no files, no UI) that run every value-handling test across a dozen cultures. They are not run automatically in Debug builds, but a Release build runs them and fails if any test fails. See GeoTagNinja.Tests/README.md for how to run them from a shell (a plain dotnet test won’t work with this project type).

Where things live

Notes for contributors are in the repository root: project-layout.md (folder/namespace conventions, moving forms) and development-notes.md (adding settings, keeping the designer loadable) and architecture-values.md (how a metadata value travels between file, memory and screen, and why formatting is culture-aware).

There is currently no preset release cycle. I don’t expect one to happen in a systematic way.

Translations, Contributions & Pull Requests

GeoTagNinja is translated via Weblate. Anything you translate or correct there syncs to the project and is included in future builds, and a new language you add on Weblate will appear in the app once it has been translated.

How the translations are made. Before this was set up, most of the non-English translations were incomplete and often very rough, and I can’t write or check most of these languages myself. So for roughly the 30 most widely spoken languages (plus a few I’ve been asked for) every string that nobody has translated yet has been filled in with an LLM-made first draft, and new or changed English text gets the same treatment. Those drafts are a starting point, not a finished translation: they are checked mechanically (placeholders such as {0}, line breaks, &&) but not for wording. Please do check them, and correct anything that reads oddly, uses the wrong term or is plain wrong.

  • A translation that a person has written is never overwritten. The drafts only fill gaps. If a Weblate translator has chosen a rendering (for example, translating a brand name that I would have left alone), it stays, unless the English text behind it changes.
  • Not on the list? Languages outside the most widely spoken ones are left to Weblate; add yours there and it will show up in the app.
  • Which language you get. A new user starts in their Windows display language if the app is at least 80% translated into it, otherwise in English. The choice in Settings always wins, and nothing is stored until you make one.
  • Arabic, Persian and Urdu are translated, but the windows are not (yet) mirrored for right-to-left reading.

As for code updates, I’m generally happy for anyone competent to add pull requests but I don’t always sync the commits as they come with GitHub until there is an actual release – it’s therefore possible that my local commits are lightyears away from the public ones. If you’d like to do a pull request, drop a message/open a ticket first please and we can sync the details.

Translation Progress

Translation status

Known Issues

  • There is a likelihood that the app will struggle to read file data if your files are kept in folders with accent marks (umlauts, non-standard English, Asian, Russian, Unicode, etc. characters) in the path and/or filename. This is a limitation of ExifTool + cmd. If you encounter a problem, move your files to something like C:\temp and see if it works better.
    • Paths of 260 characters or more only work with ExifTool 13 or newer, which GTN installs (see above). If GTN had to fall back to the packaged 12.87 they will fail: rename your files or temporarily move them to C:\temp. Windows itself must also allow long paths (LongPathsEnabled) for GTN to open and rename such files.
    • Alternatively, you can enable this feature if you’re running v1903 Windows 10 or later but it may have some unwanted effects so keep an eye out for changes caused by it.
  • The GeoNames API has its rather odd ways of dealing with the City tag [not the least because there isn’t such a tag in the API].
    • For a detailed rundown on the above see the code if interested + an overall discussion here
    • There is a Custom Rules section in Settings where users can amend their own rules and there is a wiki on the overall workings of this.
  • Pressing Get From Web either in Edit mode or on the map will always set the affected file to write-queue even if the values don’t actually change.
  • If user zooms “too far out” on Map they will get odd longitude values. The code handles this internally but map feedback is what it is.
  • I didn’t really manage to test this but for Nikon D5 the camera outputs NEF files with a built-in “Rating=0” tag. This becomes an issue in Adobe Bridge if an XMP is created and then the NEF file is subsequently overwritten by GTN because Bridge would ignore the Rating value in the XMP file going forward. For this reason, Rating is always sent back to the RAW files if they are saved. I don’t think this would be a problem but more of a heads-up that there are some oddities like this. Btw this force-save-Rating isn’t limited to Nikon camera saves in GTN.
  • If you change Time Offset (time zone) and nothing else at all then you’ll get a warning that “nothing has changed” in the xmp sidecar file. This is not a bug. There is no XMP tag for OffsetTime.
  • IPTC Keywords & XMP Subjects and your location data are only partly kept in step. Keywords are now read, shown and edited properly (see the Categories/Keywords tab of Edit File(s); each keyword is written as its own entry, and a keyword containing a comma stays one keyword), but when using Adobe Bridge or certain other tools, keywords get added by that software. This can be anything whatsoever (e.g. mum or I love you or Stratford) either defined by the user or the software. The problem is that there most often is no indicator as to what a keyword is, e.g. no City= or some such -> this makes it extremely difficult (read: impossible) to sync data with keywords. See: [XMP] Subject: England, GBR, geo:lat=51.54131500, geo:lon=-0.01036167, geotagged, Stratford, Stratford and New Town Ward, United Kingdom
    • You’ll notice that the two geo: are easy to capture and edit but the rest are just undefined character strings. A remove all geodata command therefore can’t tell whether say Fxxking is a verb or a town in Austria, or whether Bugyi is the Hungarian town of that name or the otherwise equivalent noun that translates as panties.
    • This is why GTN only ever touches what it can be sure of. With the setting Keep keywords in step with the location on (the default), saving a changed or removed location swaps the keywords that are exactly the photo’s previous country, country code, state, city or sublocation, plus its geo:lat= / geo:lon= keywords, for ones matching the new location (Remove all location data removes them). A country is also recognised by its other spellings (GB, GBR, United Kingdom). In Edit File(s) the keyword list updates as soon as you leave a location field, so you can see and correct the swap before saving. All other keywords stay. Keywords you add or remove by hand are kept; if you edit the keywords after the location swap, GTN leaves them as you left them.
    • With that setting off, nothing in the keywords follows a location edit, and Remove all location data will warn you that they stay as they were. When you edit keywords yourself, GTN writes them to both IPTC:Keywords and XMP-dc:Subject.
    • Known gaps: a place name that differs from what the file’s location fields say (say Bridge added Stratford and New Town Ward but your City is Stratford) is not recognised as a place name and stays; and keywords are only synced on save, so the keyword list on the Categories/Keywords tab doesn’t change until you save.
  • The Edit File form’s text fields (Caption, Headline, Copyright, …) are written to both the IPTC and the XMP block (and EXIF where there is a tag for it). IPTC has length limits (e.g. 64 characters for Object Name, 2000 for the caption) and ExifTool will truncate the IPTC copy with a warning; the XMP copy is complete, and GTN reads XMP first.

Possible Issues & Solutions

  • Read/Save file process fails semi-randomly: (yes this is a copy-paste from above but it seems not everyone’s reading the known issues section)
    • If your files are kept in folders with accent marks (umlauts, non-standard English, Asian, Russian, Unicode, etc. characters) in the path and/or filename. This is a limitation of ExifTool + cmd. If you encounter a problem, move your files to something like C:\temp and see if it works better.
    • Paths of 260 characters or more only work with ExifTool 13 or newer, which GTN installs (see above). If GTN had to fall back to the packaged 12.87 they will fail: rename your files or temporarily move them to C:\temp. Windows itself must also allow long paths (LongPathsEnabled) for GTN to open and rename such files.
    • Alternatively, you can enable this feature if you’re running v1903 Windows 10 or later but it may have some unwanted effects so keep an eye out for changes caused by it.
  • OSM Street Map tiles say something like “Unauthorized” (ie the actual map isn’t showing properly but gives an ugly error):
    • This is usually down to an attribution issue but GTN isn’t directly using that service but instead via Leaflet so it’s not something I can do much about
    • Change the map layer to something else, the issue should be transient hopefully – there is at least one other street-type map that should work (in theory…)
  • You get an “unauthorized” error when pulling data from the GeoNames API:
    • I’ve been told that by default the API usage is disabled for (some?) new accounts. In that case you have to activate the free web service —> After registering and clicking the link in the activation email, you still need to activate your account for using web services. To do so, go to your Manage Account page [ http://www.geonames.org/manageaccount ] make sure your email shows up correctly. From here, click the Free Webservice activation link.
    • Make sure you have provided a valid username and password for GeoNames in the Settings. For username do not use your email address but just the username itself. If you think you’ve done everything correctly, do the following:
      • If you need screenshots for the below visit this ticket reply.
      • Download & install the newest sqlitebrowser from here (any version will do)
      • Open sqlitebrowser and then in it open the file C:\Users\YOURUSERNAME\AppData\Roaming\GeoTagNinja\database.sqlite
      • Go to Browse Data
      • Pick the Settings table
      • In the filter for the SettingID type in geo (or just find the value on the screenshot)
      • Check that the username and password is what you’d expect to find (check for extraneous spaces pls). If it isn’t, open a ticket.
    • If everything looks as expected then try the following:

ToDos

  • IPTC Keywords & XMP Subjects alignment with the location data: the exact-match place names and geo: keywords now follow location edits (see Known Issues); the sync now shows in the keyword list of Edit File(s) before saving, and an old country is recognised by its code and English name too; recognising other place-name keywords (cities, states) is not possible, see Known Issues
  • A visually nicer UI (see Roadmap)

Roadmap

The UI is due for an overhaul – I started on WinForms back in 2022 because I was largely familiar with it but with AI around coding has become a lot faster and more efficient and so I’ll be moving to a more modern UI, Avalonia in early 2027 most likely. On top of that, the Edit File(s) form in particular has grown a lot of tabs and the fixed-position WinForms layout shows its age (the newer tabs are built in code for that reason, see development-notes.md).

Furthermore: The current .NET Framework 4.8 is a little obsolete. I haven’t switched to 4.8.1 because that doesn’t work on Win 7 and also offers nothing that’s relevant for this app, but Avalonia doesn’t support anything under .NET 8 and in all fairness Win7 is now very old. Existing releases will be retained on GitHub though.

When reporting bugs please specify

  • The OS’s version,
  • The OS’s language (incl region such as English/UK or English/USA),
  • Full path of your photo if the bug is related to reading or writing data,
  • Possibly upload the picture somewhere if not sensitive so I can test.