How to use: MongoDB ObjectId Decoder

MongoDB ObjectId Decoder is a free online Developer Tools tool that extract the creation timestamp, random bytes and counter from a 24-character ObjectId instantly in your browser. Paste your data, adjust the options and get the result in real time — no installation, no sign-up, and nothing is ever uploaded to a server.

Use MongoDB ObjectId Decoder now →

Description

Extract the creation timestamp, random bytes and counter from a 24-character ObjectId.

  • Developer Tools
  • Because everything is computed client-side, MongoDB ObjectId Decoder is safe to use with sensitive data such as API keys, tokens or private logs.
Input MongoDB ObjectId Decoder Output Runs 100% in your browser — your data never leaves your device.
MongoDB ObjectId Decoder — Input → Output

How to use

Using MongoDB ObjectId Decoder takes three steps:

  1. Paste your data into the input box (or load the example).
  2. Configure the options to match your target format or scenario.
  3. Copy, download or inspect the output — it updates live as you type.
How to use · MongoDB ObjectId Decoder 1 Paste your data intothe input box (or loadthe example). 2 Configure the optionsto match your targetformat or scenario. 3 Copy, download orinspect the output —it updates live as youtype.
How to use

Run

Examples

The first four bytes are a Unix timestamp, which is why ObjectIds sort roughly by creation time.

Input

507f1f77bcf86cd799439011

Output

507f1f77bcf86cd799439011

Layout (12 bytes / 24 hex characters)
  timestamp    4 bytes  507f1f77  = 1350508407
  random       5 bytes  bcf86cd799   (process-unique, per the current spec)
  counter      3 bytes  439011   = 4427793

Creation time (UTC)   2012-10-17T21:13:27.000Z
Creation time (local) Wed Oct 17 2012 21:13:27 GMT+0000 (Coordinated Universal Time)
Age                   5078.7 days

Older drivers used 3-byte machine id + 2-byte process id instead of 5 random bytes;
both layouts put the timestamp first, which is why ObjectIds sort roughly by time.

This output was produced by actually running the tool, not written by hand.

Use cases

Common situations where MongoDB ObjectId Decoder helps:

  • Extract the creation timestamp, random bytes and counter from a 24-character ObjectId.

Parameters

This tool has no options — it works on the input alone.

FAQ

What is MongoDB ObjectId Decoder?

MongoDB ObjectId Decoder extract the creation timestamp, random bytes and counter from a 24-character ObjectId. It runs entirely in your browser, so your data stays private.

Is MongoDB ObjectId Decoder free to use?

Yes. MongoDB ObjectId Decoder is free, unlimited and works without registration or installation.

Does my data get uploaded?

No. All processing happens locally in your browser; nothing is sent to any server.

Good to know

  • Everything runs client-side, so extremely large inputs are limited by your browser tab’s memory rather than by a server upload limit.

Related tools

MongoDB ObjectId Decoder → · Developer Tools →

Use MongoDB ObjectId Decoder now →