Skip to main content
>_devtools

BSON Encoder / Decoder

Encode a BSON document from Extended JSON or inspect local BSON bytes as structured Extended JSON.

What it does

Encode a BSON document from Extended JSON or inspect a local BSON payload from a file, hex, or Base64. The decoded view keeps BSON-specific types explicit.

Example

Extended JSON:
{"name":"Ada"}

BSON hex:
13 00 00 00 02 6e 61 6d 65 00
04 00 00 00 41 64 61 00 00

Decoded:
{"name":"Ada"}

Limits and behavior

  • The root value must be a BSON document; input and output are limited to 16 MiB.
  • Canonical Extended JSON keeps numeric widths and binary subtypes explicit.
  • Jobs run in a Worker with a 15-second limit. No custom handlers or remote references are used.