All tools

MongoDB ObjectID Generator

Generate and decode 12-byte BSON ObjectIDs.

MongoDB ObjectIDs

    12-byte BSON ObjectId per the MongoDB spec: 4-byte timestamp (seconds since epoch) + 5-byte random + 3-byte counter. Roughly time-ordered, which makes them sortable but exposes creation time.

    About

    Generates ObjectIDs (24-character hex) per the MongoDB BSON spec. Also decodes existing ObjectIDs to show the embedded timestamp, machine random, and counter parts.

    How to use

    1. Generate fresh IDs.
    2. Or paste an existing ObjectID to decode.

    FAQ

    Are these valid Mongo IDs?+

    Yes, structurally. Mongo accepts any 24-character hex as ObjectID. The timestamp portion is the only meaningful part for sorting.