Paste a MongoDB ObjectId to reveal the creation timestamp, random value, and counter packed inside it. You can also build an ObjectId for any date, handy for _id range queries. Nothing leaves your browser.
Every MongoDB document has an _id, and by default it's an ObjectId: a 12-byte value shown as 24 hexadecimal characters. It isn't random, it's structured, which is why you can pull a creation time straight out of it.
Because the timestamp is the first 4 bytes, ObjectIds are roughly sortable by creation time, and you can query by time range without a separate date field: { _id: { $gt: ObjectId("...") } }. Use the "ObjectId for a date" box above to build the boundary value.
VisuaLeaf
VisuaLeaf shows human-readable timestamps for your ObjectIds, lets you build _id range queries visually, and gives you a full MongoDB and SQL client with query builders, schema diagrams, and charts.