# EsriJSON — Esri JSON (Feature/Geometry JSON)

> EsriJSON (Esri JSON (Feature/Geometry JSON)): Esri's JSON encoding of features, geometries, fields and spatial references used by the ArcGIS REST API. Specs, software and free sample files; convert EsriJSON to 40 formats online.

- Page: https://beta.mygeodata.cloud/formats/esrijson



## What is a EsriJSON file?

Esri JSON is the JSON encoding of geometries and feature sets defined by Esri for the ArcGIS REST API. It is returned by ArcGIS Server, ArcGIS Enterprise and ArcGIS Online feature services when queries request JSON output, and it can also be saved as plain files. A feature set records the geometry type (esriGeometryPoint, esriGeometryMultipoint, esriGeometryPolyline or esriGeometryPolygon), a spatialReference given as a WKID or WKT, a fields array with names, types and aliases, and a list of features with attributes and geometry.

Unlike GeoJSON, Esri JSON can use any coordinate system identified in the spatialReference object and can carry z and m values. Polygons are stored as rings, with outer rings ordered clockwise, and polylines as paths. Each file holds a single layer with one geometry type. The format is mainly used to extract data from ArcGIS services and to exchange features with Esri tools.

Esri JSON files usually come from ArcGIS REST API queries against feature services, or from colleagues who export features from ArcGIS for use in scripts and web apps. The .json extension is shared with GeoJSON and other JSON files, so check for keys such as spatialReference, fields and features. Confirm the coordinate system and the single geometry type before combining files.

### Technical details

| | |
|---|---|
| Full name | Esri JSON (Feature/Geometry JSON) |
| Data type | Vector · Web & JSON |
| File extension | .json |
| Files | Single file |
| Media type | application/json |
| Geometry types | Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon |
| Multiple layers | No |
| Mixed geometry in a layer | No |
| Attribute names | — |
| Coordinate system | Any (EPSG, ESRI, custom) |
| Converter support | Read only |
| Typical software | ArcGIS Pro, ArcGIS Enterprise, ArcGIS Online, ArcGIS Maps SDK for JavaScript, GDAL/OGR, QGIS |
| Specification | https://developers.arcgis.com/rest/services-reference/enterprise/featureset-object/ |

### Specifications & references

- https://developers.arcgis.com/rest/services-reference/enterprise/featureset-object/
- https://developers.arcgis.com/rest/services-reference/enterprise/geometry-objects/
- https://gdal.org/en/stable/drivers/vector/esrijson.html

### Sample EsriJSON files — free download

