Toolvist

UUID / GUID Generator

GUID / UUID generator — create random v4 or time-ordered v7 identifiers online, in bulk, and copy them instantly.

Generated locally with cryptographically secure randomness. Nothing leaves your browser.

Free UUID / GUID Generator

This UUID generator creates RFC 4122 version 4 (random) Universally Unique Identifiers instantly. Generate a single UUID or a bulk list, then copy them with one click.

Need a secret rather than an identifier? The Random Token Generator is built for that, and the Mock JSON Generator will populate a test fixture with UUIDs for you.

How to use the UUID Generator

  1. 1 Choose how many UUIDs you need.
  2. 2 Select the version — v4 is random and the usual choice; v7 is time-ordered and sorts better as a database key.
  3. 3 Generate, then copy the list in plain text, or in a quoted or comma-separated form for pasting into code.
  4. 4 Check the format options if you need uppercase or braces.

RFC 4122 Version 4 UUID structure and collision probability

The UUID Generator produces RFC 4122 Version 4 Universally Unique Identifiers (UUIDs / GUIDs). A v4 UUID is a 128-bit value formatted as 32 hexadecimal characters divided into five hyphen-separated groups (8-4-4-4-12, e.g., `550e8400-e29b-41d4-a716-446655440000`). It features 122 bits of pure cryptographic entropy, with 4 bits reserved to denote Version 4 and 2 bits reserved to denote the RFC variant.

With 122 bits of entropy (2¹²² ≈ 5.3 × 10³⁶ possible values), the probability of generating a duplicate UUID is so infinitesimally small that it is effectively zero for all real-world computational purposes. This makes UUID v4 the universal standard for database primary keys, distributed microservice trace IDs, session tokens, and transaction identifiers.

  • Generates standard RFC 4122 Version 4 (random) 128-bit Universally Unique Identifiers.
  • Produces standard 8-4-4-4-12 hyphenated strings, uppercase variants, and raw hex format.
  • Provides bulk generation for database seeding, fixture creation, and microservices.
  • Guarantees distributed uniqueness without requiring a centralized coordinating server.

What is a UUID?

A UUID (Universally Unique Identifier), also called a GUID, is a 128-bit value formatted as 32 hexadecimal digits in five hyphen-separated groups: 8-4-4-4-12, for example 123e4567-e89b-12d3-a456-426614174000. Because the random space is so large, collision risk is effectively zero for practical purposes, making UUIDs ideal for database keys, session IDs, and distributed systems.

Frequently asked questions

Can two UUID v4 values ever collide?

In theory yes, in practice no. A v4 UUID has 122 random bits, so you would need to generate about 2.7 × 10¹⁸ of them before a 50% chance of any collision — far beyond any realistic system.

Should I use UUID v4 or v7 as a database primary key?

v7 for new systems. v4 is random, which scatters inserts across the whole B-tree index and hurts write performance. v7 puts a timestamp first, so IDs are roughly sequential and index locality is far better.

Is a UUID safe to expose in a URL?

It is unguessable, but it is an identifier, not a security token. Treat it as public: always enforce authorisation on the server rather than relying on nobody being able to guess the ID.

Related Generators & Misc

Browse all Generators & Misc →

You might also need

Tools from other categories that people pair with the UUID Generator:

Browse the full tool directory →