# Test Data Faker Builder

Generate structured test data from field configuration with support for faker fields, regex rules, credit cards, IDs, and batch export

> Canonical page: https://elysiatools.com/en/tools/test-data-faker-builder

- **Category:** Generator

- **Keywords:** test data, faker, mock data, regex, credit card, id card, json, csv

## Overview

The Test Data Faker Builder is a powerful utility designed to generate realistic, structured mock data for software development and QA testing. By defining your schema through a simple JSON configuration, you can instantly create batches of synthetic records including names, emails, credit cards, IDs, and custom regex-based patterns.

## Inputs

- **Field Config JSON** (textarea): { "fields": \[ { "name": "fullName", "type": "fullName", "locale": "zh" }, { "name": "email", "type": "email" }, { "name": "creditCard", "type": "creditCard", "network": "visa" }, { "name": "nationalId", "type": "cnIdCard" }, { "name": "orderCode", "type": "regex", "pattern": "ORD-\[A-Z0-9\]{8}" }, { "name": "status", "type": "pick", "values": \["new", "paid", "failed"\] }, { "name": "score", "type": "number", "min": 60, "max": 100 }, { "name": "active", "type": "boolean", "probabilityTrue": 0.8 } \] }
- **Record Count** (number)
- **Export Format** (select)

## When to use

- Populating databases or frontend applications with realistic mock records for UI testing.
- Generating large volumes of synthetic data to stress-test API endpoints and data processing pipelines.
- Creating specific edge-case datasets using regex patterns for validation and error handling scenarios.

## How it works

- Define your data structure in the Field Config JSON, specifying field names and types like faker, regex, or pick.
- Set the desired record count to determine the volume of data generated.
- Select your preferred output format, choosing between JSON, NDJSON, or CSV.
- Execute the generation to receive your structured dataset ready for immediate integration.

## Use cases

- Generating thousands of user profiles for performance testing a new database schema.
- Creating mock transaction logs with valid-looking credit card numbers for payment gateway integration testing.
- Building seed data for frontend prototypes to ensure UI components handle various data lengths and states.

## Frequently asked questions

### What data formats can I export?

You can export your generated data in JSON, NDJSON, or CSV formats.

### Can I generate specific patterns like order codes?

Yes, use the 'regex' type in your configuration to define custom patterns like 'ORD-[A-Z0-9]{8}'.

### Is there a limit to how many records I can generate?

You can generate between 1 and 1,000 records per batch.

### Can I pick values from a predefined list?

Yes, use the 'pick' type and provide an array of values to randomly select from for that field.

### Does it support international data?

Yes, certain faker fields like 'fullName' support locale settings to generate region-specific data.

## Related tools

- [JSON-LD Generator from CSV](https://elysiatools.com/en/tools/json-ld-generator-from-csv): Turn CSV or Excel rows into Schema.org JSON-LD for articles, products, or events, with validation-ready output for SEO workflows
- [CSV to Database Migration Planner](https://elysiatools.com/en/tools/csv-to-database-migration-planner): Infer a relational schema from CSV data and generate create-table plus ALTER migration plans for PostgreSQL, MySQL, SQLite, or SQL Server
- [Fitness Workout PDF Generator](https://elysiatools.com/en/tools/fitness-workout-pdf-generator): Generate a printable workout-plan PDF from JSON or CSV data with exercise tables, progress boxes, and optional QR video links
- [Heatmap Generator](https://elysiatools.com/en/tools/heatmap-generator): Generate customizable heatmaps from data, perfect for visualizing data density, correlations, and patterns
- [Markdown Table Generator](https://elysiatools.com/en/tools/markdown-table-generator): Generate formatted Markdown tables from CSV, JSON, or array data with alignment, header styles, width control, and merge hints
- [Pivot Table Generator](https://elysiatools.com/en/tools/pivot-table-generator): Generate interactive pivot tables from CSV/JSON data with customizable row, column, and value field configurations
- [Structured Log Analyzer](https://elysiatools.com/en/tools/structured-log-analyzer): Detect common log formats, extract core fields, infer field types, and export parsed logs as JSON, CSV, or SQL inserts
- [CSV to JSON Converter](https://elysiatools.com/en/tools/csv-to-json): Convert CSV data to JSON format with customizable parsing options

## Samples

- [CSV Samples](https://elysiatools.com/en/samples/csv-samples): Sample CSV files with various data types, sizes, and complexity levels
- [Python Samples](https://elysiatools.com/en/samples/python): Essential Python code examples and Hello World demonstrations
- [Windows String Processing - C# Samples](https://elysiatools.com/en/samples/windows-string-processing-csharp): Comprehensive C# string processing examples for Windows platform including string manipulation, splitting, joining, regex operations, and text analysis
- [JWT Samples](https://elysiatools.com/en/samples/jwt-samples): Comprehensive JWT examples from basic token structure to advanced security implementations

## Related content

- [API Mock Fixture Generation and Review](https://elysiatools.com/en/hubs/api-mock-fixture-generation-and-review): Build repeatable mock payloads, generate format-valid edge values, catch confusing field names, and review a temporary mock service before sharing it with a development team.
