Mock Data Generator
Generate realistic fake data
Generate fake users, emails, addresses, companies and more as JSON, CSV or SQL for testing and prototypes.
- Mock data
- Fake
- Test data
How to use Mock Data Generator
- Edit the Schema: give each field a name and pick a type, such as Full name, Email, UUID v4, Integer (range) or One of a list. Use Add field, the arrows and the remove button to shape it; Reset schema restores the starting fields.
- Fill in any options a type needs, such as Min and Max, From and To dates, Values (comma separated) or a Pattern.
- Under Output options, set the number of Rows and choose a Format: JSON, JSON Lines, CSV or SQL (with a SQL dialect and Table name).
- Keep the Seed to get the same data again, or click New seed for different data.
- Copy or download the result, or open it in another tool with Send to….
How it works
Every value comes from a seeded random generator (sfc32, seeded by hashing the Seed text), so the same schema, row count and seed always give exactly the same rows. Names, cities and companies are combined from small built-in lists: 82 first names, 75 last names and 48 cities in 31 countries. Within a row, name, email and username are built from the same person, and city and country belong together.
Test-safe values are used where it matters: emails use example.com, example.org, example.net, mail.test or inbox.test, URLs use similar reserved domains, phone numbers use the fictional 555-01xx range, and IPv6 addresses use the documentation prefix 2001:db8::/32. Custom pattern replaces # with a digit, ? with a capital letter and * with either, and \ makes the next character literal. Dates are picked from the whole range in UTC; ISO date-time values look like 2024-05-17T08:21:43Z.
JSON keeps numbers and booleans typed, CSV is RFC 4180 with a header row, and SQL is a CREATE TABLE plus INSERT statements in batches of 500 rows, built by the same generator as the JSON to SQL tool. The schema is checked first: empty or duplicate names, a minimum above the maximum, or dates not written as YYYY-MM-DD are listed, and no data is produced until they are fixed. Everything runs in your browser.
Limits
- At most 10,000 rows; larger numbers are capped.
- Decimal (range) supports 0 to 10 decimal places, and Integer (range) needs a range within JavaScript’s safe integers.
- The name, city and company lists are small and mostly English, so values repeat in large data sets.
- IPv4 addresses are random values from
1.x.x.xto223.x.x.x, not a reserved test range, so some may belong to real hosts. - Values come from a reproducible generator, not a secure one, so don’t use the UUIDs or patterns as secrets or real identifiers.
- Fields can’t reference each other beyond the built-in name/email/username and city/country links, and there are no nested objects or arrays.
Privacy
Data is generated entirely in your browser and nothing is uploaded or stored. The Share button copies a link with your schema, row count, seed and output options in its # fragment, which browsers don’t send to servers; whoever opens it gets the same data. Send to… passes the output to another tool through this tab’s session storage, and it is removed as soon as that tool reads it.
Frequently asked questions
Can I get the same data again?
Yes. The output depends only on the schema, the row count and the Seed, so keeping the seed, or sharing the link, reproduces it exactly. Click New seed for a different data set.
Are the emails and phone numbers real?
No. Emails and URLs only use reserved domains such as example.com and .test, and phone numbers use the 555-01xx range kept for fiction, so nothing reaches a real person.
How do I make IDs like ORD-1234-AB?
Choose Custom pattern and type ORD-####-??. Each # becomes a digit and each ? a capital letter; * gives a letter or digit, and \# keeps a literal #.
Which SQL databases are supported?
PostgreSQL, MySQL, SQLite and SQL Server. The output creates the table and inserts the rows in batches of 500, using the Table name you enter (or mock_data).
More tools
- Clean Image: Inspect and remove hidden image metadata
- JWT Decoder: Decode and verify JSON Web Tokens
- Diff Checker: Compare two texts line by line
- JS Runner: Run JavaScript and TypeScript in your browser
- JSON Formatter: Format, validate and minify JSON
- Encode / Decode: Base64, URL, HTML entity and hex
- Hash Generator: MD5, SHA and HMAC of any text
- UUID Generator: Generate UUID v4 and v7 in bulk
- Timestamp Converter: Unix time ↔ human dates
- Regex Tester: Test regular expressions live
- URL Parser: Break a URL into its parts
- HTTP Status Codes: Look up any HTTP status code
- MIME Type Lookup: File extension ↔ MIME type
- Password Generator: Strong random passwords and passphrases
- Random String Generator: Random tokens, IDs and keys
- Slug Generator: Turn titles into URL slugs
- Case Converter: camelCase, snake_case, Title Case and more
- Word Counter: Count words, characters and reading time
- JSON to TypeScript: Generate TypeScript types from JSON
- JSON Diff: Compare two JSON documents structurally
- JSON to SQL: Turn JSON arrays into SQL inserts
- YAML ↔ JSON: Convert between YAML and JSON
- XML ↔ JSON: Convert between XML and JSON
- CSV ↔ JSON: Convert between CSV and JSON
- CSV Viewer: View, sort and filter CSV files
- SQL Formatter: Format and beautify SQL queries
- cURL ↔ Fetch: Convert cURL commands to fetch and back
- Markdown Editor: Write Markdown with a live preview
- Text Cleaner: Remove duplicate lines, empty lines and extra spaces
- Find & Replace: Find and replace in any text
- Cron Expression Builder: Build and explain cron schedules
- User-Agent Parser: Identify browser, OS and device from a user agent
- HTTP Headers Inspector: Paste response headers and get them explained
- JWT Generator: Create and sign test JSON Web Tokens
- Certificate Inspector: Decode PEM certificates and keys
- Meta Tag Inspector: Check a page's SEO and social tags
- UTM Builder: Build campaign URLs with UTM parameters
- URL Cleaner: Strip tracking parameters from links
- Robots.txt Generator: Create and test a robots.txt file
- Sitemap Generator: Create an XML sitemap from a list of URLs
- Image Compressor: Shrink JPEG, WebP and AVIF images in your browser
- Image Resizer: Resize images by pixels, percentage or to fit a box
- Image Converter: Convert between PNG, JPEG, WebP and AVIF
- Image to Base64: Encode images as Base64 data URIs and decode them back
- SVG Optimizer: Minify and sanitize SVG files
- Favicon Generator: Make favicon.ico, Apple and Android icons from an image or emoji
- Color Converter: HEX, RGB, HSL, OKLCH and contrast checks
- Number Base Converter: Binary, octal, decimal, hex and float bits
- IP / CIDR Calculator: Subnets, masks and IP ranges for IPv4 and IPv6
- JSONPath Query: Query JSON with JSONPath expressions
- JSON Schema Validator: Validate JSON against a schema, or generate one
- Semver Checker: Check versions against semver ranges
- chmod Calculator: Unix permissions: rwx ↔ octal
- .env Diff: Compare and validate .env files
- TOTP Generator: Generate and verify 2FA codes
- String Escaper: Escape and unescape strings for any language
- Unicode Inspector: See every character, code point and hidden symbol
- QR Code Generator: Create QR codes for links, Wi-Fi and contacts
- Lorem Ipsum Generator: Placeholder text in paragraphs, sentences or words
- Date Calculator: Date differences, business days and durations
- Unit Converter: Convert bytes, lengths, weights, temperatures and more
- Query CSV with SQL: Run SQL queries on CSV files
- PDF Merge & Split: Merge, split, reorder and rotate PDFs
- PDF Metadata Cleaner: See and remove hidden PDF metadata
- Office Metadata Cleaner: Remove author and revision data from Word, Excel and PowerPoint
- Images to PDF: Combine images into one PDF
- Image Editor: Crop, rotate, resize and adjust images
- Encrypt / Decrypt Text: Encrypt text with a passphrase (AES-GCM)
- SSH Key Generator: Generate Ed25519 and RSA SSH keys locally
- Email Header Analyzer: Trace an email's path and check SPF, DKIM and DMARC
- JSON to Code: Generate Go, Python, Rust, Java, C# and Kotlin models from JSON
- docker run ↔ Compose: Convert docker run commands to docker-compose and back
- Color Palette Extractor: Pull the dominant colours out of any image
- Password Strength Checker: How long would your password take to crack?
- SPF / DKIM / DMARC Checker: Validate and explain email DNS records
- Kubernetes YAML Checker: Validate and explain Kubernetes manifests
- .gitignore Generator: Build a .gitignore from presets
- CSP Builder: Build and check a Content-Security-Policy
- JSON-LD Generator: Create schema.org structured data
- Open Graph Image Generator: Make 1200×630 social preview images
- CSS Generator: Gradients, shadows, clamp() and more
- Time Zone Meeting Planner: Find meeting times across time zones