Random JSON Generator

Generate random JSON of configurable depth and size.

The Random JSON Generator produces a nested JSON document of random keys and values for testing. You control how deep and how wide it is and set a seed so the same settings always give the same output. Use it for parser tests, UI mock-ups, formatter demos and bug reports that need sample data.

What is seeded random data?

Computers do not produce truly random numbers by default. A pseudo-random number generator, or PRNG, runs a formula that turns a starting value, the seed, into a long sequence of numbers that looks random. If you start from the same seed you get exactly the same sequence. This tool turns your seed text into a number and feeds it to a small PRNG called mulberry32. That sequence decides every key, value type and nesting choice, so the output is fully repeatable. Reproducibility is valuable for testing: you can share a seed and a colleague gets identical JSON. The values are made up from short word lists and numbers, not real-looking personal data, and the result is not suitable for security purposes.

How to use Random JSON Generator

  1. Set Depth Drag the Depth slider from 1 to 6 to choose how many levels of nesting are allowed.
  2. Set Size Drag the Size slider from 1 to 10 to set the maximum number of entries at each level.
  3. Choose a Seed Edit the Seed field, or press New random seed to fill it with a random string.
  4. Copy or download The Generated JSON box updates immediately. Copy it, or use the download button to save random.json.

Frequently asked questions

Is the output truly random?

It is pseudo-random and deterministic. The same seed, depth and size always give the same result, which is intentional for repeatable tests.

Can I use it to generate secrets or tokens?

No. The generator is not cryptographically secure and the seed is visible, so never use it for passwords or keys.

Does it generate realistic names or emails?

No. Keys come from a small fixed list such as id, name, status and email, and values are numbers, booleans, null or short word combinations.

Is the JSON always valid?

Yes. It is produced with JSON.stringify from a real object, indented with two spaces.

Why do the same keys keep appearing?

The key names are drawn from a list of 16 words. When one repeats in the same object, a numeric suffix is added.

Is anything sent to a server?

No. The data is generated in the page from your settings.