Decode an ID
Runs in your browser· IDs are decoded in this tab and never sent anywhere
Generate ULIDs and UUID v7
Made with your browser's secure random generator. All IDs in one batch share the same millisecond; ULIDs in a batch sort in the order they were made.
Decode the time inside ULID, UUID, ObjectId, KSUID and Snowflake IDs
Many IDs are not random: they start with the moment they were made. Paste one and the page detects the format, shows the creation time in UTC and the other fields it holds, such as the UUID version, the worker and sequence of a Snowflake, or the counter of an ObjectId. A generator makes ULIDs and UUID v7. Everything runs in your browser.
Frequently Asked Questions
- How do I get the timestamp from a ULID?
- Paste the ULID. Its first 10 characters are a 48-bit Unix time in milliseconds written in Crockford Base32, so the page shows the exact moment it was created, in UTC, with the 80 random bits listed separately.
- How do I get the date from a MongoDB ObjectId?
- Paste the 24-character hex string. The first 4 bytes are the creation time in seconds since 1970; the rest is a per-process random value and a counter. The page shows all three.
- How do I decode a Snowflake ID, and why is the date wrong?
- A Snowflake holds milliseconds since a custom epoch in its upper 41 bits, then a worker ID and a sequence number. The epoch depends on who made the ID: Twitter/X and Discord use different ones. Choose the matching epoch in the page, or enter your own in milliseconds, and the date will be right.
- Which UUID versions contain a time?
- Versions 1, 6 and 7. Version 1 and 6 hold a 100-nanosecond timestamp and a node ID; version 7 holds Unix milliseconds in its first 48 bits and sorts by creation time. Versions 3, 4 and 5 are a hash or random and carry no time, and the page says so.
Related Tools
Found this useful? Hexabench is free and ad-free. If it saved you time, you can support it.
Buy me a coffee →