Skip to content
Jellykit

GeoJSON Viewer

Draw GeoJSON points, lines and polygons on a simple map, read each feature’s properties and check the file against RFC 7946.

  • Runs on your device
Loading tool

About GeoJSON Viewer

Paste GeoJSON or drop a .geojson file to see its features drawn on a longitude and latitude grid. Point at a feature, tap it, or step through them with the arrow buttons to read its properties.

The file is checked as it is drawn: unclosed polygon rings, positions that are not numbers, coordinates outside the valid range, polygons wound the wrong way and other departures from RFC 7946 are listed with where they are. No map tiles are loaded, so nothing about your data or where it is leaves this browser.

How it works

  1. The text is parsed as JSON, then walked feature by feature. Each geometry is read according to RFC 7946, and anything that breaks the format is noted with its path, such as features[3].geometry.coordinates[0].
  2. Features are drawn with a plain equirectangular projection: longitude across, latitude up, with longitude narrowed by the cosine of the middle latitude so shapes keep their proportions. The view fits the bounding box of all coordinates.
  3. Finding the feature under the pointer checks points first, then lines, then the inside of polygons, so small features drawn on top of a large area can still be picked.

Questions

Why is there no street map underneath?

A background map would have to be fetched from a tile server, which would reveal the area you are looking at. The features are drawn on a grid of longitude and latitude lines instead, so the file stays private.

My shapes appear in the wrong place or not at all. Why?

GeoJSON coordinates are longitude first, then latitude, in WGS 84 degrees. A file with latitude first, or in a projected system such as metres, will be drawn wrongly; the check flags coordinates outside the valid range.

Does it check that polygons do not cross themselves?

No. It checks structure, types, ring closure, coordinate ranges and ring direction, but not self-intersection.

How large a file can it open?

Up to 10 MB. Files of a few hundred thousand vertices draw comfortably; the first 200 problems are listed with a count of the rest.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.