ObjectId generator & inspector

Mint MongoDB ObjectIds or decode one into its embedded timestamp and random parts.


Generated in this browser with crypto.getRandomValues. Nothing is sent anywhere.

MongoDB ObjectId layout: 4-byte Unix seconds + 5-byte random + 3-byte counter. The random/counter bytes persist for the page session, matching the driver convention. Up to 500 per click.

How to use

  1. Generate one or a batch, or paste an existing ObjectId.
  2. Read the timestamp and hex parts.
  3. Copy what you need.

What it supports

24-hex-character ObjectIds: 4-byte big-endian Unix seconds, 5-byte random, 3-byte counter. Batch up to 500 IDs. Decoding recovers the creation time exactly; the remaining bytes are random and carry no further meaning.

Related tools

Related guides