Sample JSON Generator

Generate as many sample JSON records as you need from a template with placeholders like {{name}} and {{int:1:100}}.

Runs in your browser Free

Placeholders: {{index}} {{uuid}} {{name}} {{firstName}} {{lastName}} {{email}} {{phone}} {{company}} {{city}} {{country}} {{word}} {{sentence}} {{bool}} {{date}} {{int:min:max}} {{float:min:max:decimals}}

Processed locally in your browser.

Write the template once, generate many records

When your API isn't ready yet, when testing a component with different data or when preparing example responses for documentation, you need realistic JSON. The Sample JSON Generator fills the placeholders in your template with random values.

Placeholder examples

  • {{name}}, {{firstName}} and {{email}}: names and email
  • {{int:1:100}} and {{float:0:1:2}}: numbers in a range
  • {{uuid}}, {{date}}, {{bool}}, {{word}}, {{sentence}} and more

Correct data types

If a placeholder is the entire value, the output contains a real number or boolean; inside a longer string it's inserted as text. That way the data matches your JSON schema. Generation happens in your browser.

How to use Sample JSON Generator

  1. Write a JSON template with placeholders.
  2. Choose how many records to generate.
  3. Click "Generate".
  4. Copy or download the JSON output.

Why use this tool?

Produce nested, correctly typed test data instantly without setting up a mock server.

FAQ

Why is "{{int:18:80}}" a number in the output?

If the placeholder is the whole string, its typed value (number, boolean) replaces the string; inside a longer string it's inserted as text.

Are nested objects supported?

Yes, nested objects and arrays in your template are preserved.

Can I create TypeScript types from the output?

Yes, paste the output into the JSON to TypeScript converter.

Related tools