Point in Polygon Checker

Paste a GeoJSON polygon and a list of coordinates to see which points fall inside it.

The Point in Polygon Checker runs entirely in your browser. Boundaries and coordinates, which are often sensitive location data, are tested on your device and never uploaded.

Open the GeoJSON Viewer

About Point in Polygon Checker

Checking whether a coordinate falls inside a shape is the question behind every geofence, delivery zone and catchment area, and it is easy to get subtly wrong. This tool runs the even-odd ray cast against every polygon in a GeoJSON document and reports each point as inside, outside or sitting on the boundary. Interior rings behave the way the specification says they should: a point inside a hole comes back outside. Coordinates can be typed the way people write them, latitude first, or in the longitude-first order GeoJSON itself uses, and the results can be copied back out as a GeoJSON FeatureCollection to draw on a map.

Features

How to use the Point in Polygon Checker

  1. Paste the polygon or FeatureCollection you want to test against
  2. Enter the coordinates to check, one per line
  3. Set whether your coordinates are latitude first or longitude first
  4. Read the verdict per point, and export the results as GeoJSON if you need them on a map

Example

Input

51.5074, -0.1278

Output

inside — Central London

Each point reports the named feature that contains it, so overlapping zones stay distinguishable.

Common errors & troubleshooting

Frequently asked questions

How does a point-in-polygon test work?
It casts a ray from the point and counts how many polygon edges it crosses. An odd count means the point is inside, because each crossing switches between inside and outside. Holes fall out of the same rule for nothing extra.
Does this handle polygons that cross the antimeridian?
Only if the polygon is already split at 180 degrees, which is what RFC 7946 asks for. A shape whose coordinates run past ±180 will be tested as drawn, which is rarely what you want near the date line.
What happens to a point exactly on the polygon edge?
It is reported as a boundary hit rather than forced either way, because the answer there is a matter of convention rather than geometry. The tolerance controls how close counts as on the edge.
Can I test hundreds of coordinates at once?
Yes. Each line is tested against every polygon in the document, and the results table names the shape that matched. The whole run happens in the page, so a long list stays fast.
Is this accurate for large countries or continents?
The test is done on the flat latitude and longitude plane, which is exact for the inside-or-outside question as long as the polygon edges are treated as straight in those coordinates — the same assumption GeoJSON itself makes.

Related tools

All ArrayKit tools