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.
1ad0a5f11-5ff2-4e87-9a47-60e4f6d9d924
2d05b9ed8-9e9c-4e6f-9ea9-88b7b4918ff3
34d197d3e-4927-47e3-9661-ce66a5a1cb3c
4277e8a69-3450-4d35-b77e-9ca249021744
53760d7b1-e343-4512-bdd9-e3ddcd183865

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.