UtilHub

UUID Generator

Generate any number of UUIDs in v1 (time-based), v4 (random), v5 (name-based SHA-1), or v7 (time-ordered random) format. Bulk generation, validation, and format analysis included.

5
Version 4: Randomly generated (128-bit). Most widely used. No inherent ordering.
1c60dde8d-e0c0-4aed-aa30-f0442d39f2df
27cc19cd4-b3af-4310-aaf5-cd064d5f4726
35ad5ebd6-a5ab-41e3-a182-079d4c391056
4d4f86140-bebd-4185-b8d7-c65162c4a246
50c85d21b-4083-4b00-a535-957ed0aeba1e

Frequently Asked Questions

What is a UUID and when should I use it?

A UUID (Universally Unique Identifier) is a 128-bit identifier designed to be globally unique without a central authority. Use them for database primary keys, request IDs, session tokens, or any ID that must be unique across distributed systems.

UUID v4 vs v7 — which should I use for database keys?

UUID v7 is preferred for database primary keys because it's time-ordered (monotonically increasing), which leads to better B-tree index performance and less page fragmentation. UUID v4 is purely random and causes index fragmentation at scale.

Are these UUIDs cryptographically secure?

Yes — they use the browser's crypto.randomUUID() and crypto.getRandomValues(), which are cryptographically secure random number generators. These are suitable for use as tokens, API keys, and security-sensitive identifiers.