Skip to main content
ByteKiwi
Home UUID Generator

UUID Generator

Online UUID generator. Generate cryptographically secure UUID v4 identifiers in bulk - up to 50 at a time, in multiple formats, with one-click copy.

Click Generate to create UUIDs

Cryptographically random v4 UUIDs, generated in your browser

Features

Everything you need, nothing you don’t.

  • Generates RFC 4122-compliant UUID v4 using the browser's native crypto.randomUUID()
  • Bulk generation - create 1, 5, 10, 25, or 50 UUIDs at once
  • Four output formats: standard lowercase, uppercase, no-dashes, and braces
  • Copy individual UUIDs or all at once with a single click
  • Keyboard shortcut: ⌘Enter (Mac) or Ctrl+Enter to generate a fresh batch
  • All generation happens client-side - nothing is sent to any server

Frequently asked questions

What is a UUID?

A UUID (Universally Unique Identifier), also known as a GUID (Globally Unique Identifier), is a 128-bit label used to uniquely identify objects in computer systems. The standard format is 32 hexadecimal digits in five groups separated by hyphens: 8-4-4-4-12. UUIDs are widely used as database primary keys, session tokens, file names, and anywhere a unique identifier is needed without central coordination.

What is UUID v4?

UUID version 4 is randomly generated. Except for a few fixed bits (version and variant), all 122 bits are filled with cryptographically random data. This gives a collision probability so low it is effectively impossible in practice: generating 1 billion UUIDs per second would take about 85 years before a 50% probability of a single collision.

How is the UUID generated?

This tool uses the browser's built-in crypto.randomUUID() method, available in all modern browsers. It pulls entropy from the operating system's cryptographically secure random number generator (CSPRNG) - the same source used for TLS and key generation. No third-party library is involved.

What format should I use?

The standard lowercase format (e.g. 550e8400-e29b-41d4-a716-446655440000) is the most widely accepted and is specified by RFC 4122. Uppercase is sometimes required by older Microsoft APIs. No-dashes format is useful for compact storage. Braces format ({550E8400-E29B-41D4-A716-446655440000}) is the classic Windows/COM GUID format.

Can I use these UUIDs as database primary keys?

Yes. UUID v4 is a common choice for distributed systems where you need unique IDs without a central sequence. The main tradeoff versus integer IDs is storage size (16 bytes vs 4-8 bytes) and random insertion order, which can fragment B-tree indexes. If insert performance is critical at high scale, consider UUID v7 (time-ordered) instead.

Are these UUIDs safe to use in URLs?

Yes. The standard UUID format uses only hexadecimal characters (0-9, a-f) and hyphens, all of which are URL-safe and require no percent-encoding. The no-dashes format is even more compact and equally safe in URLs.

How do I generate a UUID in Python?

Python's standard library includes a uuid module:

import uuid

# Generate a random UUID v4
my_uuid = uuid.uuid4()
print(str(my_uuid))  # e.g. 550e8400-e29b-41d4-a716-446655440000

# As a hex string without dashes
print(my_uuid.hex)

No third-party library needed. For bulk generation or formatted output, use the tool above.

How do I generate a UUID in Java?

Java includes java.util.UUID in the standard library:

import java.util.UUID;

// Generate a random UUID v4
UUID uuid = UUID.randomUUID();
System.out.println(uuid.toString());
// e.g. 550e8400-e29b-41d4-a716-446655440000

// Uppercase, no dashes
System.out.println(uuid.toString().replace("-", "").toUpperCase());

UUID Types and Special Uses

When to use a random UUID generator versus a specific lookup.

Minecraft UUID Generator

Minecraft Java Edition assigns a fixed UUID to every player account, tied to their Mojang username. These are not randomly generated - they are issued by Mojang's authentication servers and stay constant for the lifetime of the account. To look up a player's Minecraft UUID by username, query the Mojang API:

https://api.mojang.com/users/profiles/minecraft/{username}

# Example
curl https://api.mojang.com/users/profiles/minecraft/Notch
# Returns: {"name":"Notch","id":"069a79f444e94726a5befca90e38aaf5"}

The random UUID v4 generator above is useful for Minecraft plugin and server development: generating IDs for custom entities, data packs, world objects, or offline-mode player entries where a Mojang-assigned UUID is not available. For whitelists and ban lists, always use the UUID from the Mojang API.