MDevTools

UUID GeneratorUUID 生成器

Generate random UUID v4 identifiers.

一键生成多个随机 UUID v4,用于主键、追踪 ID 与测试数据。

What is UUID Generator?UUID 生成器 是什么?

A UUID generator creates random version-4 identifiers — the 36-character strings with hexadecimal groups separated by hyphens that databases, APIs and distributed systems use as primary keys. It uses the browser cryptographic random source, so identifiers are unpredictable. You can generate one or a whole batch and copy them instantly.

UUID 生成器创建随机的 version-4 标识符——即由连字符分隔的 36 位十六进制字符串,数据库、接口和分布式系统常用它作主键。它使用浏览器加密随机源,标识符不可预测,可生成单个或批量并一键复制。

How to use uuid generator如何使用 UUID 生成器

  1. Choose how many UUIDs you need, from a single one up to a large batch.
  2. Optionally switch to uppercase or remove the hyphens for a compact form.
  3. Read the generated identifiers, each 36 characters in the standard 8-4-4-4-12 layout.
  4. Copy one or copy them all as a list for pasting into code or a spreadsheet.
  1. 选择需要数量,从 1 个到大批量。
  2. 可切换大写或去连字符的紧凑形式。
  3. 读取结果,每个 36 字符,标准 8-4-4-4-12 结构。
  4. 复制单个,或整列复制后粘进代码或表格。

Common uses常见用途

FAQ常见问题

What is a UUID v4?什么是 UUID v4?

Version 4 means the identifier is generated from random numbers rather than from a timestamp or a MAC address. It is the most common choice when you need an ID without coordination between systems.

version 4 表示标识符由随机数生成,而非时间戳或 MAC 地址。这是需要"无需系统间协调即可获得 ID"时最常见的选择。

Can two UUIDs collide?两个 UUID 会重复吗?

The probability is negligible. With 122 random bits, you would need to generate billions of identifiers before a collision becomes realistic.

概率可忽略。122 位随机空间下,要生成数十亿个才可能出现一次碰撞。

Is it safe for security tokens?可以用于安全令牌吗?

This generator uses the browser cryptographic random source, so the output is unpredictable. For password reset tokens or API keys, still prefer a longer random string.

本工具使用浏览器加密随机源,输出不可预测。但密码重置令牌、API 密钥仍建议用更长的随机串。

Are the generated IDs stored?生成的 ID 会被保存吗?

No. Everything is generated in your browser and discarded when you close the page.

不会。全部在浏览器内生成,关闭页面即丢弃。

Other tools其他工具

🧾

JSON FormatterJSON 格式化

Format, validate and minify JSON — Chinese-safe, runs in your br…

格式化、校验并压缩 JSON,支持中文与错误定位。全程在浏览器本地完成。…

🔤

Base64 Encode / DecodeBase64 编解码

Encode or decode Base64 text with UTF-8 and URL-safe support.…

对文本进行 Base64 编码或解码,支持 UTF-8 中文与 URL 安全字符…

🔗

URL Encode / DecodeURL 编解码

Percent-encode or decode URLs, params and text.…

对网址、参数或文本进行 URL 百分号编码与解码,方便调试接口与链接。…

#️⃣

Hash Generator哈希生成

Generate MD5, SHA-1, SHA-256 or SHA-512 hashes.…

用 MD5、SHA-1、SHA-256 或 SHA-512 为文本生成哈希值,常…

🎫

JWT DecoderJWT 解码

Decode a JSON Web Token locally, no upload.…

在浏览器本地解码 JSON Web Token 的 Header 与 Paylo…

🔎

Regex Tester正则测试

Test regular expressions and see matches live.…

实时测试正则表达式,查看匹配数量与命中内容,方便调试抓取与替换规则。…

Sister sites友情链接 MonkeyDev dev tools hub工具总站 FreePDFKit PDF toolsPDF 工具集 ImageToolKit image tools图片工具集 AI 咒语库 AI prompt libraryAI 提示词库 CalcKit finance calculators财务计算器 OfficeKit office utilities办公工具箱 AIkit AI & machine learningAI 与机器学习 DataKit data & spreadsheet tools数据与表格工具 ChartKit diagrams & charts图表与可视化 DocKit markdown & document toolsMarkdown 与文档工具