MongoDB ObjectId Decode & Generate
Parse result

MongoDB ObjectIdパーサー&ジェネレーター

A MongoDB ObjectId is 12 bytes: the first 4 bytes are the Unix seconds of creation. Paste one to see its timestamp and fields.

Click "Generate ObjectId" for a well-formed random ObjectId to build local test data.

Features

How to use

  1. Paste a 24-hex ObjectId on the left.
  2. The right side instantly shows the timestamp and fields; a format error is flagged.
  3. Click "Generate ObjectId" to get a new random ID.

FAQ

Is the ObjectId time accurate?

The first 4 bytes are the second-level Unix time of creation, precise to the second; it is client-generated and usually reflects the creation moment.

Does the generated one match the database?

The structure is identical (time plus random machine/process plus counter), but machine and counter are random fill for local testing, not a real instance.

Related tools & reading

フィードバック

このサイトはフロントエンドのみでバックエンドやアカウントはなく、フィードバックはGitHub Issues・ディスカッション・メールで受け付けています。

issueやメールに貼り付けていただくと問題特定が早まります。入力内容は含まれません

Also: 既存の報告を見る · メールでのフィードバック(GitHubアカウント不要):278975598@qq.com