ToolXkit Icon

Sample JSON files

Free JSON test files from 5 KB to 1 GB. Pick a size and download, or type any size you need.

  • Sample JSON, formattedClassic · 3.5 KB

    Nested objects, arrays of objects, an array of arrays, a null, and Unicode across four scripts

  • The same JSON, minifiedClassic · 1.9 KB

    No whitespace at all

  • Deliberately invalid JSONClassic · 158 B

    Contains the four commonest mistakes: a comment, single quotes, an unquoted key and a trailing comma

  • The same data as YAMLClassic · 1.5 KB

    YAML is the format JSON is most often converted to and from

  • 5 KB JSON

    26 records

  • 10 KB JSON

    53 records

  • 100 KB JSON

    533 records

  • 500 KB JSON

    2,647 records

  • 1 MB JSON

    5,283 records

  • 5 MB JSON

    Made on your device

  • 10 MB JSON

    Made on your device

  • 25 MB JSON

    Made on your device

  • 50 MB JSON

    Made on your device · saved in pieces

  • 100 MB JSON

    Made on your device · saved in pieces

  • 500 MB JSON

    Made on your device · saved in pieces

  • 1 GB JSON

    Made on your device · saved in pieces

Need another size?

Type any size from 5 KB to 1.00 GB. The file is made on your device. Nothing is uploaded or stored.

Free for any use, including commercial. Made by this site, with no third-party content and no signup.

What is inside

  • An array of eight objects with mixed value types
  • Objects nested three levels deep
  • An array of arrays, for testing matrix handling
  • An explicit null, which is not the same as a missing key
  • Unicode across Latin, Japanese and Arabic, plus a tick mark
  • A YAML file holding the same records, for testing conversion both ways

Try it with these tools

They run in your browser. The file you downloaded stays on your device.

About JSON files

JSON (JavaScript Object Notation) describes data as objects, arrays, strings, numbers, booleans and null, and nothing else. It has no date type, no comments and no trailing commas. Each of those gaps causes errors every day.

The rules are stricter than most people remember. Keys must be double-quoted strings; single quotes are not allowed anywhere; a comma after the last item of an object or array is invalid even though most languages permit it. The invalid sample here breaks exactly those rules, one per line.

JSON has no date type, so by convention dates travel as strings. Most use ISO 8601, as this sample does. That means a date in JSON is only as reliable as the agreement between whoever wrote it and whoever reads it.

Sources: RFC 8259, JSON (IETF) · ECMA-404, JSON syntax (Ecma International)

Questions

What is wrong with the invalid sample?

Four things, one per line: a // comment, which JSON has no concept of; single-quoted strings, which are never valid; an unquoted key; and a trailing comma before a closing bracket. Any validator worth using should point at all four.

Is JSON the same as a JavaScript object?

No, and the difference bites. JavaScript allows unquoted keys, single quotes, trailing commas, comments and functions. JSON allows none of them. Valid JSON is almost always valid JavaScript; the reverse is often false.

How do I check my own JSON is valid?

Paste it into the JSON Validator on this site. It runs in your browser, so nothing is uploaded, and it reports the line and column of the first problem rather than just refusing.

Also searched as: sample json file download, dummy json file, test json file, example json file, 1 MB json file, 10 MB json file, 100 MB json file, 1 GB json file, free json for testing.

For developers: exact bytes and SHA-256

Sizes are decimal (1 MB = 1,000,000 bytes). The hosted files never change between builds, so these checksums stay valid.

FileBytesSHA-256
sample-5kb.json 5,000 bytes 2b83af4730028459da5fc9eb05ce4bcd7af261d907ed20aa847d5f3242e172d2
sample-10kb.json 10,000 bytes 0110e3cac80a1e9d433ad34e31994fa7be047fb9b7974e1f126c66d5d22a3909
sample-100kb.json 100,000 bytes 4ac6414f1d425e0f17ca7e0e4e8e771a9391bac246b5f3a9e1410a9b8903ad76
sample-500kb.json 500,000 bytes 91708551ddb6ab07164d6802970d7787eee6c3284ff0ec49c7fdebd5bf8db96b
sample-1mb.json 1,000,000 bytes 322106c5fc6539bde6ce110a5ed695fe97dbef1d6af1ca480d93755528c3f723