Name-based UUID generator

Generate a UUID v5

Create a deterministic UUID from a namespace and name. The same input always produces the same UUID v5.

UUID v5

Generating...

What is UUID v5?

UUID v5 is a name-based UUID. It hashes a namespace UUID and a name with SHA-1, then formats the result as a UUID. It is useful when the same real-world value should always map to the same identifier.

Use UUID v5 when

  • You need repeatable IDs for the same input.
  • You can define a stable namespace.
  • You do not need a random or time-sortable UUID.

UUID v5 format and notes

Example output

119f019e-a431-5bdc-979e-9405ce5043ba

Format

UUID v5 uses 32 hexadecimal characters split into five groups. The version digit is always 5.

Common mistake

Do not use UUID v5 for secrets. It is deterministic, so the same namespace and name always produce the same UUID.

UUID v5 code examples

Generate a UUID v5 in JavaScript with the uuid package.

import { v5 as uuidv5 } from "uuid";

const id = uuidv5("uuid.bot", uuidv5.DNS);
console.log(id);

Other UUID generators