ToolBuddy
In Browser

Random JSON Generator

Generate nested JSON fixtures for mocks and tests. Tune depth and item count, then copy a valid object or array. Built with the Web Crypto RNG so dummy payloads are created on-device.

Runs in your browser. Nothing is uploaded.

Loading tool…

About this tool

Generate nested JSON objects and arrays for mocks: ids, names, flags, counts, and small maps. Depth and root item count are capped so a typo cannot freeze the tab. Values use crypto.getRandomValues and crypto.randomUUID.

How to use: set nesting depth (1–4) and how many root items, Generate, copy. One item yields an object; more than one yields an array. Shape is random-ish on purpose so tests do not overfit a single fixture.

Example: depth 2, three items is a short list of fake records for an API mock. This is not Faker with locales and not a schema-driven generator. Keys come from a small developer-oriented list.

Fixtures are built in memory. Related: JSON formatter to tidy a hand-edited blob, UUID generator if you only needed ids. After load, generating works offline.

Related Generate tools