1 MB GeoJSON sample file

A GeoJSON file of exactly 1,048,576 bytes. It is a valid GeoJSON file, generated for this site and checked with an independent parser.

Download

sample-geojson-1mb.geojson

1 MB1,048,576 bytes

Download 1 MB GeoJSON

Direct download. No sign-up and no waiting.

Type
application/geo+json
SHA-256
aaee6fe9e3bfd30841dc099b3cdbce4f1d62d5816ae88019d02cb972df3fc266
Direct URL
https://sampletestfiles.com/downloads/geojson/sample-geojson-1mb.geojson

What is in this file

A FeatureCollection of 5,340 features around real cities, mostly points with a line string and a polygon in every ten. A "padding" foreign member, which RFC 7946 permits, brings the file to the exact size.

Features5,340
Geometry typesPoint, LineString, Polygon
Coordinate orderLongitude, latitude (WGS 84)
EncodingUTF-8 (ASCII characters only)

How the file begins

The opening lines of sample-geojson-1mb.geojson, exactly as they appear in the file.

{
  "type": "FeatureCollection",
  "name": "Sample GeoJSON file (1 MB)",
  "features": [
    {"type":"Feature","id":1,"geometry":{"type":"Point","coordinates":[73.83462,18.59249]},"properties":{"id":1,"name":"Pune point 1","country":"IN","…
    {"type":"Feature","id":2,"geometry":{"type":"Point","coordinates":[-51.16601,-30.02046]},"properties":{"id":2,"name":"Porto Alegre point 2","count…
    {"type":"Feature","id":3,"geometry":{"type":"Point","coordinates":[19.98396,50.03682]},"properties":{"id":3,"name":"Krakow point 3","country":"PL"…
    {"type":"Feature","id":4,"geometry":{"type":"Point","coordinates":[-9.13138,38.63969]},"properties":{"id":4,"name":"Lisbon point 4","country":"PT"…

Preview

Shows the first 64 KB of the file.

Where 1 MB matters

A 1,048,576-byte file: exactly the default upload limit of nginx, Spring Boot and Next.js. These are the default limits a file of this size is useful for testing:

SystemLimitNote
nginx1 MB by default (client_max_body_size)A multipart upload of this file exceeds the limit by the size of the form boundaries.
Spring Boot multipart1 MB per file by default (max-file-size)A file of exactly 1 MB is at the limit.
Next.js API routes and Server Actions1 MB by defaultLarger bodies need the size limit raised in configuration.
Cloud Firestore documents1 MiB (1,048,576 bytes)The same number of bytes as this file.
Apache Kafka messagesAbout 1 MB by defaultBrokers reject larger records unless message.max.bytes is raised.

All 1 MB sample files

Use this file for

  • Download tests on mobile connections
  • Checking coordinate-order handling
  • Load-testing map rendering with many features

Testing notes for GeoJSON

  • Polygon rings must be closed, with the first and last positions identical.
  • Swapped latitude and longitude put points in the wrong hemisphere or the ocean. Test with locations you can recognise.

GeoJSON format reference

Technical details

File namesample-geojson-1mb.geojson
FormatGeoJSON (GeoJSON)
Extension.geojson
MIME typeapplication/geo+json
Size1,048,576 bytes (1 MB)
KindText
SHA-256aaee6fe9e3bfd30841dc099b3cdbce4f1d62d5816ae88019d02cb972df3fc266
Created2026-10-10
ValidationExact size, signature bytes and structure checked when the file was generated
PreviewAvailable on this page
SourceGenerated for this site; not copied from elsewhere
LicenceFree to use, modify and redistribute (terms)
CategoryGIS

Validated for expected format and integrity. As with any download, scan the file with your own security tools before opening it. How files are made and checked

Download from the command line and verify

Fetch the file with curl, then compare its checksum with the SHA-256 value above.

curl -o sample-geojson-1mb.geojson 'https://sampletestfiles.com/downloads/geojson/sample-geojson-1mb.geojson'
sha256sum sample-geojson-1mb.geojson     # Linux
shasum -a 256 sample-geojson-1mb.geojson # macOS

On Windows, run Get-FileHash sample-geojson-1mb.geojson -Algorithm SHA256 in PowerShell. A matching value proves that the download is complete and unaltered.

Related files

Questions about this file

Is this file exactly 1 MB?
Yes. It is 1,048,576 bytes, which is 1 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
What is inside the 1 MB GeoJSON file?
A FeatureCollection of 5,340 features around real cities, mostly points with a line string and a polygon in every ten. A "padding" foreign member, which RFC 7946 permits, brings the file to the exact size.
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.