🆔 Developer Tool

UUID Generator

Generate UUID v1, v4, v5, ULID, CUID, NanoID, ObjectID in bulk. Validate, format, copy and export — free, no signup.

🔀 UUID v1 v4 v5 📦 ULID 🆔 CUID 🔗 NanoID 🍃 ObjectID 📋 Bulk Generate ✅ Validator ↓ Export CSV/JSON 📜 History
ID Type
Options
lowercase
UPPERCASE
With hyphens
No hyphens
{ Braces }
" Quotes "
urn: prefix
Generate
Ctrl+Enter to generate
Recent
Generate some UUIDs to see history
Output ● Live
0
Generated
v4
Type
36
Length
0ms
Time
Click Generate to create UUIDs
// UUIDs will appear here... // Click a UUID to copy it individually
📖 Guide

How to Generate UUIDs Online

KJSynthora's UUID Generator lets you create any type of unique identifier instantly in your browser — UUID v4, v1, v5, ULID, CUID, NanoID, MongoDB ObjectID and ShortID. Generate one or 10,000 at once, format them, validate existing IDs, and export as TXT, CSV, or JSON.

STEP 01
Choose Type
Select UUID v4 (random), v1 (time-based), v5 (name-based), ULID, CUID, NanoID, ObjectID, or ShortID.
STEP 02
Set Count
Enter 1 to 10,000 IDs to generate. Use quick buttons: ×1, ×10, ×100, ×1000.
STEP 03
Format
Choose uppercase/lowercase, with/without hyphens, braces, quotes, or URN prefix.
STEP 04
Generate
Click Generate or press Ctrl+Enter. All IDs appear instantly in the output panel.
STEP 05
Export
Copy all, or download as TXT (one per line), CSV, or JSON array for use in code or databases.
📚 UUID Types

UUID Versions & ID Types Explained

UUID v4
Random UUID
a1b2c3d4-e5f6-4789-a1b2-c3d4e5f67890
Generated from cryptographically secure random bits. Most common. No timestamp, no MAC address exposure.
UUID v1
Time-based UUID
6ba7b810-9dad-11d1-80b4-00c04fd430c8
Encodes current timestamp + node (MAC). Monotonically sortable but leaks system info.
UUID v5
Name-based UUID
74738ff5-5367-5958-9aee-98fffdcd1876
SHA-1 hash of namespace + name. Same input always produces the same UUID. Deterministic.
ULID
Sortable Unique ID
01ARZ3NDEKTSV4RRFFQ69G5FAV
26-char Crockford Base32. Lexicographically sortable by time. UUID-compatible. Ideal for DB primary keys.
CUID
Collision-resistant ID
cjld2cjxh0000qzrmn831i7rn
Starts with 'c', includes timestamp fingerprint. Good for distributed systems. URL-safe.
NanoID
URL-safe Short ID
V1StGXR8_Z5jdHi6B-myT
21 chars default, URL-safe alphabet. Smaller than UUID, configurable length and alphabet.
ObjectID
MongoDB ObjectID
507f1f77bcf86cd799439011
24 hex chars. Timestamp + machine + process + counter. Used as MongoDB _id field.
ShortID
Short Unique String
PPBqWA9
7–14 random URL-safe characters. Human-readable, compact. Good for short links and tokens.

UUID Comparison Table

TypeLengthSortableRandomDeterministicURL-safeBest For
UUID v436 charsNoYesNoNo (hyphens)General unique IDs, DB keys
UUID v136 charsBy timePartialNoNoTime-ordered records
UUID v536 charsNoNoYesNoDeterministic IDs from names
ULID26 charsYesYesNoYesDatabase primary keys
CUID~25 charsApproxYesNoYesDistributed systems
NanoID21 charsNoYesNoYesURLs, short tokens
ObjectID24 charsBy timePartialNoHex onlyMongoDB documents

UUID in Code — Examples

// JavaScript — Web Crypto API (UUID v4) const uuid = crypto.randomUUID(); // "a1b2c3d4-e5f6-4789-a1b2-c3d4e5f67890" // Python — standard library import uuid uid = str(uuid.uuid4()) // Java import java.util.UUID; String uid = UUID.randomUUID().toString(); // Node.js — uuid package const { v4: uuidv4 } = require('uuid'); const uid = uuidv4(); // PostgreSQL — generate uuid SELECT gen_random_uuid(); // MySQL — UUID function SELECT UUID();
❓ FAQ

Frequently Asked Questions

A UUID (Universally Unique Identifier) is a 128-bit label used to uniquely identify information. The standard format is 8-4-4-4-12 hexadecimal digits separated by hyphens: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. UUIDs are used as database primary keys, session IDs, file names, and API tokens.

UUID v4 is randomly generated using a cryptographically secure random number generator — each UUID is unique with overwhelming probability. UUID v1 encodes the current timestamp plus the device's MAC address. v1 UUIDs are time-sortable but they expose system information. v4 is recommended for most use cases where privacy matters.

ULID (Universally Unique Lexicographically Sortable Identifier) is a 26-character ID that encodes a millisecond timestamp plus 80 bits of randomness. Unlike UUID v4, ULIDs are naturally sortable — records sort chronologically by their ID. Use ULID when you need unique IDs that sort by creation time in databases like PostgreSQL, MySQL or DynamoDB.

UUID v4 uses 122 random bits (2^122 ≈ 5.3 × 10^36 possible values). If you generated 1 billion UUIDs per second for 100 years, the probability of a single collision is approximately 50%. For all practical purposes in any system, UUID v4 is unique.

Yes. Enter a count from 1 to 10,000 in the Count field and click Generate. All IDs are generated instantly in your browser. Export them as TXT (one per line), CSV (with index column), or JSON array. You can also use the ×10, ×100, ×1000 quick buttons.

Switch to the Validate tab, paste your UUID (or multiple UUIDs, one per line), and click Validate. The tool checks the format against the UUID RFC, identifies the version (v1, v3, v4, v5), checks the variant bits, and shows whether the format is valid.

NanoID is a tiny URL-friendly unique string ID. It is 21 characters by default using a URL-safe alphabet (A-Za-z0-9_-). It is smaller than UUID and configurable — you can change the length and alphabet. NanoID is popular in JavaScript/Node.js projects for URL slugs, session tokens, and database keys.

Yes, completely free. No signup, no rate limit, no watermark. All UUID generation happens using the browser's built-in crypto.randomUUID() and Web Crypto API — nothing is sent to any server.

🔗 Related

Related Developer Tools

🔑Base64 Encoder 💻JSON Formatter 🔓JWT Decoder 🔐Hash Generator 🔍Regex Tester 📜JS Beautifier 🌈CSS Gradient 📐Diagram Maker