Skip to content
>_ TrueFileSize.com

Sample JSON Files — Free Download for API Testing & Development

Download free sample JSON files with realistic dummy data. Available from simple objects to 10,000-record arrays. Perfect for API testing, frontend mock data, and unit tests. No registration needed.

Generate custom JSON fileCreate up to 1GB locally in your browser

sample-simple.json

87 B

1 rows

Verified file details
Filename
sample-simple.json
Exact size
87 bytes
Displayed size
87 B
MIME type
application/json
Rows
1
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-simple.json

sample-array.json

15.4 KB

100 rows

Verified file details
Filename
sample-array.json
Exact size
15,735 bytes
Displayed size
15.4 KB
MIME type
application/json
Rows
100
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-array.json

sample-1000-records.json

154 KB

1,000 rows

Verified file details
Filename
sample-1000-records.json
Exact size
158,086 bytes
Displayed size
154 KB
MIME type
application/json
Rows
1,000
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-1000-records.json

sample-10000-records.json

1.52 MB

10,000 rows

Verified file details
Filename
sample-10000-records.json
Exact size
1,590,674 bytes
Displayed size
1.52 MB
MIME type
application/json
Rows
10,000
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-10000-records.json

sample-nested.json

3.9 KB

20 rows

Verified file details
Filename
sample-nested.json
Exact size
3,964 bytes
Displayed size
3.9 KB
MIME type
application/json
Rows
20
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-nested.json

sample-users.json

77.1 KB

500 rows

Verified file details
Filename
sample-users.json
Exact size
78,991 bytes
Displayed size
77.1 KB
MIME type
application/json
Rows
500
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-users.json

sample-products.json

111 KB

500 rows

Verified file details
Filename
sample-products.json
Exact size
113,197 bytes
Displayed size
111 KB
MIME type
application/json
Rows
500
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-products.json

sample-posts.json

107 KB

200 rows

Verified file details
Filename
sample-posts.json
Exact size
109,359 bytes
Displayed size
107 KB
MIME type
application/json
Rows
200
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-posts.json

sample-geojson.json

12.7 KB

50 rows

Verified file details
Filename
sample-geojson.json
Exact size
12,972 bytes
Displayed size
12.7 KB
MIME type
application/json
Rows
50
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-geojson.json

sample-api-response.json

3.5 KB
Verified file details
Filename
sample-api-response.json
Exact size
3,582 bytes
Displayed size
3.5 KB
MIME type
application/json
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-api-response.json

sample-schema.json

398 B
Verified file details
Filename
sample-schema.json
Exact size
398 bytes
Displayed size
398 B
MIME type
application/json
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-schema.json

sample-config.json

229 B
Verified file details
Filename
sample-config.json
Exact size
229 bytes
Displayed size
229 B
MIME type
application/json
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-config.json

sample-empty-array.json

2 B
Verified file details
Filename
sample-empty-array.json
Exact size
2 bytes
Displayed size
2 B
MIME type
application/json
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-empty-array.json

sample-null-values.json

10.1 KB

100 rows

Verified file details
Filename
sample-null-values.json
Exact size
10,381 bytes
Displayed size
10.1 KB
MIME type
application/json
Rows
100
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-null-values.json

sample-unicode.json

12.3 KB

50 rows

Verified file details
Filename
sample-unicode.json
Exact size
12,640 bytes
Displayed size
12.3 KB
MIME type
application/json
Rows
50
License
CC0 / Public Domain
Download URL
https://truefilesize.com/files/json/sample-unicode.json

Sample JSON file preview

sample-users.json

[
  {
    "id": 1,
    "name": "Alice Johnson",
    "email": "[email protected]",
    "age": 28,
    "city": "New York",
    "active": true
  },
  {
    "id": 2,
    "name": "Bob Smith",
    "email": "[email protected]",
    "age": 34,
    "city": "London",
    "active": false
  }
]

Realistic but fictional data. Safe to use in demos.

Use cases for sample JSON files

  • Testing REST API clients and consumers
  • Seeding databases with test data
  • Unit and integration testing with mock data
  • Demo data for frontend development
  • Prototyping data visualizations
  • Postman / Insomnia collection testing
  • Testing JSON schema validation

JSON structure types available

Simple object

{ "key": "value", "count": 42 }

Array of objects (most common)

[{ "id": 1, "name": "Alice" }, { "id": 2, "name": "Bob" }]

Nested objects

{ "user": { "address": { "city": "NY", "zip": "10001" } } }

API response wrapper

{ "status": 200, "data": [...], "meta": { "total": 1000 } }

How to fetch this JSON

JavaScript (fetch)

fetch('https://truefilesize.com/files/json/sample-users.json')
  .then(res => res.json())
  .then(data => console.log(data));

Python (requests)

import requests
data = requests.get(
    'https://truefilesize.com/files/json/sample-users.json'
).json()
print(data[:5])

Frequently Asked Questions

Is the data in these JSON files real?
No. All data is generated with faker.js — realistic but entirely fictional. Names, emails, and addresses are randomly generated. Safe for demos, tests, and documentation.
What data fields are included in the users JSON?
The users JSON contains: id, name, email, age, city, and active (boolean). All fields contain realistic but fake data.
Can I directly fetch these JSON files in my app?
Yes. All files are served with CORS headers (Access-Control-Allow-Origin: *), so you can fetch them from any domain. Use them as mock API endpoints during development.
What is GeoJSON and when is it used?
GeoJSON is a standard JSON format for geographic data. It encodes points, lines, and polygons with coordinates. Used by mapping libraries like Leaflet, Mapbox, and Google Maps.
How do I validate a JSON file against a schema?
Use our sample-schema.json as a JSON Schema definition, then validate with libraries like ajv (JavaScript), jsonschema (Python), or online validators. JSON Schema defines the expected structure, types, and constraints for your data.

You might also need

Other data formats

Related reading