Skip to the tool
GigaJSON Sample GeoJSON Files
All tools
Format and check
View and query
Convert
JSON to code
Encode and decode
Sample files
Guides Open GigaJSON

Download a sample GeoJSON file of any size

Choose the data and the size, then download. Every file is valid GeoJSON (RFC 7946), made on your device.

Download a sample GeoJSON file in the size you need, from 100 KB to 1 GB, to test a map, a spatial import or a GeoJSON parser. Each file is one FeatureCollection of places around seven cities: mostly points, with some lines and polygons, each with properties such as name, category and rating. The file is written in your browser. To look inside a big one, open it in the Large JSON Viewer. For other kinds of test data, see Sample JSON files.

What people use these files for

To cut a big file into smaller ones, use the JSON Splitter.

How to get a sample GeoJSON file

  1. Choose a size from 100 KB to 1 GB, or type a custom size. The file holds whole features and stays within it.
  2. Click Generate and download, or Open in GigaJSON instead to look inside it.
  3. Open the .geojson file in your map, GIS tool or code.

Private, and made for big files

This tool runs in your browser, in a background worker: the file is made on your computer and never uploaded, and nothing is kept after you leave. Files up to 1 GB are written in pieces, so the page keeps responding. Already loaded features keep working if your connection drops. Loading another tool or jq for the first time needs a connection. When one tool isn't enough, GigaJSON opens your data with a tree, a table, JSONPath/JMESPath/jq queries, transforms, diff and history.

Sample GeoJSON questions

What is in a sample GeoJSON file?

One FeatureCollection. About 70% of the features are points, and the rest are lines and polygons, all near Portland, Berlin, Lagos, Osaka, Lima, Oslo and Pune. Each feature has properties: id, name, category, city, rating, open and updated.

Is it valid GeoJSON?

Yes. It follows RFC 7946: positions are [longitude, latitude] in WGS 84 with six decimals, and each polygon's outer ring is closed (its last position repeats the first) and runs counterclockwise.

Where can I open it?

Anything that reads GeoJSON: QGIS, PostGIS through ogr2ogr, Leaflet, Mapbox GL and OpenLayers. Small files also work in geojson.io. To read the raw data, open it in GigaJSON.

Is the file the same every time?

Yes. The same size always gives the same file, which helps when a test needs to be repeatable.

Is anything uploaded?

No. The file is made in your browser and saved from there. Nothing is kept after you leave.

All tools