Extract timestamp
The first 8 hex characters hold the Unix time.
Results appear here.
Paste a MongoDB ObjectId to reveal the creation time hidden in its first 4 bytes. See the date in UTC and your local timezone, the raw Unix timestamp, and how long ago it was created.
The first 8 hex characters hold the Unix time.
Results appear here.
The first 4 bytes of an ObjectId (the first 8 hex characters) store the Unix timestamp in seconds at the moment the ID was created. This tool parses those characters as a hexadecimal integer and converts them to a human date, so you can recover when any document ID was minted without querying the database.
This is useful for debugging and forensics: checking when a record was created from a log line, verifying seed data, or sorting out whether an ID came from production or a test run. Note the precision is one second, and only IDs generated with a real clock carry a meaningful timestamp.