跳到主要内容

测试数据生成

UpBox优盒工具箱,免费在线测试数据生成器,按姓名、邮箱、公司、城市、地址、日期、UUID 等字段批量生成假数据,支持 JSON 与 CSV 导出。

无需注册 · 数据不上传No sign-up · nothing uploaded

字段与数量Fields & rows

勾选字段并设置条数,点生成即可

数据完全随机生成,姓名、邮箱与公司均为虚构,不对应真实主体;CSV 列名固定为英文,下载带 BOM 便于 Excel 打开

生成结果Output

条数0
字段数0
字符数0
本工具所有运算在本地浏览器完成,你的文件、文本不会上传到服务器

工具介绍

联调时最缺的是像样的数据:字段齐全、格式正确、数量够用。这里按字段勾选生成,姓名、邮箱、公司、城市、地址、日期、UUID、网址、颜色都能单独开关,条数 1–100。 Integration work is usually blocked on decent data: right fields, right formats, enough rows. Tick the fields you need — name, email, company, city, address, date, UUID, URL, colour — and ask for 1–100 rows.

输出支持 JSON 数组与 CSV 两种,CSV 下载带 BOM,用 Excel 打开中文不乱码;数据每次随机,刷新即可换一批。 Output is a JSON array or CSV; CSV downloads carry a BOM so Excel opens the Chinese text correctly, and every run produces a fresh set.

  • 十个可选字段Ten fields
  • JSON / CSVTwo formats
  • 1–100 条Row count
  • 一次生成Instant generation
  • 复制与下载Copy and download

使用说明

  1. 勾选需要的字段。Tick the fields you need.
  2. 设置条数与格式。Set rows and format.
  3. 点生成。Generate.
  4. 复制或下载结果。Copy or download.

常见问题

数据会重复吗?Will rows repeat?
姓名、城市这类小样本字段可能重复,邮箱和 UUID 重复概率极低。Small pools like names and cities can repeat; emails and UUIDs practically will not.
能生成手机号或身份证吗?Can it generate phone numbers or ID cards?
不提供,避免生成可能对应真实主体的号码与证件信息。No — those could collide with real people, so they are left out.
CSV 为什么带 BOM?Why the BOM in CSV?
为了 Excel 直接识别 UTF-8,否则中文会变乱码。So Excel detects UTF-8; without it Chinese text turns to mojibake.
能在代码里直接调用吗?Can I call it from code?
页面纯前端,导出仅用于复制粘贴;批量造数建议在项目里用 faker 之类的库。It is front-end only and meant for copy-paste; use a library like faker for bulk fixtures.
广告位

此处为广告位,可放置你的推广素材

支持图片、文字或 HTML 代码,替换本区块内容即可投放

浏览其他分类