belun.app

UUID Generator — Generate Random UUID v4

Generate cryptographically random UUID v4 identifiers in seconds. Useful for primary keys, correlation IDs, session tokens, and any place you need a unique identifier. Choose how many UUIDs you need, toggle uppercase, and copy them all at once. Everything runs locally in your browser — nothing is sent to a server.

UUID v4 structure and alternatives

A UUID holds 128 bits, written as 32 hex digits in five dash-separated groups. In version 4, six bits mark the version and variant, and the remaining 122 are random. Browsers produce them with crypto.randomUUID(), which draws on a cryptographically secure random source. A 50% chance of a single collision needs more than 2.7 × 10¹⁸ UUIDs.

ID type Random Sorts by time Short
UUID v4 yes no no
UUID v1 no, time-based yes no
ULID yes yes no
Nano ID yes no yes
Auto-increment integer no yes yes

As a primary key, random v4 values scatter inserts across a B-tree index, which can slow writes on large tables. UUID v7 and ULID put a timestamp first and avoid that. Stored as CHAR(36), a UUID wastes space; use the native UUID type in PostgreSQL or BINARY(16) in MySQL. Unlike sequential integers, UUIDs in API paths stop clients from guessing neighbouring records such as /users/2. A UUID per request, written to every log line, lets you trace one call across several services.

Related tools