IP Geolocation Tool — City Accuracy, Tested

Every IP geolocation tool prints a city, and almost none prints how much that city is worth. This one does the opposite of guessing: it asks three libraries for the same address, shows the city and coordinates each one returns, and measures the distance between their pins in kilometres.

The benchmark behind the numbers: 54 datacentre addresses drawn from the published AWS region file, where the true city is documented, plus five smaller blocks from the same file where the true city is the same. The median error on the big blocks was 1 km. On the small blocks, both libraries were wrong by up to 4,767 km and agreed with each other doing it.

Run the tool on any address, then read the spread verdict before you trust the city.

108 city readings on documented datacentre blocks: 96 within 50 km, median error 1 km. Five edge blocks: both libraries wrong by 521 to 4,767 km.

probed

Three-library geolocation

One address, three libraries, distances between pins. Leave it empty to look up this browser.

Not run yet.

Three-library geolocation
LibraryCountryCityRegionCoordinates
Waiting for the first answer.
Run the lookup to produce a copyable result.

Each run sends the address to three public libraries and prints what they return: ipwho.is, ipinfo.io and ipapi.co. Distances are great-circle kilometres computed in the browser from the coordinates the libraries themselves returned. The verdict words are this page's: pin-consistent means every pin within 50 km of the others, metro-split means 50 to 500 km, long-range split means further. Nothing you type is stored or sent anywhere else.

1. What the city answer is worth on datacentre blocks

Testing accuracy needs addresses whose true city is not itself a geolocation guess. Cloud regions provide them: Amazon documents a datacentre city for each of its regions and publishes every address block it uses. For each of 18 regions, three addresses were sampled from the largest blocks in that file, then queried against two libraries that return coordinates. 108 city readings came back.

96 of the 108 landed within 50 km of the documented city, and the median error was 1 km. The table shows the worst reading per region, so every number below is the least accurate answer a library gave.

What the city answer is worth on datacentre blocks
RegionDocumented cityLibraries returnWorst error
us-east-1AshburnWashington, Ashburn42 km
us-east-2ColumbusColumbus0 km
us-west-1San FranciscoSan Jose67 km
us-west-2PortlandBoardman234 km
eu-west-1DublinDublin2 km
eu-west-2LondonLondon3 km
eu-west-3ParisParis1 km
eu-central-1FrankfurtFrankfurt am Main1 km
eu-north-1StockholmStockholm0 km
ap-southeast-1SingaporeSingapore0 km
ap-southeast-2SydneySydney0 km
ap-northeast-1TokyoTokyo1 km
ap-northeast-2SeoulIncheon27 km
ap-south-1MumbaiMumbai1 km
ca-central-1MontrealMontreal, Montréal2 km
sa-east-1Sao PauloSao Paulo, São Paulo1 km
ap-east-1Hong Kong, ChinaHong Kong5 km
af-south-1Cape TownCape Town1 km

54 addresses from the largest EC2 blocks of 18 regions, two libraries with coordinates, all probed 2026-10-22. A third library answered the first eight regions with the same cities and then rate-limited the rest.

Two rows need reading rather than scoring. San Jose and Santa Clara against a San Francisco Bay Area region is a metro boundary dispute of 58 to 67 km, the kind any city definition produces. Boardman against Portland is stranger: 234 km by the marketing name, but Boardman, Oregon is the town that actually hosts the datacentre. The libraries may be more precise than the label they were scored against.

2. Same regions, smaller blocks, wrong city

Accuracy did not survive a change of block. Five smaller prefixes from the same AWS file, in regions the table above scored well, were sampled one address each. Every one was placed far from the documented city, and on every block both libraries named the same wrong city together.

Same regions, smaller blocks, wrong city
RegionDocumented cityBoth libraries returnDistance off
us-east-1AshburnHouston1,933 km
af-south-1Cape TownLagos4,767 km
ap-southeast-2SydneyAuckland2,156 km
eu-north-1StockholmCopenhagen521 km
us-west-2PortlandPhoenix1,619 km

The same-wrong-city pattern is the finding. Two vendors naming Lagos for a Cape Town block is not coincidence; both buy city mappings from a small set of upstream data feeds, so one vendor's stale or wrong record propagates to the other. Cross-checking two libraries protects you less than it appears, because on the city field their sources are usually shared.

It also means geolocation accuracy is a property of the address block, not of the vendor or the operator. The same company, in the same region, one prefix apart, gets a 1 km answer and a 4,767 km answer. Nothing in either response tells you which kind you received.

3. Agreement on a name is not agreement on a point

The third test compared coordinates rather than strings. Across a 24-address spread covering anycast resolvers, clouds, VPS hosts and residential lines, the distance between the pins different libraries returned had a median of 10 km, and 15 of the 20 non-anycast addresses stayed within 50 km. Two addresses broke the pattern in a way city names would never show: both in Guangzhou, all three libraries printed the same city name, and the pins were 1,297 km apart.

That is why the tool above prints coordinates and kilometres instead of stopping at the city string. A matching string is cheap; a matching pin is the thing to check.

Ground truth has its own trap, found while picking benchmark addresses. The front-door addresses of famous universities do not geolocate to the campus: one resolved onto a delivery network in Sweden, one onto a cloud region in Europe, one onto a security vendor's range. Institutions rent their front door, so a website lookup answers where the vendor put the door, not where the institution is. The AWS region file was chosen because its cities come from the operator of the addresses, not from a lookup.

4. How to read a city answer without a confidence radius

No library in this comparison publishes a confidence radius, so no tool can honestly print one. What a careful reading can do is bound the uncertainty from the outside, in three steps.

First, run at least two libraries and read the pin distance, not the city strings. Within 50 km, the city is a metro-level fact. Beyond 500 km, at least one library is describing a different block than you think you asked about. Second, weigh agreement by its source: two libraries naming the same city usually means one feed, so treat it as a single vote. Third, take ownership from the ASN and country from the location field, and never let a city string outrank either. The four-library lookup covers that side of the question.

Where the benchmark was strongest, the city was worth trusting: median 1 km across the largest datacentre blocks on three continents. Where it broke, it broke silently. The distance between pins is the only signal in the response that tells you which case you are in.

Frequently asked

How accurate is an IP geolocation tool at city level?

On the largest datacentre blocks of 18 AWS regions, 96 of 108 city readings landed within 50 km of the documented region city and the median error was 1 km. But accuracy attaches to the address block, not the vendor: five smaller blocks in the very same regions were placed 521 to 4,767 km away. A city answer is as good as the block behind it, and you cannot tell which kind of block you have until you compare libraries.

Why did two libraries place an Ashburn block in Houston?

Because both buy their city mapping from the same upstream data feed, so one vendor's error is copied by the other. In the edge-block test the two libraries returned the same wrong city on all five blocks. Agreement between libraries is corroboration only when their sources are independent, and for city fields they usually are not.

If every library prints the same city, is the pin reliable?

Not necessarily. On two addresses in Guangzhou all three libraries returned the same city name while their coordinate pins sat 1,297 km apart, roughly the distance from Beijing to Shanghai. City strings are cheap to agree on; coordinates are where the disagreement hides. Compare the pins, not the strings.

Does any library publish a confidence radius for the city?

None of the three libraries used here exposes one, and this page will not invent a number. Read a city answer as a metro-level hint: check the coordinate spread between libraries, then the ASN for who operates the address, and only then decide whether the city is precise enough to act on.