Sample JSON Generator
Generate as many sample JSON records as you need from a template with placeholders like {{name}} and {{int:1:100}}.
Placeholders: {{index}} {{uuid}} {{name}} {{firstName}} {{lastName}} {{email}} {{phone}} {{company}} {{city}} {{country}} {{word}} {{sentence}} {{bool}} {{date}} {{int:min:max}} {{float:min:max:decimals}}
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
- Write a JSON template with placeholders.
- Choose how many records to generate.
- Click "Generate".
- 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
Fake Data Generator
Generate synthetic test records with names, emails, phones, companies and addresses as JSON, CSV or SQL.
Open toolJSON Formatter and Validator
Pretty-print messy or minified JSON and find errors with line and column details.
Open toolJSON to TypeScript Converter
Generate TypeScript interfaces or types from JSON, including nested objects, arrays, optional and null fields.
Open toolDummy CSV Generator
Create a CSV file with your own columns and up to 10,000 rows of synthetic data.
Open tool