# 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.

[Generate](https://toolbuddy.dev/categories/generate.md)

## 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

- [UUID Generator](https://toolbuddy.dev/tools/uuid-generator.md): Generate RFC 4122 UUIDs (v4 and v7) in bulk, or validate and reformat pasted IDs. Copy a list for database seeds, test fixtures, and idempotency keys. Uses the Web Crypto RNG so IDs are created on-device with no telemetry.
- [Password Generator](https://toolbuddy.dev/tools/password-generator.md): Create strong random passwords and passphrases in your browser. Tune length, symbols, and ambiguity, then copy once. Generation uses local randomness and never phones home. A private generator for accounts, test users, and sharing secrets over a side channel you control.
- [Random String Generator](https://toolbuddy.dev/tools/random-string.md): Generate random alphanumeric strings with a charset and length you choose. Handy for tokens, test IDs, and dummy keys. Uses local randomness so generated values are not logged by a hosted generator.
- [Random Number Generator](https://toolbuddy.dev/tools/random-number.md): Pick random integers or decimals in a min–max range, one at a time or in a list. Simple test data and dice-style rolls without a remote RNG. Generated on your device.
- [QR Code Generator](https://toolbuddy.dev/tools/qr-generator.md): Encode a URL or any text as a QR code in the browser. Tune error correction, size, and colors, then download PNG or SVG. Encoding stays on the device. There is no QR API.
- [Lorem Ipsum Generator](https://toolbuddy.dev/tools/lorem-ipsum.md): Generate Lorem Ipsum placeholder text for mockups and prototypes. Choose paragraphs, sentences, or words. All text is generated locally in the browser.
