About the Random JSON Generator
A new API, a front-end table or a unit test often needs JSON before the real data exists. This generator builds an array of records for you. Choose how many records you want, tick the fields to include, and decide between an indented layout that is easy to read and a compact single line that is easy to paste. Each record is one consistent made-up person: the full name, email, username and website agree with each other, and the street, city, state, postal code and country belong to the same place. Emails always end in example.com and phone numbers use the fictional 555-01xx range, so nothing points at a real person. The data is made in your browser and never leaves your device.
Updated October 2026
How to use the Random JSON Generator
- 1Enter how many records you want, from 1 to 500.
- 2Choose an indented layout or a compact one-line layout.
- 3Tick the fields to include in each record, such as full name, email, city and date of birth.
- 4Press Generate to make a new set. Press it again whenever you want different data.
- 5Copy the JSON, or download it as random.json.
What a record looks like
With the default fields ticked, each record has a full name, an email, a city and a date of birth. Ticking more fields adds the rest of the person: phone, username, company, job title, street, state, postal code, country, IP address and website.
- fullName: a first and last name from a list of common names
- email: the same name in lower case on example.com, for example [email protected]
- city, state and postalCode: one real city per record, so they agree
- birthDate: an ISO date between 1950 and 2005, written as year-month-day
- ip: an address from a documentation range such as 203.0.113.x
When random JSON is useful
- Building a table, list or card component before the back end exists.
- Testing an API client, a parser or a schema validator with many records at once.
- Filling a database or a mock server with believable rows.
- Writing a tutorial, a README or a bug report that needs sample data nobody will mistake for real people.
- Checking how an interface copes with long names, many rows or missing fields.
Choosing the fields and layout
Start small. Two or three fields are enough for a quick demo, and fewer fields make the JSON easier to read. Add fields only when your code reads them.
Use the indented layout while you are looking at the data, and the compact layout when you are pasting it into a request body, a test file or a command line. The records are the same either way.
Keeping test data safe
Never copy real customer records into a test environment. Made-up data avoids privacy problems and cannot send an email to a stranger, because example.com is reserved for examples and never delivers mail. The fictional phone range and the documentation IP addresses work the same way.
Phone and computer
The options sit above the result and stack in one column on a phone. The result box scrolls inside the page, and Copy and Download are under it. For table-like rows, the Random CSV Generator is simpler, and the JSON Formatter makes the output easy to read.
Features
- Sixteen fields: names, email, phone, username, company, job title, address parts, date of birth, IP address and website
- Up to 500 records at a time
- Indented or compact output
- Records that hang together: the email matches the name, the city matches the postal code
- Safe placeholders: example.com emails, fictional phone numbers and documentation IP ranges
- Made on your device with the browser's secure random generator
Frequently asked questions
Is the JSON valid?
Yes. The output is produced with the standard JSON writer, so strings are escaped correctly and the result is an array of objects that any JSON parser accepts.
Is any of the data real?
No. First and last names are picked from lists of common names and mixed at random, emails end in example.com, phone numbers sit in the fictional 555-0100 to 555-0199 range and IP addresses come from ranges reserved for documentation.
What is the difference between indented and compact?
Indented puts each field on its own line with two spaces of indentation, which is easier to read. Compact writes everything on one line with no spaces, which is smaller and handy for pasting into a request or a test file.
Why are all the values text?
Every field is written as a string, including the date of birth and postal code. That avoids losing leading zeros and keeps the shape the same for every field. Convert values in your own code if you need numbers.
Can I get the same data again?
No. Each press uses your browser's random generator and makes new data. Copy or download the result if you want to keep it.
How many records can I make?
Up to 500 per press. For more, generate several batches and join the arrays, or use the Fake Data Generator for up to 1,000 rows.
Can I turn the JSON into CSV or XML?
Yes. Paste the result into our JSON to CSV, JSON to TSV or JSON to XML converters.
Does it send my choices to a server?
No. The records are made in your browser, and nothing is uploaded.