API Response Mock Generator
Generate realistic mock data from TypeScript interfaces. Supports multiple types with customizable counts and exports to JSON, CSV, XML, YAML, or SQL formats.
context-aware dummy data generation.
Type Definitions
Results
No data generated yet
Click "Generate" to create mock data for User
About API Response Mock Generator
Building a UI or testing an integration before the backend is ready means inventing data — and hand-written fixtures are tedious, drift out of sync with your types, and rarely look realistic enough to surface layout or edge-case bugs. Generating the mock straight from your TypeScript interface keeps the shape honest and the work fast.
Paste a TypeScript interface and this tool produces realistic mock records that match its fields and types. Choose how many records you want, then export them as JSON for an API stub, CSV for a spreadsheet, XML or YAML for config-style payloads, or SQL inserts to seed a database.
Because the data is derived from the interface itself, the output always conforms to the contract your code expects, which makes it useful for prototyping, demos, load-testing payloads, and populating a dev database. Everything is generated in your browser — your interfaces and the data they produce are never uploaded or stored.
How to use API Response Mock Generator
Paste your TypeScript interface
Drop in the interface that describes the response you want to mock. The fields and their types drive the generated data.
Set the record count
Choose how many mock records to generate — one for a single object, or many for a list or seed dataset.
Pick an export format
Select JSON, CSV, XML, YAML, or SQL depending on where the data needs to go — an API stub, a spreadsheet, or a database.
Copy or download
Review the generated output, then copy it or save it to use as a fixture, seed file, or API response stub.
Frequently asked questions
Related developer tools
JSON to TypeScript Converter
Instantly convert JSON objects or arrays into clean TypeScript interfaces or type aliases.
JSON Formatter · Beautifier · Validator
Format, minify, sort keys, and validate JSON/JSONC/JSON5 with optional JSON Schema validation. Supports comments and trailing commas.
UUID Generator & Validator
Generate v1 or v4 UUIDs, validate existing ones, detect versions, and inspect v1 timestamps.