MongoDB ObjectId
Convert, parse and analyze MongoDB ObjectId. Supports single or bulk input (string or object).
Input
Paste or upload ObjectId(s)
Parse & Analyze
View ObjectId details and breakdown
Export
Export or copy results
Paste one or more ObjectId(s). You can paste as string or JSON (object or array).
Tip: ObjectId is a 24-character hex string that contains a timestamp, machine id, process id, and counter.
Total
0
Valid
0
Invalid
0
Unique
0
Paste text containing one or more MongoDB ObjectIds. This can be raw strings, JSON from a database dump, logs, or an array. The parser will automatically extract all valid 24-character hex strings and analyze them.
MongoDB ObjectIds contain useful metadata. This tool breaks down each ObjectId into its components: the timestamp (when it was created), machine ID, process ID, and the incrementing counter.
This is useful for debugging missing data, verifying creation times without querying the database, or simply formatting ObjectIds for queries in scripts. All parsing runs securely in your browser; your ObjectIds are never sent to a server.
An ObjectId is a 12-byte BSON type typically used as the primary key (`_id`) in MongoDB. It consists of a 4-byte timestamp, a 3-byte machine identifier, a 2-byte process ID, and a 3-byte counter.
No, it only parses the structure of the string to decode the timestamp and other metadata encoded within it. It does not connect to your database.
A standard ObjectId is 12 bytes. When represented as a hexadecimal string, each byte requires 2 characters, making the standard string representation exactly 24 characters long.