.GEOJSON

GEOJSON File

GeoJSON geospatial data file
Ask a question
QUICK ANSWER

A GEOJSON file stores geographic features - points, lines, and polygons with their attributes - as plain JSON text, and it is the standard format for web mapping. To view it on a map without installing anything, drag it onto geojson.io or upload it to a GitHub repo. For GIS work, open it in the free QGIS.

Developer: GeoJSON working group (2008); standardized by the IETF as RFC 7946 (2016) Category: GIS Files Open standard MIME: application/geo+json
OPENS ON Windows macOS Linux Web
Related: .GPX · .GML · .KML · .SHP

On this page

19k+ extensions indexed
Last reviewed Aug 23, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the GEOJSON file format?

A .geojson file contains geographical data encoded in the JSON text format. The file can store information about locations (points), lines, polygons, or other geometry types. Its contents can represent real-life objects - for example, a line can represent a road or a transmission line, while a polygon might outline a building footprint or an administrative boundary.

A .geojson document is structured around a top-level type field, most commonly "FeatureCollection", which holds an array of Feature objects. Each Feature pairs a geometry (coordinates) with a free-form properties object for attribute data such as name, population, or category. The format was first defined by a community working group in 2008 and standardized as IETF RFC 7946 in 2016, which fixed the coordinate reference system to WGS 84 and mandated longitude-before-latitude coordinate order - a common source of errors when tools assume the reverse.

.geojson files do not necessarily store only traditional map data such as country boundaries or roads. Such files are also used for abstract spatial data, for example, a GSM signal coverage map or navigational waypoints. Because the format is plain UTF-8 text built on JSON, data can easily be transferred between applications and is natively consumed by web-mapping libraries such as Leaflet, Mapbox GL, and OpenLayers. For large datasets, more compact alternatives like TopoJSON offer smaller file sizes, but .geojson remains the standard exchange format for web mapping. Related geospatial formats include .kml and .gpx.

Security & safety

RISK: LOW

GeoJSON is plain JSON text with no executable code, so the file itself is safe to open in any editor. Two caveats: very large GeoJSON files can freeze a browser-based viewer (use QGIS or convert to a binary/topology format for big data), and the data can be privacy-sensitive - coordinates can reveal a home, route or asset location, so review 'properties' before sharing publicly. Watch the longitude-first ordering when feeding it to tools that expect lat,lon, or features will land in the wrong place.

Format details

in a nutshell
FULL NAMEGeoJSON geospatial data fileaka GeoJSON, Geographic JSON
DEVELOPERGeoJSON working group (2008); standardized by the IETF as RFC 7946 (2016)since 2008 (community GeoJSON spec); IETF RFC 7946 published August 2016
CATEGORYGIS Files
MIME TYPEapplication/geo+json
TYPEJSON-based geospatial vector data (plain text)
STANDARDOpen · royalty-free

Programs that open GEOJSON files

Windows4 apps
Notepad Open-source Open as text to read/edit the raw JSON (no map view, but good for quick fixes).
QGIS Open-source Layer > Add Vector Layer (or just drag the .geojson into the map) to view, style and convert it. The free, full-power GIS tool.
Visual Studio Code Free Open the .geojson as text to read/edit the JSON; the 'Geo Data Viewer' extension renders it on a map inside the editor.
GDAL/OGR (ogr2ogr) Open-source Command line: inspect with ogrinfo data.geojson or convert with ogr2ogr out.shp data.geojson. The engine behind most GIS conversions.
macOS3 apps
Apple Xcode Free Opens .geojson as text and can preview/overlay it on MapKit when used in a project - useful for iOS/macOS developers, not a general viewer.
QGIS Open-source Drag the .geojson onto the map to view, style and convert (Apple silicon and Intel builds).
Visual Studio Code Free Edit the JSON; use a Geo Data Viewer extension for an in-editor map preview.
Linux2 apps
QGIS Open-source Add the .geojson as a vector layer to view, style and convert.
GDAL/OGR (ogr2ogr) Open-source ogrinfo -al data.geojson to inspect; ogr2ogr out.gpkg data.geojson to convert.
Web3 apps
geojson.io Free Drag the .geojson onto the page (or paste it) to view, draw and edit features on an interactive map. No install.
GitHub / Gist Free Upload or paste a .geojson into a repo or Gist - GitHub renders it as an interactive Leaflet map automatically.
Mapbox / Leaflet Freemium Load the GeoJSON as a data source/layer in a web map for visualization or styling.

Technical details

