ULID generator and decoder
Generate ULIDs, sortable 26-character IDs, or decode one to read its creation time.
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/ulid \
-H 'Content-Type: application/json' \
-d '{"input":{"count":3}}'
import json, urllib.request
body = {'input': {'count': 3}}
request = urllib.request.Request("https://setget.net/v1/tools/ulid", 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/ulid", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"input":{"count":3}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
"slug": "ulid",
"input": {
"count": 3
}
}
{
"input": {
"count": 3
}
}
Endpoint: POST /v1/tools/ulid. Over MCP: run_tool with slug: "ulid".
Machine-readable: input schema, Markdown. Connect an agent.
Inputs
| Name | Type | Required | What it does |
|---|---|---|---|
action |
string | no | Generate new ULIDs, or decode an existing one. One of: generate, decode. Default: "generate". |
count |
integer | no | How many to generate. Default: 1. From 1 to 100. |
text |
string | no | The ULID to decode. |
lowercase |
boolean | no | Write generated ULIDs in lower case. Default: false. |
Examples
Three new ULIDs
Input
{
"count": 3
}Result
Different every time. Press the example button above to see one.
Reading the time inside a ULID
Input
{
"action": "decode",
"text": "01ARYZ6S41TSV4RRFFQ69G5FAV"
}Result
{
"ulid": "01ARYZ6S41TSV4RRFFQ69G5FAV",
"timestamp": "2016-07-30T22:36:16.385Z",
"unix_ms": 1469918176385,
"randomness": "d6764c61efb99302bd5b"
}Questions
- What is inside a ULID?
- A 48-bit timestamp in milliseconds followed by 80 random bits, written as 26 Crockford Base32 characters. ULIDs sort by creation time as plain text.
- Does a ULID reveal anything?
- Yes, its creation time to the millisecond. Anyone can read it, as the decode action shows.
- Why are I, L, O and U missing?
- Crockford Base32 leaves them out to avoid confusion. When decoding, I and L are read as 1 and O as 0.
Related tools
- UUID generatorGenerate UUIDs: random (v4), time-ordered (v7), name-based (v5) or the nil UUID.
uuid - UUID inspectorCheck a UUID and read its version, variant and, for time-based versions, its timestamp.
uuid-inspect - Nano ID generatorGenerate short, URL-safe random IDs of any length, optionally from your own alphabet.
nanoid - 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 - Base58 encoder and decoderEncode text or bytes to Base58 with the Bitcoin alphabet, or decode Base58 back.
base58