UUID Generator

UUID v4 · UUID v1 · Bulk generation · No signup

Free UUID Generator Online

Generate UUID v4 and v1 identifiers instantly. Standard, uppercase, no-hyphens, and URN formats.
Cryptographically random · Client-side only · No data sent anywhere

VERSION

Random-based (recommended)

FORMAT

COUNT

max 100

Click "Generate UUID" to create identifiers

What Is a UUID?

A UUID (Universally Unique Identifier) — also called GUID (Globally Unique Identifier) on Windows systems — is a 128-bit identifier designed to be unique across all computers and networks, without requiring a central authority to coordinate.

A UUID looks like this: 550e8400-e29b-41d4-a716-446655440000

It consists of 32 hex characters divided into 5 groups: 8-4-4-4-12, for a total of 36 characters including hyphens.

UUID v4 vs UUID v1

UUID v4 (Recommended)

  • Generated from cryptographic random numbers
  • No information embedded in the UUID
  • Privacy-preserving (no timestamp or MAC)
  • The industry standard for most use cases

UUID v1 (Timestamp-based)

  • Encodes the current timestamp
  • Encodes the MAC address of the machine
  • Sortable by creation time (roughly)
  • Privacy concern: leaks creation time

Common Use Cases

  • Database primary keys — UUIDs are often used instead of auto-incrementing integers, enabling distributed systems to generate IDs without coordination.
  • API request tracing — Assign a UUID to each API request for distributed tracing and log correlation.
  • Session tokens — Generate unique session IDs that cannot be guessed or enumerated.
  • File naming — Rename uploaded files with UUIDs to prevent collisions and directory traversal attacks.
  • Idempotency keys — APIs like Stripe use UUIDs as idempotency keys to prevent duplicate charges.

Generating UUIDs in Code

JavaScript / Node.js
// Browser & Node 19+
crypto.randomUUID()

// Node.js (older)
const { v4: uuidv4 } = require('uuid');
uuidv4();
Python
import uuid
uuid.uuid4()
# '550e8400-e29b-41d4-a716-446655440000'
Go
import "github.com/google/uuid"
uuid.New().String()
PostgreSQL
-- Enable extension once:
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";

SELECT uuid_generate_v4();
Free UUID Generator · Cryptographically secure · No data leaves your browser
Built by Noah AI Labs · Part of the free developer tools suite