PicOrganizer
Back to the blog
How to Organize Photos by Location: The Complete Guide
Guides

How to Organize Photos by Location: The Complete Guide

March 28, 20265 min read

Read this article in French

Sorting by date is usually the first method people use to organize their photos. But there is another dimension, just as rich and often more intuitive: the place. Where was this photo taken? In which city? In which country? These are the questions our memory asks naturally when we look for a moment from the past.

In this guide, I explain how to use the GPS coordinates stored in your photos to organize your photo library by location automatically.

The GPS data in your photos

Since around 2010, most smartphones record GPS coordinates in every photo by default. This information is stored in the EXIF metadata as two numbers: latitude and longitude. For example, a photo taken in front of the Eiffel Tower contains:

  • Latitude: 48.8584
  • Longitude: 2.2945

These coordinates are accurate to within a few meters, which is more than enough to identify a neighborhood, a city or a country.

Check whether your photos have GPS data

To find out whether your photos contain GPS data, you can use our photo GPS extractor. Drop a photo on it and the tool shows the coordinates, if there are any, with a link to the matching map.

If your photos have no GPS data, location services were probably turned off on your device. You can turn them on in your privacy settings for your next photos.

Reverse geocoding: turning coordinates into place names

GPS coordinates are useful, but "48.8584, 2.2945" means nothing to anyone. What you want is "Paris, France". Converting coordinates into a place name is called reverse geocoding.

There are several reverse geocoding services:

  • Google Maps Geocoding API: very accurate, but paid beyond a certain quota
  • Mapbox: a commercial solution
  • OpenStreetMap Nominatim: a free, open source service

PicOrganizer uses Nominatim because it is open, respects privacy and gives good results for most places. For each photo with GPS data, the browser sends the PicOrganizer server the coordinates rounded to two decimal places (about 1 km), never the photo itself. The server queries Nominatim and returns the name of the country, the region and the city.

The different levels of sorting by location

Depending on your needs, you can sort at different levels of detail.

By country

The broadest level. Perfect for organizing the photos of a frequent traveler:

Photos/
  ├── France/
  ├── Italy/
  ├── Spain/
  ├── Japan/
  └── Morocco/

By city

The most common level. Each photo lands in the folder of its city:

Photos/
  ├── Paris/
  ├── Rome/
  ├── Barcelona/
  ├── Tokyo/
  └── Marrakesh/

By country, then by city

A combination of both, ideal for large collections:

Photos/
  ├── France/
  │   ├── Paris/
  │   ├── Lyon/
  │   └── Marseille/
  └── Italy/
      ├── Rome/
      ├── Florence/
      └── Venice/

This is usually the best structure: readable, scalable and easy to browse.

Privacy: what happens to your GPS data?

An important question: when a tool does reverse geocoding, it has to send your coordinates somewhere. Is that a privacy problem?

With PicOrganizer, only the GPS coordinates (latitude and longitude), rounded to two decimal places (about 1 km), leave your computer. They go through the PicOrganizer server, which queries Nominatim on its behalf: Nominatim simply receives "give me the place name for 48.86, 2.29" and answers "Paris, France". Never the photo itself, never a user ID, and no coordinates are stored. The details are on our local processing page.

If you would still rather not use reverse geocoding, you can always sort by date. And if you want to publish photos without their GPS data, use our EXIF remover.

Sorting by location in practice

Here is how to do it with PicOrganizer (sorting by location is included from the Standard plan, €19, paid once):

  1. Open the organizer
  2. Drag and drop your photo folder
  3. Select "Sort by location"
  4. Choose the level: country, city, or country and city
  5. Start the analysis

The tool analyzes each photo, extracts the GPS coordinates, converts them into place names and builds the folder tree in a few seconds. For 2,000 photos, allow about a minute of processing (limited by the speed of requests to Nominatim, which enforces a fair-use quota).

Combining date and location

The best folder trees combine chronology and geography. For example:

2024/
  ├── 04 - April/
  │   ├── Italy/
  │   │   ├── Rome/
  │   │   └── Florence/
  │   └── Spain/
  │       └── Barcelona/

With this structure, you find "the photos of Rome in April 2024" instantly, without searching. With PicOrganizer's custom sorter (Premium plan), you can build exactly the folder tree you want by stacking criteria.

Special cases

Photos without GPS data

If some of your photos have no GPS data (imported from a device without location services, for example), they go into an "Unknown" folder. You can then handle them by hand or add GPS coordinates with our EXIF editor.

Photos taken on the move

If you take a photo from a train or a plane, the GPS coordinates match your exact position when you pressed the shutter. You may end up with photos filed in unexpected places. That is the price of precision.

Sensitive places

Some places (military bases, for example) may return generic or incorrect results. It is rare, but it can happen.

Conclusion

Sorting by location is one of the most natural and satisfying ways to organize photos. Thanks to the GPS coordinates already in your photos and to reverse geocoding, the whole process can be automated. In a few minutes, a collection of thousands of photos can be sorted by country and by city, with no manual input.

It is also a nice way to rediscover forgotten memories: open a "Lisbon" folder you haven't looked at in years, and you will come across photos you had completely forgotten.

Sort my photos by location now

Read also