UUID generator
Generate UUIDs: random (v4), time-ordered (v7), name-based (v5) or the nil UUID.
Input
Result
Fill in the input and press Run.
Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.
Use it from code or an agent
curl -s https://setget.net/v1/tools/uuid \
-H 'Content-Type: application/json' \
-d '{"input":{"version":"v4","count":3}}'
import json, urllib.request
body = {'input': {'version': 'v4', 'count': 3}}
request = urllib.request.Request("https://setget.net/v1/tools/uuid", json.dumps(body).encode(),
{"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/uuid", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"input":{"version":"v4","count":3}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
"slug": "uuid",
"input": {
"version": "v4",
"count": 3
}
}
{
"input": {
"version": "v4",
"count": 3
}
}
Endpoint: POST /v1/tools/uuid. Over MCP: run_tool with slug: "uuid".
Machine-readable: input schema, Markdown. Connect an agent.
Inputs
| Name | Type | Required | What it does |
|---|---|---|---|
version |
string | no | v4 is random, v7 is time-ordered and sorts by creation time, v5 is always the same for the same namespace and name, nil is all zeros. One of: v4, v7, v5, nil. Default: "v4". |
count |
integer | no | How many to generate. v5 and nil always give one. Default: 1. From 1 to 100. |
name |
string | no | For v5: the name to turn into a UUID. |
namespace |
string | no | For v5: "dns", "url", "oid", "x500" or any UUID to use as the namespace. Default: "dns". |
uppercase |
boolean | no | Write the letters A-F in upper case. Default: false. |
hyphens |
boolean | no | Keep the hyphens. Turn off for 32 plain hex digits. Default: true. |
Examples
Three random UUIDs
Input
{
"version": "v4",
"count": 3
}Result
Different every time. Press the example button above to see one.
A name-based UUID is always the same
Input
{
"version": "v5",
"namespace": "dns",
"name": "python.org"
}Result
{
"text": "886313e1-3b8a-5372-9b90-0c9aee199e5d",
"uuids": [
"886313e1-3b8a-5372-9b90-0c9aee199e5d"
],
"version": "v5"
}Time-ordered, compact
Input
{
"version": "v7",
"count": 2,
"uppercase": true,
"hyphens": false
}Result
Different every time. Press the example button above to see one.
Questions
- Which version should I use?
- v4 for general use. v7 when the IDs are database keys, because they sort by creation time. v5 when the same input must always give the same ID.
- Can two random UUIDs collide?
- In practice, no. A v4 UUID has 122 random bits, so a clash is far less likely than a hardware fault.
- Does a v7 UUID reveal anything?
- Yes, its creation time to the millisecond. Use v4 if that should stay private.
Related tools
- UUID inspectorCheck a UUID and read its version, variant and, for time-based versions, its timestamp.
uuid-inspect - ULID generator and decoderGenerate ULIDs, sortable 26-character IDs, or decode one to read its creation time.
ulid - Nano ID generatorGenerate short, URL-safe random IDs of any length, optionally from your own alphabet.
nanoid - Random generatorMake secure random integers, decimals, bytes and dice rolls, or pick from and shuffle a list.
random - All hashes at onceCompute every supported hash of one input at once: MD5, SHA-1, SHA-2, SHA3-256 and BLAKE2b.
hash-all - Base32 encoder and decoderEncode text to Base32 (RFC 4648) or decode it back, with or without padding.
base32