Calculator
What the Mock Data Generator does
Mock Data Generator: generates Status and Fake JSON from How many records? and Indent. Example: how many records? 3 and indent 2 spaces gives status Generated 3 records.
Give the Mock Data Generator your How many records? and Indent and it works out Status and Fake JSON. There is no submit step; the numbers move as you adjust them.
It is mostly used by engineers checking an encoding. Pasting a production payload into an unknown web tool is a real risk, which is why this one stays local.
There is no back end here. The calculation runs where you are sitting, not on a server somewhere.
The field table, the method and a worked example are documented after the tool for anyone who wants to check the working.
What do the Mock Data Generator fields mean?
The Mock Data Generator uses 2 inputs. Rather than an empty form you get a filled one, useful when you only want to test a single change.
| Field | What to enter | Default |
|---|---|---|
| How many records? | accepts 1 to 50 | 3 |
| Indent | choose from 2 spaces, 4 spaces, 1 tab or Minified (no indent) | 2 spaces |
How does the Mock Data Generator work?
Each output is derived from the inputs above in a single pass; there is no hidden state carried between runs, so the same inputs always give the same generated output.
Bad input produces an error, never a confident-looking wrong answer.
Worked example
These are the values the Mock Data Generator loads by default, and the result it produces from them. The defaults produce the result shown here; change any of them and the answer moves.
| How many records? | 3 |
|---|---|
| Indent | 2 spaces |
| Status | Generated 3 records |
|---|---|
| Fake JSON | [ { "id": 1, "name": "Ada 1", "email": "ada1@example.com", "active": true, "score": 67 }… |
How to use it
- Set How many records? (1 to 50).
- Pick a value for Indent: the options are 2 spaces, 4 spaces, 1 tab or Minified (no indent).
- Results update continuously rather than on submit.
- Check Status and Fake JSON on the right.
- If you need a record, Copy Link saves the inputs and Print produces a clean page.
What this tool does not do
- Processing happens in your browser, so extremely large inputs are bounded by available memory.
- Output follows the common convention for this format; a specific toolchain may have its own house style.
- Edge cases at the very limits of the accepted range are handled, but rarely worth relying on.
- The tool trusts your numbers completely, so a mis-keyed digit propagates straight through.
Frequently asked questions
You need How many records? and Indent. A starting value is in place for each, so nothing is mandatory before you see a result.
How many records? accepts 1 to 50. Go outside it and you get an error against that specific field instead of a misleading number.
With the values loaded when the page opens, status comes out as Generated 3 records. Edit any input and that figure moves with it.
No record is kept. We never receive what you type, so there is nothing on our side to retain.
No cost and no account. Use it as often as you like.
The computation is exact; how much you should trust the answer depends on how good your inputs are.