Mock SQL Data Generator
Generate realistic fake test data from a SQL schema and emit INSERT statements, CSV, or JSON. Parse CREATE TABLE DDL or define fields manually; per-column data types include names, emails, dates, numbers, addresses, UUIDs, IPs, ENUMs and regex patterns. FK-aware relational generation (child rows reference valid parent keys), deterministic seed for reproducible data, blank %, unique constraints, batched INSERTs, and per-dialect output (MySQL, PostgreSQL, SQLite, SQL Server). Unlimited rows, 100% client-side, no server.
About Mock SQL Data Generator
Generate realistic fake test data from a SQL schema and emit INSERT statements, CSV, or JSON. Parse CREATE TABLE DDL or define fields manually; per-column data types include names, emails, dates, numbers, addresses, UUIDs, IPs, ENUMs and regex patterns. FK-aware relational generation (child rows reference valid parent keys), deterministic seed for reproducible data, blank %, unique constraints, batched INSERTs, and per-dialect output (MySQL, PostgreSQL, SQLite, SQL Server). Unlimited rows, 100% client-side, no server. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.
FAQ
How does the Mock SQL Data Generator produce data?
Paste a CREATE TABLE statement (the tool parses columns, types, NOT NULL, defaults, ENUM values and inline foreign-key references) or define fields manually with a faker type per column. The generator then produces N rows of realistic mock data — names, emails, dates, numbers, addresses, UUIDs, IPs, ENUMs, regex-matched strings — and emits INSERT statements, CSV, or JSON. All generation is deterministic given the same seed.
Does it handle foreign-key relationships?
Yes. If your DDL declares inline REFERENCES clauses (or you define FK relationships manually), the generator produces parent tables first, collects the generated parent-key values, and then generates child rows whose FK columns reference one of those valid parent keys — preserving referential integrity. Composite foreign keys are supported, and circular dependencies are detected and reported.
Is the generated data reproducible?
Yes. The tool uses a deterministic, seedable PRNG (mulberry32). Enter the same seed and you get the identical dataset every time — useful for sharing test cases or for golden-file CI checks. Switch the seed to get a fresh dataset for the same schema.
What data types are supported per column?
30+ faker types: first_name, last_name, full_name, email, username, phone, street, city, state, country, zip, company, job_title, sentence, paragraph, url, ipv4, ipv6, uuid, date_past, date_future, date_recent, timestamp, boolean, int (with min/max), decimal (with precision), bigint, money, age, hex_color, enum (with weighted values), regex (with pattern), and constant. Each type produces type-appropriate realistic values.
What extras does this tool offer versus Mockaroo and others?
(1) Unlimited rows (no 1,000-row cap). (2) Fully offline — your schema never leaves the browser. (3) FK-aware relational generation. (4) Deterministic seed. (5) 30+ faker types. (6) Weighted ENUMs. (7) Regex-pattern column. (8) Blank % per column. (9) Unique constraint enforcement (collision-safe). (10) Batched INSERTs (configurable batch size). (11) Multi-dialect output (MySQL, PostgreSQL, SQLite, SQL Server). (12) CSV + JSON output. (13) Parse DDL or define fields manually. (14) localStorage history (max 20). (15) Shareable URL. (16) Copy / download .sql / .csv / .json.
Related tools
.bashrc / .zshrc Alias & Config Manager
Build shell aliases, functions, exports, and PATH edits in a visual editor, then export a clean, commented .aliases file sourced from both .bashrc and .zshrc — with shadowing detection against shell builtins and common CLI tools, function suggestions when args are needed, starter packs (git, docker, kubectl, navigation, safety, ls, dev, devops, data science), import of existing rc files, dedupe, history (localStorage), and shareable URL. 100% client-side.
Add / Subtract Date Calculator
Add or subtract years, months, weeks, days, hours, minutes and seconds from a starting date/time. Calendar-day or business-day mode with custom weekend + holiday list. Month-end policy toggle (clamp to last day vs overflow). Repeat/series mode (e.g. every 2 weeks x 10) with CSV export. Shareable URL. 100% client-side.
Age Calculator
Calculate exact age from a birth date in calendar years/months/days (no negative-day bugs) plus totals in months/weeks/days/hours/minutes/seconds. Next-birthday countdown with weekday. Feb-29 birthday policy toggle. Milestones (1,000 days, 10,000 days, 1 billion seconds). Zodiac sign + Chinese zodiac. Age gap comparison. Shareable URL. 100% client-side.