1 KB GeoJSON sample file
A GeoJSON file of exactly 1,024 bytes. It is a valid GeoJSON file, generated for this site and checked with an independent parser.
Download
sample-geojson-1kb.geojson
1 KB1,024 bytes
Download 1 KB GeoJSONDirect download. No sign-up and no waiting.
- Type
- application/geo+json
- SHA-256
b8c67b1baecb003a206bd62cdadeb6e5967d1be1a89782ea3ffd6e91f5adc296- Direct URL
https://sampletestfiles.com/downloads/geojson/sample-geojson-1kb.geojson
What is in this file
A FeatureCollection of 4 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.
| Features | 4 |
|---|---|
| Geometry types | Point, LineString, Polygon |
| Coordinate order | Longitude, latitude (WGS 84) |
| Encoding | UTF-8 (ASCII characters only) |
How the file begins
The opening lines of sample-geojson-1kb.geojson, exactly as they appear in the file.
{
"type": "FeatureCollection",
"name": "Sample GeoJSON file (1 KB)",
"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 file contents.
Where 1 KB matters
The smallest practical test file: 1,024 bytes, small enough to travel in a single network packet. These are the default limits a file of this size is useful for testing:
| System | Limit | Note |
|---|---|---|
| Ethernet | 1,500 bytes (typical MTU) | A 1 KB payload fits in one packet with its headers. |
| Browser cookies | 4,096 bytes per cookie | 1 KB is well inside the limit; the 5 KB sample is over it. |
Use this file for
- Smoke tests in CI that must run in milliseconds
- Testing map layers and spatial queries
- Checking coordinate-order handling
Testing notes for GeoJSON
- 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.
Technical details
| File name | sample-geojson-1kb.geojson |
|---|---|
| Format | GeoJSON (GeoJSON) |
| Extension | .geojson |
| MIME type | application/geo+json |
| Size | 1,024 bytes (1 KB) |
| Kind | Text |
| SHA-256 | b8c67b1baecb003a206bd62cdadeb6e5967d1be1a89782ea3ffd6e91f5adc296 |
| Created | 2026-10-10 |
| Validation | Exact size, signature bytes and structure checked when the file was generated |
| Preview | Available on this page |
| Source | Generated for this site; not copied from elsewhere |
| Licence | Free to use, modify and redistribute (terms) |
| Category | GIS |
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-1kb.geojson 'https://sampletestfiles.com/downloads/geojson/sample-geojson-1kb.geojson'
sha256sum sample-geojson-1kb.geojson # Linux
shasum -a 256 sample-geojson-1kb.geojson # macOSOn Windows, run Get-FileHash sample-geojson-1kb.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 KB?
- Yes. It is 1,024 bytes, which is 1 KB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
- What is inside the 1 KB GeoJSON file?
- A FeatureCollection of 4 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.