Skip to main content

UUID Namespace Generator

Generate deterministic UUID v3 (MD5) and v5 (SHA-1) from a namespace and name. Same inputs always produce the same UUID — great for stable identifiers derived from URLs, domain names, or any string. Also generates random v4. Batch mode for up to 100 names.

✓ Deterministic v3 & v5 ✓ DNS / URL / OID / X500 presets ✓ Batch up to 100 names ✓ 100% browser — no server

Frequently Asked Questions

What is a namespace UUID and why would I use one?▼

Namespace UUIDs (v3 and v5) are deterministic — the same namespace + name always produces the same UUID. This is useful when you want a stable identifier derived from a meaningful name, such as generating a UUID for a URL, a user email, or a domain name. Unlike random v4 UUIDs, namespace UUIDs can be reproduced without storing them in a database.

What is the difference between UUID v3 and v5?▼

Both v3 and v5 are name-based UUIDs. v3 uses MD5 hashing, while v5 uses SHA-1. For new projects, always prefer v5 (SHA-1) over v3 (MD5) because SHA-1 is more collision-resistant. v3 exists mainly for backward compatibility with older systems that were built before v5 was specified.

What are the standard RFC 4122 namespace UUIDs?▼

RFC 4122 defines four standard namespaces: DNS (6ba7b810-9dad-11d1-80b4-00c04fd430c8) for domain names, URL (6ba7b811-9dad-11d1-80b4-00c04fd430c8) for URLs, OID (6ba7b812-9dad-11d1-80b4-00c04fd430c8) for ISO Object Identifiers, and X500 (6ba7b814-9dad-11d1-80b4-00c04fd430c8) for X.500 distinguished names. You can also use any valid UUID as a custom namespace.

Can two different names in the same namespace produce the same UUID?▼

Theoretically yes (hash collision), but in practice it is astronomically unlikely. SHA-1 produces a 160-bit hash, of which 122 bits are used in v5. A collision would require a deliberate attack using known SHA-1 weaknesses, and even then producing a specific UUID from a name-based hash is not practically feasible.

When should I use a custom namespace vs. the DNS or URL presets?▼

Use the DNS namespace when your names are hostnames (e.g., api.example.com), and URL namespace when your names are full URLs. Use a custom namespace when you want UUIDs scoped specifically to your application — so there's no overlap with other applications that might generate namespace UUIDs from the same name strings. Generate your custom namespace once with UUID v4 and store it as a constant in your codebase.

Are namespace UUIDs safe to use as database primary keys?▼

Yes, but with caveats. Because v5 UUIDs are deterministic, a leaked namespace + algorithm allows anyone to reverse-engineer what identifier maps to what name. For sensitive data (e.g., deriving a UUID from a user's email), consider using a private custom namespace or adding a secret salt into the name before hashing. For non-sensitive content identifiers, namespace UUIDs are perfectly safe as primary keys.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →