BSON ↔ JSON Converter / Viewer

All tools

Options

Status
Idle
Bytes
0
Detected / last mode

Quick notes

Supported flows
  • Decode Base64 BSON to JSON
  • Decode hex BSON to JSON
  • Encode JSON to BSON and download it as a file

What is BSON ↔ JSON Converter / Viewer?

This tool converts JSON to BSON and decodes BSON back to JSON.

It is useful for MongoDB-related debugging, binary payload inspection, backend development, and interoperability testing.

How to use BSON ↔ JSON Converter / Viewer

  1. Paste JSON and click Encode to convert it into BSON.
  2. Paste Base64 or hex BSON and click Decode to convert it into JSON.
  3. Use Auto-detect if you are not sure whether the input is JSON, Base64, or hex.
  4. Upload or download .bson files when needed.

Tips

  • BSON is a binary format, so Base64 and hex are the most convenient text representations.
  • This tool is especially useful when debugging MongoDB exports or binary payloads.
  • Hex output helps compare BSON payloads byte by byte.
  • BSON expects a top-level document, so encoding works best with JSON objects.

BSON and JSON checks before moving MongoDB data

BSON preserves types that plain JSON cannot represent directly, so conversion must protect ObjectIds, dates, binary data, and numeric precision.

Preserve extended types

Review ObjectId, Date, Decimal128, Binary, Timestamp, Regex, and MinKey or MaxKey values before accepting the JSON output.

Choose JSON mode deliberately

Use canonical or relaxed Extended JSON according to whether humans, tests, import tools, or APIs will consume the result.

Protect numeric precision

Check Int64, Decimal128, large counters, and money-like values before a JavaScript parser or spreadsheet coerces them.

Validate round trips

Convert representative documents back into BSON and compare types, not just visible text, before using the data for migration.

Related tools

You may also find these tools useful.

BSON ↔ JSON FAQ

Can this tool decode BSON to JSON?
Yes. It supports decoding BSON from Base64 or hex into formatted JSON.
Can it encode JSON to BSON?
Yes. It encodes JSON objects into BSON and returns Base64 and hex output.
Does it support file upload and download?
Yes. You can upload a .bson file and download encoded BSON as a .bson file.
Is my BSON data stored or uploaded?
The input is sent to the Toolinix server for the current conversion. It is filtered from application logs and is not intentionally retained after the response is returned.