deep spec
MIME typeapplication/geo+json (registered by RFC 7946); legacy: application/vnd.geo+json
Text encodingUTF-8 without BOM (mandated by RFC 7946; a BOM is prohibited for interchange)
Base formatJSON (plain text); parseable by any standard JSON library without a dedicated GIS parser
Coordinate reference systemWGS 84 (EPSG:4326), fixed by RFC 7946; no alternative CRS declarations are permitted in conforming files
Coordinate axis orderLongitude, latitude (then optional altitude in metres); opposite to the lat,lon convention used by many GIS tools - a frequent cause of misplaced points
Supported geometry typesPoint, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, GeometryCollection
Document structureTop-level JSON object with a "type" member; FeatureCollection holds a "features" array of Feature objects, each with "geometry" and "properties" keys
File identifierNo binary magic bytes; identified by a JSON object whose top-level "type" value matches a GeoJSON type name (e.g. FeatureCollection, Point)
CompressionNone built-in; commonly served gzip-compressed over HTTP via Content-Encoding; can reduce size 60-90% for text-heavy files
Typical file sizeA few KB (handful of points) to hundreds of MB (high-resolution polygon boundaries); verbose compared to binary GIS formats such as FlatGeobuf
Pre-RFC 7946 compatibility2008 community-spec files may include a "crs" member and bbox at any geometry level; RFC 7946 removed CRS declarations entirely
Integrity / checksumsNone built-in; integrity managed by transport layer (TLS) or version control (Git)
Line-delimited variantGeoJSONL / NDJSON (`.geojsonl`): one GeoJSON Feature per line, enabling streaming ingestion and partial reads of large datasets
Web and GIS adoptionNative input format for Leaflet, Mapbox GL JS, and OpenLayers; GitHub's repository browser renders `.geojson` files as interactive maps automatically
Released2008 (community GeoJSON spec); IETF RFC 7946 published August 2016
Latest versionRFC 7946 (August 2016)
Open standardYes · royalty-free
Specificationwww.rfc-editor.org

GEOJSON conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with GEOJSON files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about GEOJSON files.

Frequently asked questions

How do I open a GeoJSON file?
To just view it on a map, drag it onto geojson.io or upload it to a GitHub repo/Gist (GitHub renders GeoJSON automatically). For GIS work, open it in the free QGIS. As plain text, any editor (VS Code, Notepad++) shows the raw JSON.
What's the difference between GeoJSON and JSON?
GeoJSON is a specific JSON structure (RFC 7946) for geographic data: it must have a 'type' like FeatureCollection and geometries with coordinate arrays. Every GeoJSON file is valid JSON, but most JSON files aren't GeoJSON.
Why are my GeoJSON points in the wrong place / in the ocean?
Almost always a coordinate-order mistake. GeoJSON (RFC 7946) lists coordinates as [longitude, latitude]. If a tool expects [latitude, longitude] you'll see points swapped - often landing off the coast of Africa near (0,0).
How do I convert GeoJSON to Shapefile?
Use QGIS (load the file, Export > Save Features As > ESRI Shapefile) or GDAL: ogr2ogr -f "ESRI Shapefile" out.shp in.geojson. Remember a Shapefile is several files (.shp/.shx/.dbf) and shortens field names.
How do I convert GeoJSON to KML?
Open it in QGIS and export to KML, or run ogr2ogr -f KML out.kml in.geojson. KML lets you view the data in Google Earth or import it into Google My Maps.
Can I edit a GeoJSON file?
Yes - it's plain JSON, so a text editor works for small changes, but it's easy to break the syntax. For visual editing draw and adjust features on geojson.io or in QGIS, which keeps the JSON valid.
My GeoJSON is too big and the map won't load - what do I do?
Browser viewers struggle with huge files. Use QGIS instead, simplify geometry (mapshaper.org), or convert to TopoJSON or a binary format like FlatGeobuf/GeoParquet for large datasets.

References

1IETF RFC 7946 - The GeoJSON Formatwww.rfc-editor.org
2geojson.io - view, draw and edit GeoJSON onlinegeojson.io

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.JPGJPEG Image
4.PARTPartial Download File
5.MDMarkdown Document
6.BINCD/DVD Disc Image (BIN/CUE)
7.EXEWindows Executable (Portable Executable)
8.DATProgram Data File (generic)
9.RPMSGRestricted Permission Message
10.DBSQLite Database File

Related extensions

.GPXGPS Exchange Format
.GMLGeography Markup Language
.KMLKeyhole Markup Language
.SHPEsri Shapefile (geospatial vector data)
.RTMAPCompeGPS / TwoNav Tiled Raster Map
.KMZKeyhole Markup Language Zipped (Google Earth)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z