Mock JSON Data Generator

Generate realistic mock JSON test data from a custom schema. Includes Nigerian names, phone numbers, states and banks. Download or copy the output.

mock-json-generator.tool
Format: fieldName: type — types: name, firstName, lastName, email, phone, company, address, city, country, date, uuid, number, boolean, lorem, url, username, nigerianName, nigerianPhone, nigerianState, nigerianBank
Generated JSON

Why Mock Data Matters in Development

Building UI components, testing API integrations, and demoing features all require realistic test data. Hard-coded fake data breaks when you add fields or change schemas. A mock data generator lets you quickly produce structured, realistic data matching your application's data model — Nigerian names, phone numbers and bank names included for locally relevant testing.

Supported Data Types

The generator supports 20+ types: name, firstName, lastName, email, phone, company, address, city, country, date, uuid, number, boolean, lorem, url, username, and Nigerian-specific types: nigerianName, nigerianPhone, nigerianState, nigerianBank. Combine any types in a custom schema to match your exact data structure.

Frequently Asked Questions

One field per line, in the format: fieldName: type. For example: 'id: uuid' creates an id field with a UUID value. 'name: nigerianName' creates a name field with a realistic Nigerian name. You can have any number of fields and generate up to 50 records at once.
Yes — copy the generated JSON and paste it directly into your code as a constant, save it as a .json file to import, or serve it from a local mock server using tools like json-server. This is standard practice for building and testing UI components before the real API is ready.
UUID (Universally Unique Identifier) is a 128-bit value formatted as 8-4-4-4-12 hex characters, like 550e8400-e29b-41d4-a716-446655440000. UUIDs are useful when IDs need to be globally unique across distributed systems without a central authority assigning them. For simple databases, auto-incrementing integers are often simpler.
Most mock data generators produce US/UK-centric data. Nigerian phone numbers start with specific network prefixes (080x, 081x, 090x). Nigerian state names, bank names and personal names are specific. Using locally relevant mock data makes your demos and tests more realistic for a Nigerian audience and catches formatting issues early.
Yes — look at the real API's response structure and recreate the field names and types in the template. For nested objects, the generator currently produces flat structures. For complex nested JSON, generate the flat data here and add nesting manually, or use a tool like Faker.js (JavaScript) or the Faker library (Python) for programmatic generation.