Skip to content
📋

Random JSON Generator

Generate random JSON objects with configurable depth, keys, and value types. Perfect for testing parsers, APIs, and database fixtures. Runs in your browser.

 

How does the JSON generator work?

This tool builds a JSON object by recursively populating each level with random key-value pairs. Values are picked from the standard JSON types (string, number, boolean, null, array, object) using crypto.getRandomValues(). The depth and keys-per-object parameters bound recursion so output stays readable and the generator finishes quickly.

Generated value types

  • String — random words from a curated list.
  • Number — integers and floats in plausible ranges.
  • Boolean — true/false 50/50.
  • Null — occasionally injected for null-safety testing.
  • Array — homogeneous arrays of primitives or objects.
  • Object — nested objects up to the configured depth.

Common uses

  • Parser testing — stress-test JSON parsers with deeply nested structures.
  • Schema validation — generate samples for JSON Schema testing.
  • API mocking — produce response bodies of arbitrary shape.
  • Database fixtures — populate JSONB columns with varied data.

Privacy

All JSON is generated 100% in your browser. No data is sent to any server.