Generator Settings
How many?
Regenerate
Timestamp
Current time
Specific date/time
Spread across a range
ObjectIds embed a one-second-resolution creation time, so this lets you build historical fixtures that sort correctly.
Process identifier (5 bytes)
New
Real drivers keep this stable for the lifetime of a process. Fixing it makes a batch look like it came from one machine.
Counter start (3 bytes)
Increments per ID, wrapping at 16,777,215. Together with the timestamp this is what prevents collisions inside one process.
Output as
Plain hex list
Mongo shell ObjectId("…")
JSON array
Extended JSON ($oid)
CSV with timestamps
insertMany() document stub
Options
Uppercase hex
MongoDB emits lowercase; both parse fine.
Sort ascending
Shows that ObjectIds order by creation time.
Decode an ObjectId
Generated ObjectIds
Output
Anatomy
Query recipes
objectids.txt
Copy all
Download
Copy first
These are structurally valid ObjectIds for testing and fixtures. In production, always let the driver generate
_id
— it manages the per-process identifier and counter for you.