ObjectId Decoder
Decode MongoDB ObjectIds to extract the embedded timestamp, process identity, and counter.
ObjectId
ObjectId Structure
Timestamp
4 bytes / 8 hex
Random
5 bytes / 10 hex
Counter
3 bytes / 6 hex
Total: 12 bytes (96 bits), represented as a 24-character hex string. The timestamp is a 32-bit unsigned integer (seconds since Unix epoch). The random value is generated once per process. The counter starts at a random value and increments for each new ObjectId within the same second.