Skip to content
cosmodev ~/tools/mock-data-generator

Mock 데이터 생성기

Generators

스키마와 시드에서 결정적인 가짜 데이터(이름, 이메일, 숫자, 날짜, 불리언, UUID, 목록에서 선택)를 생성합니다. 재현 가능한 출력.

출력 . 5행
[
  {
    "id": 0,
    "name": "Joaquin Smith",
    "email": "joaquin.smith@acme.io"
  },
  {
    "id": 1,
    "name": "Linnea Kowalski",
    "email": "linnea.kowalski@mail.com"
  },
  {
    "id": 2,
    "name": "Diego Henry",
    "email": "diego.henry@test.org"
  },
  {
    "id": 3,
    "name": "Caius Castillo",
    "email": "caius.castillo@test.org"
  },
  {
    "id": 4,
    "name": "Max Chavez",
    "email": "max.chavez@mail.com"
  }
]

시드 지정: 같은 스키마, 행 수, 시드는 항상 동일한 출력을 만듭니다. 행은 일관성을 유지 - 이메일은 이름과 일치하고 도시, 주, 우편번호, 전화, 통화는 국가와 일치합니다.

(문서는 영어)

What it does

Generate deterministic fake data from a schema and a seed. Pick from 43 field types across eight categories: identity (name, email, username), contact (phone, avatar, password), location (country, city, state, postal, street, coordinates), commerce (company, job title, price, currency, product name, SKU), web (URL, slug, IPv4/IPv6, MAC, color, user agent), text (word, sentence, paragraph, headline, catchphrase), and numeric (integer, number, decimal, percentage, sequence, boolean), plus UUIDUUIDA 128-bit identifier generated to be practically unique without coordination, most commonly in version-4 (fully random) form., date, pick-from-list, string, and index. Rows are coherent: an email matches the name on its row, and the city, state, postal code, phone format, and currency all match the row’s country. Seeded, so the same schema, row count, and seed always produce identical output - perfect for fixtures and tests. 100% client-side.

How to use it

  1. Add fields: give each a name and pick a type from the grouped list (Identity, Contact, Location, Commerce, Web, Text, Numeric, Other).
  2. Set the type-specific options that appear (min/max, precision, length, charset, start/step, or pick options).
  3. Set the Rows count (1–500) and a Seed — hit New seed for a different random draw.
  4. The JSON renders live on the right, pinned while you scroll the schema.
  5. Copy it, or Download it as mock-data.json.

Examples

Schema id: index, name: fullName, email: email, 3 rows, seed 1 → a 3-element array with sequential ids and coherent names/emails (each email derives from its row’s name).

Schema country, city, postal, phone, 5 rows → every row’s city, postal format, and phone format match its country.

Good to know

  • Private: generation is local; data is synthetic, not real people.
  • Seeded and deterministic (mulberry32 PRNG) - not cryptographically random; UUIDs are v4-shaped.
  • Avatars are inline generated SVG identicons - no external requests.
  • Related tools: UUIDUUIDA 128-bit identifier generated to be practically unique without coordination, most commonly in version-4 (fully random) form. Generator, JSON to TypeScript.
소스 코드14개 언어

100% 클라이언트 측 · 데이터는 브라우저 밖으로 나가지 않습니다. 도움이 되었나요? 팀원에게 공유해 보세요.