MongoDB ObjectId to Timestamp Converter
Find the UTC time and Unix seconds encoded in a MongoDB ObjectId. Paste a list to download the timestamps as CSV.
How to read the timestamp
The first eight hexadecimal characters of an ObjectId represent unsigned Unix seconds. For example, 507c7f79bcf86cd7994f6c0e encodes . MongoDB exposes this same value through ObjectId.getTimestamp().
A generated ObjectId records the second when the ID was created, using the generator’s clock. If you need the time a document was inserted or an event occurred, use the corresponding timestamp field in your records.
Paste a raw ID, ObjectId("…"), or an Extended JSON value such as {"$oid":"…"}. Use the JSON timestamp converter for timestamp fields in JSON logs.