devpocket.dev

Unique ID Generator

Generate ULID, NanoID, ObjectId, KSUID, and Snowflake IDs, then decode embedded fields.

Runs locally
Loading tool…

How to use

Choose Generate, select ULID, NanoID, MongoDB ObjectId, KSUID, or Snowflake, and set a count from 1 to 1000. ULID can increment its random field within one millisecond. NanoID accepts a size and custom alphabet, while Snowflake supports Twitter, Discord, and custom epoch/bit layouts. Select Decode / inspect and paste one ID to auto-detect its format. For Snowflake values, choose the matching layout before reading the timestamp and node fields. Random fields use Web Crypto and all work stays in your browser.

FAQ

How is a monotonic ULID different from a regular ULID?

When several ULIDs share one millisecond, monotonic mode increments the 80-bit random field so their text order matches generation order.

What timestamp is stored in a MongoDB ObjectId?

Its first four bytes store unsigned Unix time in seconds. The remaining bytes contain a process-random value and an incrementing counter.

Why does Snowflake decoding need a layout?

Snowflake IDs do not carry their epoch or bit allocation. Twitter, Discord, and custom systems can interpret the same decimal value differently.

Related tools