- [Places (points)](https://beta.mygeodata.cloud/static/landing/samples/v1/esrijson/st-helena-places.esri.json) — 58 places of Saint Helena (20 settlements, 17 peaks, 21 points of interest) with name, category, elevation from Copernicus DEM and OSM id. Esri JSON FeatureSet as returned by an ArcGIS REST query (f=json). (16.4 kB, EPSG:4326)
- [Roads and paths (lines)](https://beta.mygeodata.cloud/static/landing/samples/v1/esrijson/st-helena-roads.esri.json) — 110 named roads, streets, tracks and paths (OSM segments merged by name) with class, surface, speed limit and length. Esri JSON FeatureSet as returned by an ArcGIS REST query (f=json). (289.8 kB, EPSG:4326)
- [Land cover (polygons)](https://beta.mygeodata.cloud/static/landing/samples/v1/esrijson/st-helena-landcover.esri.json) — 190 land-cover polygons (forest, scrub, farmland, residential, water, …) from OpenStreetMap with area in hectares. Esri JSON FeatureSet as returned by an ArcGIS REST query (f=json). (334.6 kB, EPSG:4326)

### Convert EsriJSON to other formats

- [EsriJSON to GeoJSON](https://beta.mygeodata.cloud/converter/esrijson-to-geojson)
- [EsriJSON to KML](https://beta.mygeodata.cloud/converter/esrijson-to-kml)
- [EsriJSON to KMZ](https://beta.mygeodata.cloud/converter/esrijson-to-kmz)
- [EsriJSON to SHP](https://beta.mygeodata.cloud/converter/esrijson-to-shp)
- [EsriJSON to CSV](https://beta.mygeodata.cloud/converter/esrijson-to-csv)
- [EsriJSON to GeoPDF](https://beta.mygeodata.cloud/converter/esrijson-to-geopdf)
- [EsriJSON to GPX](https://beta.mygeodata.cloud/converter/esrijson-to-gpx)
- [EsriJSON to TopoJSON](https://beta.mygeodata.cloud/converter/esrijson-to-topojson)
- [EsriJSON to DXF](https://beta.mygeodata.cloud/converter/esrijson-to-dxf)
- [EsriJSON to XLSX](https://beta.mygeodata.cloud/converter/esrijson-to-xlsx)
- [EsriJSON to GPKG](https://beta.mygeodata.cloud/converter/esrijson-to-gpkg)
- [EsriJSON to MVT](https://beta.mygeodata.cloud/converter/esrijson-to-mvt)
- [EsriJSON to SQLite](https://beta.mygeodata.cloud/converter/esrijson-to-sqlite)
- [EsriJSON to FGB](https://beta.mygeodata.cloud/converter/esrijson-to-fgb)
- [EsriJSON to MIF](https://beta.mygeodata.cloud/converter/esrijson-to-mif)
- [EsriJSON to SVG](https://beta.mygeodata.cloud/converter/esrijson-to-svg)
- [EsriJSON to DGN](https://beta.mygeodata.cloud/converter/esrijson-to-dgn)
- [EsriJSON to FileGDB](https://beta.mygeodata.cloud/converter/esrijson-to-filegdb)

## Frequently asked questions

### How can I tell Esri JSON from GeoJSON if both use the .json extension?

Open the file in a text editor. Esri JSON has top-level keys such as geometryType, spatialReference, fields and features, with geometry stored as rings, paths or x/y values. GeoJSON uses a type property with values like FeatureCollection and a coordinates array.

### Why do my polygons look wrong or lose holes after conversion?

Esri JSON stores polygons as rings, with outer rings clockwise and holes counter-clockwise. Software that ignores this ring order or flattens the rings can misplace holes. Check the result against the source and make sure the geometry type is read as polygon.

### Which coordinate system does an Esri JSON file use?

It is defined in the spatialReference object, given as a WKID (such as an EPSG code) or as WKT. If this object is missing, the coordinate system is unknown and must be assigned manually before the data is used with other layers.

### What is a EsriJSON file?

Esri JSON is the JSON encoding of geometries and feature sets defined by Esri for the ArcGIS REST API. It is returned by ArcGIS Server, ArcGIS Enterprise and ArcGIS Online feature services when queries request JSON output, and it can also be saved as plain files. A feature set records the geometry type (esriGeometryPoint, esriGeometryMultipoint, esriGeometryPolyline or esriGeometryPolygon), a spatialReference given as a WKID or WKT, a fields array with names, types and aliases, and a list of features with attributes and geometry.

Unlike GeoJSON, Esri JSON can use any coordinate system identified in the spatialReference object and can carry z and m values. Polygons are stored as rings, with outer rings ordered clockwise, and polylines as paths. Each file holds a single layer with one geometry type. The format is mainly used to extract data from ArcGIS services and to exchange features with Esri tools.

### How do I open a EsriJSON file?

EsriJSON files can be opened in ArcGIS Pro, ArcGIS Enterprise, ArcGIS Online, ArcGIS Maps SDK for JavaScript and GDAL/OGR. Without any software you can preview and convert them online in MyGeodata Cloud.

### What can I convert EsriJSON to?

Popular conversions are GeoJSON, KML, KMZ, SHP, CSV and GeoPDF. In total the Converter writes EsriJSON data to 40 formats.

