ULID generator and decoder

Generate ULIDs, sortable 26-character IDs, or decode one to read its creation time.

Input

Generate new ULIDs, or decode an existing one.
How many to generate.
The ULID to decode.
Write generated ULIDs in lower case.

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

NameTypeRequiredWhat 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.