PlainTools

Coordinates to Country

Paste one coordinate pair or a list of up to 200 and get the country and its ISO 3166-1 alpha-2 code for each, with points at sea flagged rather than guessed.

Coordinates & GeocodingWorldwideSource: OpenStreetMap via the Photon reverse geocoderFree, no sign-up
Up to 200 lines, looked up one at a time.

How to find the country for a set of coordinates

  1. Paste coordinates. One pair per line, latitude first. Decimal and degrees-minutes-seconds formats are both read.
  2. Press Look up. Each point is checked in turn and the table fills in as results arrive.
  3. Read the country and code. Each row gives the country name and its two-letter ISO 3166-1 code.
  4. Check the yellow rows. Points with no country within 25 km — open sea, or a typo — are flagged rather than assigned to the nearest coast.
  5. Download CSV. Export the input, coordinates, country, code and status for your spreadsheet.

Why convert coordinates to a country

Tagging app users or orders by country

Logged coordinates become a country column for reporting or tax rules.

Checking shipping paperwork

Confirm which country a warehouse or pickup point's coordinates are in.

Cleaning scientific sample data

Field records often carry coordinates only; journals ask for the country.

Finding swapped coordinates

A point that lands in the wrong country is a quick sign that latitude and longitude are reversed.

Labelling flight or ship positions

Name the country under a list of positions, with points over open water flagged.

Adding a country filter to a dataset

An ISO code column lets data be grouped or joined to other country tables.

Checking points near a border

See which side of a border each point falls on, as OpenStreetMap records it.

Travel logs

Turn camera GPS tags into a list of countries visited.

Geofencing tests

Check test coordinates near borders before using them in an app.

Event monitoring

Event feeds with coordinates get a country name for sorting.

How the country is found

Each pair is sent to Photon, an open reverse geocoder on OpenStreetMap data, which returns the nearest mapped feature with its country and ISO 3166-1 alpha-2 country code. The tool shows those two fields.

If Photon's nearest feature is more than 25 km from the point, the row is marked as having no country rather than named after the nearest coast. A point a few kilometres offshore may still return the coastal country, while one far out returns nothing.

Borders follow OpenStreetMap. Where a border is disputed, OpenStreetMap records the line of actual control on the ground, which may differ from a particular government's position. This is a data lookup, not a statement about sovereignty.

Lines are looked up one at a time with a short pause between them. Nothing is stored by this site; the coordinates go only to Photon.

Frequently asked questions

What is the ISO code?

The two-letter country code from the ISO 3166-1 standard, such as US, GB or JP — the codes used in internet domains and most databases.

Why does a point at sea show no country?

The page only names a country when a mapped feature is within 25 km. Far out at sea there is none, so it says so instead of guessing the nearest coast.

How are disputed areas handled?

They follow OpenStreetMap, which maps the situation on the ground. That may not match a given government's official position.

Can I convert a long list?

Up to 200 lines per run. Longer lists can be pasted in batches.

Does it accept degrees, minutes and seconds?

Yes — for example 35°39′31″N 139°42′1″E — as well as decimal degrees and decimal minutes.

Are my coordinates kept?

No. They are sent to Photon for the lookup and are not stored here.

Related tools