Mock API Data Tool
Define a JSON schema and generate mock API response data instantly.
Click “Generate Mock Data” to see results
Free mock API data generator: create realistic fake JSON responses from a schema
Frontend development and API testing both suffer when they depend on a live backend. A mock API generator solves this by producing realistic JSON data on demand, so you can build UIs, write integration tests, and demo features without waiting for backend services to be ready.
AlteredIdea's mock API tool lets you define a JSON schema using intuitive type tokens: uuid, email, fullName, number ranges: and instantly generates as many records as you need. Copy the output, drop it into Postman, json-server, or your test fixtures folder, and keep shipping.
How to use: step by step
- 1Define your schema
Edit the JSON schema to describe the shape of your API response. Use built-in types like uuid, fullName, email, number:min:max, and more. - 2Set the record count
Choose how many records to generate: from a single object to hundreds of rows for pagination testing. - 3Generate data
Click Generate to produce a JSON array populated with realistic fake values matching your schema. - 4Copy the JSON
Click Copy to grab the output and paste it into your frontend code, Postman mock, or API testing tool. - 5Iterate quickly
Adjust the schema and regenerate instantly to try different data shapes as your API design evolves.
Related Tools
Password Generator
Generate cryptographically secure passwords with customizable rules.
UUID / GUID Generator
Generate v1, v3, v4, or v5 UUIDs in bulk with multiple format options.
Lorem Ipsum Generator
Generate classic lorem ipsum placeholder text by words, sentences, or paragraphs.
Barcode Generator
Generate CODE128, EAN-13, UPC-A, CODE39 barcodes and more. Download as SVG or PNG.
Frequently Asked Questions
- What is a mock API?
- A mock API is a simulated API endpoint that returns fake but realistic data. It allows frontend developers and testers to work independently of the real backend, speeding up development and enabling testing scenarios that are hard to trigger with live data.
- What field types are supported in the schema?
- The generator supports common types including uuid, fullName, firstName, lastName, email, phone, address, number (with optional min/max), boolean, date, and more. Check the schema editor for the full list of supported type tokens.
- Can I generate nested objects?
- Nested JSON objects can be defined by using object values in the schema. For example, set an 'address' field to contain street, city, and country sub-fields.
- Is the generated data realistic?
- Yes. Names, email addresses, and other personal data fields are generated using realistic patterns: not random character strings. This makes the output useful for UI testing where the data needs to look plausible.
- How do I use the generated data with a real API testing tool?
- Copy the JSON output and paste it into Postman as a mock response body, use it as a fixture file in your test suite, or serve it locally with a tool like json-server to create a fully functional mock endpoint.
- Is generated data GDPR-compliant for use in tests?
- Yes. All data is synthetic: it does not contain real personal information. Using synthetic test data rather than production data is a GDPR best practice.
- Can I generate CSV instead of JSON?
- The current tool outputs JSON, which maps naturally to REST API responses. To convert to CSV, paste the JSON into a JSON-to-CSV converter tool.
- How many records can I generate at once?
- You can generate large batches of records in a single click. For very large datasets, consider copying the output to a file and serving it with a local mock server.
- Can I use number:min:max to control ranges?
- Yes. Use the token number:18:65 to generate integers between 18 and 65 inclusive, which is ideal for fields like age, score, or quantity.
- Does the data include null values?
- By default, all fields are populated. You can optionally add nullable field definitions to the schema to test how your UI handles missing data.
AlteredIdea vs alternatives
vs command-line tools: No terminal needed. Works in any browser on any device.
vs paid generator tools: Completely free, no account required, no rate limits.
vs library functions: Instant results: no coding needed. Just click and copy.