Mock Data Generator
Generate realistic mock data in JSON, CSV, SQL, and XML formats. Define custom schemas with 20+ field types including names, emails, UUIDs, and addresses.
Configure your schema and click "Generate Data"
About
Incorrect test data leads to undetected edge cases in production. A date field that never generates a leap year, an email column with no special characters, a price that never hits 0.00 - these gaps silently pass through QA and surface as customer-facing bugs. This generator constructs mock datasets from a user-defined schema with 20+ field types, each producing values that follow real-world distribution patterns and format constraints. Credit card numbers pass the Luhn checksum. UUIDs conform to RFC 4122 v4. Addresses combine plausible city/street/zip tuples rather than random string concatenation.
The tool approximates realistic data distributions but does not guarantee statistical uniformity. Generated personal data (names, emails, phones) is synthetic and not sourced from real individuals. For load testing, generate datasets up to 10,000 rows and export directly to JSON, CSV, SQL INSERT statements, or XML. Pro tip: always test with boundary values - set your integer range minimum to 0 or β1 to catch off-by-one errors your production schema won't.
Formulas
UUID v4 generation follows RFC 4122. The 128-bit identifier is constructed from cryptographically random bytes with version and variant bits set:
where y β {8, 9, a, b} sets the variant bits.
Credit card validation uses the Luhn algorithm. Given a card number with digits d1, d2, β¦ dn:
where diβ² doubles every second digit from the right. If the doubled value exceeds 9, subtract 9. The check digit dn is chosen so the total sum is divisible by 10.
Random integers within a range [min, max] use:
Float generation adds decimal precision control: value = round(raw Γ 10p) Γ· 10p, where p is the decimal places parameter.
Reference Data
| Field Type | Format / Pattern | Example Output | Constraints |
|---|---|---|---|
| First Name | Dictionary lookup | Elena | Gender filter (optional) |
| Last Name | Dictionary lookup | Nakamura | - |
| Full Name | First + Last | Elena Nakamura | - |
| [email protected] | [email protected] | Unique per dataset | |
| Phone | +1-XXX-XXX-XXXX | +1-555-832-4017 | Country code prefix |
| Integer | Uniform random | 42 | Min / Max range |
| Float | Decimal precision | 3.14 | Min / Max / Decimals |
| Boolean | true | false | true | Probability weight |
| Date | YYYY-MM-DD | 2024-03-15 | Start / End date range |
| DateTime | ISO 8601 | 2024-03-15T09:30:00Z | Start / End range |
| UUID | RFC 4122 v4 | a3bb189e-8bf9-4c7a-... | - |
| Auto Increment | Sequential integer | 1, 2, 3β¦ | Start value |
| Enum | User-defined list | active | Comma-separated values |
| IP Address (v4) | X.X.X.X | 192.168.1.42 | - |
| URL | https://domain/path | https://example.com/page | - |
| Color (Hex) | #RRGGBB | #7C8CF8 | - |
| Paragraph | Lorem ipsum sentences | Lorem ipsum dolor sit⦠| Sentence count range |
| City | Dictionary lookup | Toronto | - |
| Country | Dictionary lookup | Japan | - |
| Street Address | Number + Street Name | 742 Evergreen Terrace | - |
| Zip Code | 5-digit US format | 90210 | - |
| Company | Dictionary lookup | Acme Corp | - |
| Credit Card | Luhn-valid 16 digits | 4532-XXXX-XXXX-XXXX | Passes Luhn checksum |
| Username | adjective_noun_digits | cool_tiger_42 | - |
| Password | Mixed chars | xK9#mPq2!vL | Length configurable |
| JSON Object | Nested key-value | {"key": "value"} | Template-based |