What you can do with Mock Data Generator
- Generate test data from schema
- Create fake users
How this generator works
Generate up to 1,000 synthetic records from a schema as JSON, CSV, or SQL INSERT statements.
Example input
Schema: id (UUID), email (Email), active (Boolean), score (Number); records: 2; format: SQL INSERTExample output
INSERT INTO "mock_data" ("id", "email", "active", "score") VALUES ('550e8400-e29b-41d4-a716-446655440000', '[email protected]', TRUE, 42), ('550e8400-e29b-41d4-a716-446655440001', '[email protected]', FALSE, 18);Practical workflow
- Add one or more field names and choose a type such as UUID, email, phone, address, date, number, or boolean.
- Choose an integer record count from 1 to 1,000; a dataset can contain up to 50 fields.
- Select JSON, CSV, or SQL INSERT. SQL output uses the fixed mock_data table and double-quotes portable column identifiers; custom table names are not supported.
- Inspect the result panel, then copy the generated text or download it with a matching JSON, CSV, or SQL filename.
Common use cases
- Seeding a local development database with synthetic rows for UI testing.
- Creating API fixtures with email addresses on the reserved example.test domain and fictional U.S. test phone numbers.
- Populating a small CSV or SQL fixture to check import and preview workflows.
Important notes and limitations
- Generation runs in your browser. Email values use the reserved example.test domain, and phone values use the U.S. fictional 555-0100 through 555-0199 range. Generated names, companies, and addresses can resemble real records, so use this data only for testing.
- CSV fields use quote escaping for commas, quotes, and line breaks. SQL output double-quotes portable identifiers so reserved words such as except remain valid; it inserts into mock_data but does not create a table.
- The tool supports 1 to 1,000 records and up to 50 fields. It does not provide custom table names, schema creation, or a database-specific SQL dialect; verify that your database accepts ANSI double-quoted identifiers.
CLI mock dataset generators (Faker, JSON Schema Faker)
Generate synthetic user records with Python Faker
python3 -c "from faker import Faker; f=Faker(); import json; print(json.dumps([{'name': f.name(), 'email': f.email()} for _ in range(5)], indent=2))"Generates realistic synthetic names and email addresses for seeding test databases.
Seed reproducibility & schema integrity troubleshooting
Inconsistent test assertions due to non-deterministic mock data
Cause: Generating random mock values without fixing the pseudo-random generator seed.
Solution: Supply a fixed seed (e.g. 'faker.seed(12345)') in testing environments for deterministic, repeatable test runs.
Continue your workflow
- CSV to SQL Converter — convert existing CSV spreadsheets into database tables and inserts.
- UUID Generator — generate standard UUID versions 1, 3, 4, and 5 for stable names or random identifiers.
- Placeholder Text — generate filler paragraphs, sentences, and words alongside mock datasets.
- Temporary Mock API — deploy structured mock payloads into temporary REST endpoints.
Frequently asked questions
What does the SQL export create?
It creates INSERT statements for the fixed mock_data table. It does not create the table or let you choose a table name, so prepare a compatible table before running the generated SQL.
Can the generated email or phone values reach real people?
Email values end in example.test, a domain reserved for testing, and phone values use the fictional U.S. 555-0100 through 555-0199 range. Generated names, companies, and addresses can resemble real entries; do not use the output as production data.
What are the dataset limits?
Generate between 1 and 1,000 records with up to 50 fields. SQL output requires unique portable field names and wraps them in ANSI double quotes, including when a name is a reserved word.