跳到主要内容

UUID 生成器

UpBox优盒工具箱,免费 UUID v4 生成器,批量生成、大小写与去连字符可切换,可复制或下载,本地生成。

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

生成选项Options

生成结果Generated UUIDs

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

工具介绍

UUID v4 是 128 位随机标识,数据库主键、请求追踪、测试数据都常用。这里一次最多生成 50 个,格式符合 RFC 4122。 UUID v4 is a 128-bit random identifier used for database keys, request tracing and test data. Generate up to 50 at a time, in RFC 4122 format.

随机数来自浏览器加密级随机源 crypto.getRandomValues,不经过服务器,也不会重复使用同一批种子。 Randomness comes from crypto.getRandomValues in your browser — no server round trip and no shared seed.

  • RFC 4122 v4 标准格式RFC 4122 v4 format
  • 一次最多 50 个Up to 50 per batch
  • 大小写与连字符可切换Case and hyphens optional
  • 复制或下载为文本Copy or download as text

使用说明

  1. 选择生成数量,需要大写或去掉连字符时勾选对应开关。Pick how many you need and tick uppercase or drop hyphens if required.
  2. 点“生成”,右侧文本框立即出现新的 UUID。Hit Generate and the new values appear on the right.
  3. 按“复制结果”粘贴到代码或数据库字段里。Copy the result into code or a database field.
  4. 需要留档时下载成 .txt,一行一个。Download as .txt, one per line, when you need a record.

常见问题

UUID v4 会重复吗?Can UUID v4 collide?
v4 有 122 位随机位,正常使用下重复概率可以忽略;但它是随机标识,不保证按时间递增。v4 has 122 random bits, so collisions are negligible in practice; it is random, not time-ordered.
能生成短 ID 吗?Can it make shorter IDs?
这里只生成 32 位十六进制(36 字符带连字符)。短 ID 需要改用 NanoID 一类方案。This tool emits 32 hex digits (36 characters with hyphens). Shorter IDs need a scheme like NanoID.
断网还能用吗?Does it work offline?
可以,生成完全靠浏览器的随机源,页面加载后不再请求网络。Yes, generation relies only on the browser random source after the page loads.
广告位

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

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

浏览其他分类