"I absolutely love Userback! It's been a game-changer for how we collect feedback and interact with our users."

More Customer Stories →

Learn Userback

UUID Generator

Generate UUID v1, v4, and v5 identifiers with multiple format options. Perfect for creating unique identifiers in WordPress development, API keys, and database records. Supports standard, braces, and hex formats with batch generation capabilities.

Something went wrong generating UUIDs.

How to Use the UUID Generator:

Select a UUID version (v1 for time-based, v4 for random, or v5 for namespace-based). Choose your output format (standard, braces, or hex). For v5 UUIDs, provide a namespace (DNS, URL, OID, X.500, or custom UUID) and a name. Click Generate to create UUIDs, or use Batch Generate to create multiple at once.

WordPress Development

Generate unique identifiers for custom post types, user IDs, and database records that need globally unique values.

API Development

Create unique API keys, request IDs, and transaction identifiers for REST API endpoints and web services.

Database Records

Generate UUIDs for database primary keys when you need globally unique identifiers across distributed systems.

How Do UUIDs Work?

UUIDs (Universally Unique Identifiers) are 128-bit identifiers that are guaranteed to be unique across time and space. Different versions use different generation methods: v1 uses MAC address and timestamp, v4 uses random numbers, and v5 uses namespace-based hashing.

UUID v1 (Time-based)

Combines MAC address and timestamp to create time-ordered UUIDs. Useful when you need chronological ordering of identifiers.

UUID v4 (Random)

Uses cryptographically random numbers to generate UUIDs. Most common version for general-purpose unique identifiers.

UUID v5 (Namespace-based)

Generates deterministic UUIDs from a namespace UUID and a name using SHA-1 hashing. Same input always produces the same UUID.

Using UUIDs in JavaScript:

javascript Generate UUID v4
function generateUUID() {

  return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {

    const r = Math.random() * 16 | 0;

    const v = c === 'x' ? r : (r & 0x3 | 0x8);

    return v.toString(16);

  });

}

const uuid = generateUUID();

console.log(uuid);
Output 550e8400-e29b-41d4-a716-446655440000

Generate a random UUID v4 using JavaScript

Frequently asked questions

v1 uses MAC address and timestamp (time-ordered), v4 uses random numbers (most common), and v5 uses namespace-based hashing (deterministic).

Use v5 when you need deterministic UUIDs – the same namespace and name will always produce the same UUID, useful for generating consistent identifiers from known inputs.

Standard format (with hyphens) is most common. Braces format includes curly braces, and hex format removes hyphens entirely.

Collect Better Feedback with Userback

This UUID generator helps you create unique identifiers efficiently, but gathering feedback about how users interact with your applications requires comprehensive context. Userback captures detailed visual feedback when users report issues with unique identifiers, API keys, or database records. With automatic screenshot capture, browser information, console logs, and network activity, you get complete visibility into identifier-related problems. When developers need to report UUID generation issues or suggest improvements to identifier workflows, Userback enables them to submit detailed feedback that includes all technical context in a single shareable report.