🆔 UUID Generator

Generate UUIDs (Universally Unique Identifiers) online, supports batch generation, multiple format options, and UUID validation. Pure browser-side processing, data is not uploaded to the server.

💡 Single UUID

—
String —
Hex —
Base64 —

📋 Batch Results

📋
No batch results yet
Select a quantity and click the "Batch Generate" button
Generated: 0 UUIDs Time: — Version: v4 (Random)

✅ UUID Validator

📗 Generate UUID Code in Various Languages

JavaScript
crypto.randomUUID()
Python
import uuid\nuuid.uuid4()
Java
import java.util.UUID;\nUUID.randomUUID()
Dart
import 'package:uuid/uuid.dart';\nvar uuid = Uuid();\nuuid.v4()
C#
Guid.NewGuid()
SQL
SELECT UUID()

What is a UUID?

UUID (Universally Unique Identifier) is a 128-bit number used to uniquely identify information in computer systems. A UUID is made up of 32 hexadecimal characters, grouped by hyphens in a 8-4-4-4-12 pattern for a total of 36 characters.

UUID Characteristics

  • Uniqueness — The algorithm makes global uniqueness all but certain, with a near-zero collision probability
  • Decentralized — No central authority required; any system can generate one independently
  • Standardized — Follows RFC 4122, compatible across languages and platforms
  • Fixed format — xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

UUID Versions

VersionNameAlgorithmUse case
v1Time-basedTimestamp + MAC addressWhen ordering by time matters
v4RandomRandom numbers (most common)Generic unique IDs, API keys
v7Time-orderedTimestamp + randomHigh-load databases, distributed systems

Common Use Cases

  • Database primary keys — Avoid auto-increment conflicts across replicas
  • Distributed systems — Unique request tracking ids between microservices
  • API resource identifiers — Path identifiers in RESTful APIs
  • Unique filenames — Rename uploads to avoid name collisions
  • Session identifiers — Part of user session tokens
Tip: This tool uses the browser's native crypto.randomUUID() API (UUID v4), which relies on cryptographically secure randomness and is more reliable than Math.random(). It degrades gracefully to a compatible fallback on browsers that do not support the API.

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