ULID Generator & Decoder
Software · 2 inputs · Free
ULID Generator & Decoder
Parameters
What is this tool?
ULID Generator & Decoder helps developers with encoding, encryption and text processing. Generates 1–100 identifiers that follow the ULID spec: a 48-bit millisecond timestamp plus 80 bits of randomness, written as 26 Crockford Base32 characters. IDs created in the same millisecond are incremented by one as the spec requires, so the list sorts in creation order. Fill in the ULID field and the tool decodes it instead, showing the timestamp (ISO 8601 and Unix ms) and the randomness part. Randomness comes from the browser's cryptographic generator.
📘 Common mistakes · Worked exampleGenerates 1–100 identifiers that follow the ULID spec: a 48-bit millisecond timestamp plus 80 bits of randomness, written as 26 Crockford Base32 characters. IDs created in the same millisecond are incremented by one as the spec requires, so the list sorts in creation order. Fill in the ULID field and the tool decodes it instead, showing the timestamp (ISO 8601 and Unix ms) and the randomness part. Randomness comes from the browser's cryptographic generator.
The result is not exact or binding and is for information only; it is not an official document and cannot be used in official procedures. Confirm it with the competent authority or a professional before acting; no liability is accepted for losses arising from its use.
Last reviewed: · Methodology and sources
How is it calculated?
Generates 1–100 identifiers that follow the ULID spec: a 48-bit millisecond timestamp plus 80 bits of randomness, written as 26 Crockford Base32 characters. IDs created in the same millisecond are incremented by one as the spec requires, so the list sorts in creation order. Fill in the ULID field and the tool decodes it instead, showing the timestamp (ISO 8601 and Unix ms) and the randomness part. Randomness comes from the browser's cryptographic generator.
Inputs
| Value | Unit | Example |
|---|---|---|
| Count | — | 5 |
| ULID to decode (optional) | — |
What is this tool?
ULID Generator & Decoder helps developers with encoding, encryption and text processing. Generates 1–100 identifiers that follow the ULID spec: a 48-bit millisecond timestamp plus 80 bits of randomness, written as 26 Crockford Base32 characters. IDs created in the same millisecond are incremented by one as the spec requires, so the list sorts in creation order. Fill in the ULID field and the tool decodes it instead, showing the timestamp (ISO 8601 and Unix ms) and the randomness part. Randomness comes from the browser's cryptographic generator.
Common mistakes
- Storing ULIDs in lower or mixed case and then sorting them as text. The ordering guarantee holds for one spelling only; always store the canonical upper-case form.
- Trying to decode with standard Base32 (RFC 4648). That alphabet consists of A–Z and 2–7; Crockford's starts with 0–9 and leaves out I, L, O and U. The two are not interchangeable.
- Treating monotonic ordering as a system-wide guarantee. The add-one rule applies to a single generator; with several processes or servers, the order inside one millisecond is undefined.
- Using the identifier as a secret. The time part is public, and with monotonic generation the next id is the previous one plus 1. For values that must not be guessable, such as password reset links, generate a separate random token.
- Forgetting that clocks can move backwards. If a server's clock is corrected, new identifiers can sort before older ones; the timestamp reflects the clock of the machine that generated the id.
- Assuming a ULID is a UUID v7. Both start with 48 bits of milliseconds, but UUID v7 has fixed version and variant bits; the bytes of an arbitrary ULID do not form a valid v7 UUID.
- Trimming or padding values that are not 26 characters long. A missing character shifts both the time and the randomness; the tool rejects such input with a length error.
📘 What Is a ULID? Structure, Decoding the Timestamp, and ULID vs UUID v7 →
Sources
- RFC 9562 — Universally Unique IDentifiers (UUIDs): UUID version 7 (Section 5.7) and monotonicity methods (Section 6.2) ↗
- RFC 4648 — The Base16, Base32, and Base64 Data Encodings (the standard Base32 alphabet, which differs from Crockford's) ↗
- W3C — Web Cryptography API (getRandomValues, the browser's cryptographic random generator) ↗
Key terms
Frequently Asked Questions
+ULID Generator & Decoder — how is it calculated?
Generates 1–100 identifiers that follow the ULID spec: a 48-bit millisecond timestamp plus 80 bits of randomness, written as 26 Crockford Base32 characters. IDs created in the same millisecond are incremented by one as the spec requires, so the list sorts in creation order. Fill in the ULID field and the tool decodes it instead, showing the timestamp (ISO 8601 and Unix ms) and the randomness part. Randomness comes from the browser's cryptographic generator.
+Which values are required?
Count, ULID to decode (optional).
+Is my data stored?
No. All calculations run in your browser; the values you enter are never sent to or stored on a server. If you press “Save”, the calculation stays only in your own browser and you can delete it at any time.
+Is it free?
Yes, all tools are free and require no sign-up.
Similar tools
Popular Tools
Free Calculators in One Place
Tax, finance, health, math and more — 500+ tools, all in one place.