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.
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.
Related Products
on GumroadDeveloper Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →Developer Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →You Might Also Need
UUID Generator
Free UUID generator. Generate UUID v1 (time-based), v4 (cryptographically random), or v5 (SHA-1 name-based) in bulk. Multiple output formats: standard, UPPERCASE, no-hyphens, braces. Pro: generate up
Open free tool →
UUID v7 Generator
Generate UUID v7 — the timestamp-ordered UUID format from RFC 9562. Sortable, database-friendly, ideal for distributed systems. Also generates UUID v4, ULID, nanoid. Extract timestamps from UUID v7. Runs in your browser.
Open free tool →
SQL ERD Diagram Generator
Paste SQL CREATE TABLE statements to instantly visualize your database schema as an entity-relationship diagram. Shows tables, column types, primary keys, foreign keys, and relationships.
Open free tool →
More Free Tools
Related Articles
UUID Generator Bulk: Generate Hundreds of UUIDs Instantly Online
Generate UUIDs in bulk online — v4 random, v1 time-based, v7 sortable. Download as CSV, JSON, or plain text. Free, no install, no account required.
UUID Generator Online: Generate v4, v1, and v7 UUIDs Instantly Free
Generate UUIDs online for free — v4 random, v1 time-based, and v7 sortable. Learn UUID formats, use cases, and how to generate UUIDs in JavaScript, Python, Go, and SQL.
UUID v4 Guide: When to Use UUIDs Instead of Auto-Increment IDs
Learn when and how to use UUIDs over auto-increment IDs in JavaScript, Python, and Node.js. Covers v4 vs v7, performance tradeoffs, database storage strategies, and real-world use cases.
UUID vs ULID vs CUID: Which Should You Use?
A practical comparison of UUID, ULID, and CUID for unique ID generation. Learn which identifier format is right for your database, API, or distributed system in 2026.
Database Indexing Strategies Every Developer Must Know
Master database indexing in 2026. Learn B-tree, hash, composite, partial, and covering indexes with practical SQL examples for PostgreSQL and MySQL.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$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.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →