ApplicationText-based

application/geo+json

GeoJSON

Reference for application/geo+json, the MIME type for GeoJSON geographic data encoding points, lines, and polygons.

MIME Type Detector

Drop a file to detect its MIME type — no upload, runs in your browser

📄

Drop any file here or click to choose

Expected extensions: .geojson

HTTP Content-Type Header

HTTP Header
Content-Type: application/geo+json; charset=utf-8

Associated File Extensions

.geojson

Quick Facts

MIME Typeapplication/geo+json
CategoryApplication
TypeText-based (human-readable)
Extensions.geojson

Common Usage

GeoJSON encodes geographic features (points, lines, polygons) in JSON format. It is used by mapping libraries like Mapbox, Leaflet, and Google Maps, geographic APIs, GIS applications, and location-based services.

Most modern mapping tools support GeoJSON natively.

Code Examples

HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.geojson" type="application/geo+json">

<!-- Or for script/media elements -->
<script type="application/geo+json" src="file.geojson"></script>
Node.js
// Express.js
app.get('/file', (req, res) => {
  res.type('application/geo+json');
  res.send(data);
});

// Node.js http
res.writeHead(200, { 'Content-Type': 'application/geo+json' });
nginx
# nginx.conf — add to types block or use default
types {
    application/geo+json  geojson;
}

# Or set for a specific location
location /api/ {
    default_type application/geo+json;
}

Related MIME Types

More Application MIME Types

Other application types in the Application family

Related Tools

Explore More MIME Types

Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.