🆔 UUID Generator

Generate UUIDs (Universally Unique Identifiers) online with batch generation, format options, multi-format output, and UUID validation. All processing happens client-side in your browser — no data is uploaded to any server.

💡 Single UUID

String
Hex
Base64

📋 Batch Results

📋
No batch results yet
Set the count and click "Batch Generate"
Generated: 0 UUIDs Time: Version: v4 (Random)

✅ UUID Validator

📗 UUID Generation Code by Language

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 of 32 hexadecimal characters grouped as 8-4-4-4-12 separated by hyphens, totaling 36 characters.

UUID Characteristics

  • Uniqueness — UUID algorithms guarantee global uniqueness in practice, with a near-zero probability of collision
  • Decentralized — No central authority required; any system can generate UUIDs independently
  • Standardized — Follows RFC 4122, with implementations that are interoperable across languages and platforms
  • Fixed Formatxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

UUID Versions

VersionNameAlgorithmUse Cases
v1Time-basedTimestamp + MAC AddressScenarios requiring time-based ordering
v4Random UUIDRandom numbers (most common)General unique IDs, API keys, database PKs
v7Time-orderedTimestamp + RandomHigh-load databases, distributed systems

Common Use Cases

  • Database Primary Keys — Avoid auto-increment ID conflicts across distributed databases
  • Distributed Systems — Unique request tracing IDs across microservices
  • API Resource Identifiers — Path identifiers in RESTful APIs
  • Unique File Names — Rename uploaded files with UUIDs to prevent collisions
  • Session Identifiers — Components of user session tokens
Note: This tool uses the browser's native crypto.randomUUID() API (UUID v4) with cryptographically secure random numbers — more reliable than Math.random(). In browsers that don't support this API, it automatically falls back to a compatibility polyfill.

🙏 帮我们做得更好

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

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