Free GeoJSON sample, test and dummy files
Geographic features encoded as JSON: points, lines and polygons with properties. Download valid GeoJSON test files in 19 exact sizes, from 1 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.
- Extension
- .geojson
- MIME type
- application/geo+json
- Kind
- Text
- Category
- GIS
Create a GeoJSON file of any size
Choose any size from 120 bytes to 1 GB. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.
GeoJSON files by size
Every file below is a valid GeoJSON file of exactly the stated size. Open a file's page for its checksum and contents, and to preview it in your browser before downloading.
| File | Size | Contents | Download |
|---|---|---|---|
| 1 KB GeoJSON samplesample-geojson-1kb.geojson | 1 KB1,024 bytes | Features: 3 | Download GeoJSON |
| 5 KB GeoJSON samplesample-geojson-5kb.geojson | 5 KB5,120 bytes | Features: 25 | Download GeoJSON |
| 10 KB GeoJSON samplesample-geojson-10kb.geojson | 10 KB10,240 bytes | Features: 54 | Download GeoJSON |
| 25 KB GeoJSON samplesample-geojson-25kb.geojson | 25 KB25,600 bytes | Features: 138 | Download GeoJSON |
| 50 KB GeoJSON samplesample-geojson-50kb.geojson | 50 KB51,200 bytes | Features: 278 | Download GeoJSON |
| 100 KB GeoJSON samplesample-geojson-100kb.geojson | 100 KB102,400 bytes | Features: 557 | Download GeoJSON |
| 200 KB GeoJSON samplesample-geojson-200kb.geojson | 200 KB204,800 bytes | Features: 1,114 | Download GeoJSON |
| 500 KB GeoJSON samplesample-geojson-500kb.geojson | 500 KB512,000 bytes | Features: 2,763 | Download GeoJSON |
| 1 MB GeoJSON samplesample-geojson-1mb.geojson | 1 MB1,048,576 bytes | Features: 5,642 | Download GeoJSON |
| 2 MB GeoJSON samplesample-geojson-2mb.geojson | 2 MB2,097,152 bytes | Features: 11,248 | Download GeoJSON |
| 3 MB GeoJSON samplesample-geojson-3mb.geojson | 3 MB3,145,728 bytes | Features: 16,781 | Download GeoJSON |
| 5 MB GeoJSON samplesample-geojson-5mb.geojson | 5 MB5,242,880 bytes | Features: 27,853 | Download GeoJSON |
| 10 MB GeoJSON samplesample-geojson-10mb.geojson | 10 MB10,485,760 bytes | Features: 55,539 | Download GeoJSON |
| 15 MB GeoJSON samplesample-geojson-15mb.geojson | 15 MB15,728,640 bytes | Features: 83,220 | Download GeoJSON |
| 20 MB GeoJSON samplesample-geojson-20mb.geojson | 20 MB20,971,520 bytes | Features: 110,727 | Download GeoJSON |
| 25 MB GeoJSON samplesample-geojson-25mb.geojson | 25 MB26,214,400 bytes | Features: 137,971 | Download GeoJSON |
| 30 MB GeoJSON samplesample-geojson-30mb.geojson | 30 MB31,457,280 bytes | Features: 165,220 | Download GeoJSON |
| 50 MB GeoJSON samplesample-geojson-50mb.geojson | 50 MB52,428,800 bytes | Features: 274,208 | Download GeoJSON |
| 100 MB GeoJSON samplesample-geojson-100mb.geojson | 100 MB104,857,600 bytes | Features: 546,684 | Download GeoJSON |
What is a GeoJSON file?
GeoJSON describes geographic shapes using JSON. A Feature pairs a geometry, such as a point, line string or polygon, with a set of properties, and a FeatureCollection groups features together.
Coordinates are longitude first, then latitude, in the WGS 84 reference system. Getting the order backwards is the most common mistake made with the format.
How to recognise a GeoJSON file
GeoJSON files have no file signature, the magic bytes that most binary formats begin with.
No signature bytes. GeoJSON files are identified by parsing their content.
| Extension | .geojson |
|---|---|
| MIME type | application/geo+json |
| Standard | RFC 7946 |
| Coordinate order | Longitude, latitude, optional elevation |
| Reference system | WGS 84 |
| Geometry types | Point, LineString, Polygon and their multi-part forms |
What to test for
These are the behaviours that most often go wrong when software handles GeoJSON files.
- Swapped latitude and longitude put points in the wrong hemisphere or the ocean. Test with locations you can recognise.
- Polygon rings must be closed, with the first and last positions identical.
Strengths of GeoJSON
- Readable by every mapping library and GIS package.
- Plain JSON, so it can be inspected and edited by hand.
Limitations of GeoJSON
- Verbose for large datasets compared with binary formats.
- Only one coordinate reference system, WGS 84, is allowed.
Typical uses of GeoJSON test files
- Testing map layers and spatial queries
- Checking coordinate-order handling
- Load-testing map rendering with many features
Software that opens GeoJSON
- QGIS and ArcGIS
- Leaflet, Mapbox GL and OpenLayers
- PostGIS, GDAL and Turf.js
- GitHub renders .geojson files on a map
Specifications
Related
GeoJSON sample files: questions
- Where are the sample features located?
- Near sixteen real cities on six continents, with small random offsets, so the result is easy to check on a map.
- What is the MIME type of a GeoJSON file?
- The MIME type is application/geo+json. The file extension is .geojson.
- Is a sample GeoJSON file the same as a dummy or example GeoJSON file?
- Yes. Sample, test, dummy and example GeoJSON files are different names for the same thing: a GeoJSON file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy GeoJSON file.