BSON Inspector
Decode BSON documents and inspect MongoDB-specific types.
- Your draft is kept in this tab's session storage and cleared when the tab closes.
Draft kept in this tab
Your draft is kept in this tab's session storage and cleared when the tab closes. - Processing happens in this page. No application server receives your input.
Runs in your browser
Processing happens in this page. No application server receives your input.
BSON bytes (hex or Base64)
BSON structure
Drop a BSON dump or paste hex / Base64 bytes to inspect documents, ObjectId timestamps, Decimal128 / Long values, and binary subtypes.
About this tool
Decodes BSON documents and concatenated mongodump streams into a structure tree with exact byte spans, resolving ObjectId (with derived Created timestamp and counter), Decimal128, Long, Binary subtypes, Timestamp, and deprecated types.
Limits
It decodes; it does not encode, because the useful direction here is reading a dump and the ambiguity in the other direction (which of six numeric types should a JSON 3 become) has no answer a tool can pick. Deprecated types (Symbol, DBPointer, Undefined, the two Code with scope forms) are decoded and labelled deprecated; JavaScript code fields are shown as text and never evaluated. Extended JSON output is canonical mode by default, because relaxed mode loses the type distinctions that are the reason to open this tool.
Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.