Ir para o conteúdo principal

0 of 3 uses today · 3 remaining. Go Pro and remove the limit.

Upgrade

UUID v4 Generator

Web Crypto API · RFC 4122 standard · up to 1000 in batch.

Processado no seu navegador
1
standard
128 bits

Generated UUID

9bae6675-52ce-4afb-bbd2-0869b21882da

Configure generation

Web Crypto. UUIDs generated via crypto.getRandomValues() — cryptographically secure. No data sent to server. RFC 4122 v4 standard.
Sobre

What is a UUID and when should you generate one?

Por Quorify EditorialAtualizado em

Quorify's UUID Generator produces unique identifiers: UUID v1 (timestamp + MAC), v4 (cryptographic random), and v7 (sortable timestamp — RFC 9562 from 2024). Useful for primary keys in distributed databases, event identifiers, cache keys, request IDs, and correlation IDs in logs. Calculation uses the browser's Web Crypto API. In distributed systems where multiple services need to generate IDs simultaneously without coordination, UUIDs are the standard solution — collision probability is virtually zero. Part of the Quorify dev toolkit: combine it with the JSON Formatter to structure payloads, the Hash Generator for fingerprints, and the Slug Generator for user-friendly URLs.

Casos

When to use

  1. Primary key in database tables where multiple services insert data — UUID eliminates the need for centralized sequence coordination.

  2. Request ID in distributed logs — attaching a UUID to each request enables tracing the user's journey across microservices.

  3. Idempotency key in payment APIs — using a client-generated UUID prevents double-charging on retry.

  4. Upload identifier in S3 — UUID in the filename prevents collision and reveals nothing about internal structure.

  5. Invite or password-recovery token — UUID v4 works as a random token secure enough for these use cases.

Método

How calculation works

UUID v4 (most common today) is generated from 128 random bits via crypto.getRandomValues, with an 8-4-4-4-12 hexadecimal format and fixed version bits. Collision probability of 2 randomly generated v4 UUIDs is so low it's considered zero for practical purposes. UUID v1 uses timestamp + MAC address of the generating machine — unique but exposes when and where it was generated. UUID v7 (RFC 9562, 2024) is the modern version: Unix timestamp in ms + random bits, temporally sortable — better for database indexes than pure v4 (which is completely random and fragments indexes).

FAQ

Frequently asked questions

Which UUID version should I use?
Modern default is UUID v7 (RFC 9562) — combines temporal order (good for database indexes) with enough randomness for uniqueness. UUID v4 is still fine for cases where order doesn't matter. UUID v1 is rarely the best choice today — it exposes MAC and generation time. UUID v3/v5 are deterministic (hash of namespace + name) — useful for generating the same UUID from the same input.
Is UUID collision possible?
Theoretically yes, practically no. Collision probability of two randomly generated v4 UUIDs in all of human history is on the order of 2^-122 — equivalent to winning the lottery multiple times in a row. For UUID v1 and v7 (which use timestamps), probability is even lower, since timestamps add temporal uniqueness.
Is UUID secure as an authentication token?
UUID v4 with 128 random bits is strong enough for short-lived tokens (invite, password reset) — entropy equivalent to 122 random bits. For long-lived tokens (API key, JWT), also use periodic rotation, expiration, and revocation. Never use UUID v1 or v3 as a token — they can be predicted/derived.
Why can UUID in databases be slow?
Because UUID v4 is random — inserts in a B-tree index cause fragmentation and cache misses. UUID v7 (timestamp-ordered) solves this: inserts become append-only in the index, performance similar to auto-increment integers. Postgres has native support via uuidv7() in recent versions.
Can I shorten UUID for URLs?
Yes, by encoding the 128 bits in Base62 or Base64URL (not standard Base64, which has problematic characters in URLs). Tools like NanoID and Sqids do this by default, producing 21-character IDs with the same entropy. But if you already have a generated UUID, keeping the canonical 36-character format is more portable.
Does UUID v4 work offline?
Yes — UUID v4 generation requires no central coordination or internet, just a cryptographic random number generator. This is what makes UUIDs valuable in distributed systems: an offline client can generate a valid ID and sync later without collision risk.
Fontes

Official sources

Tabelas, leis e referências consultadas para fundamentar esta ferramenta.

  1. International standardRFC 4122 (2005)IETF · Internet Engineering Task Force

    RFC 4122 — A Universally Unique IDentifier (UUID) URN Namespace

    Specification for UUID identifiers (versions 1, 3, 4, and 5), canonical 36-character format, and generation rules to ensure global uniqueness.

  2. International standardRFC 9562 (2024)IETF · Internet Engineering Task Force

    RFC 9562 — Universally Unique IDentifiers (UUIDs)

    Update to the UUID standard with versions 6, 7, and 8 — time-ordered and optimized for use in databases and modern distributed systems.

Metodologia — esta ferramenta consulta as tabelas e legislação vigentes nas fontes acima. As regras são atualizadas conforme novas instruções normativas são publicadas pelos órgãos competentes.

Última verificação editorial: junho de 2026.

Compartilhe

Related

Related tools

toolLayout.related_description