UUID v5 Generator

Name-based UUID using SHA-1 hashing

Enter values above and click Generate

About

UUID Version 5 is generated by hashing a namespace identifier and a name using SHA-1. Like v3, it's deterministic - the same namespace and name will always produce the same UUID. Version 5 is preferred over v3 because SHA-1 is more secure than MD5, though SHA-1 itself is now considered deprecated for cryptographic purposes. It's useful when you need to generate consistent UUIDs from the same input across different systems without coordination.

Use Cases

  • Generating consistent IDs from URLs or domain names
  • Creating deterministic UUIDs from user input or identifiers
  • Mapping names to UUIDs in a predictable way
  • Content-addressable storage systems
  • Generating UUIDs from email addresses or usernames

How to Generate

Library

uuid

NPM Package

npm install uuid

Code Example

import { v5 as uuidv5 } from 'uuid';
const namespace = uuidv5.DNS; // or uuidv5.URL, uuidv5.OID, uuidv5.X500
const name = 'example.com';
const id = uuidv5(name, namespace);
console.log(id); // Always the same for same name/namespace