Convert between MongoDB BSON (HEX/Base64/Files) and human-readable JSON/EJSON.
BSON (Binary JSON) is a binary serialization format used primarily by MongoDB for storing documents and making remote procedure calls. While JSON is highly human-readable, it lacks support for several critical data types such as fast binary buffers, precise 64-bit integers, ObjectIds, and native date representations. BSON extends JSON to include these types, making it optimal for database efficiency but harder for developers to read and debug directly.
Our BSON <=> JSON Converter bridges this gap, allowing you to instantly serialize and deserialize BSON data. You can paste BSON represented as a Hexadecimal string, Base64 string, or upload raw binary .bson files (such as database dumps) to view them in clean, human-readable MongoDB Extended JSON (EJSON) format. The conversion is fully bidirectional, enabling you to build BSON documents from JSON strings as well.
Like all utilities on ToolBunny, this converter is designed with a strict privacy-first architecture. All parsing and encoding processes run entirely client-side inside your web browser. None of your data, documents, or uploaded files are sent to any remote server, ensuring that your database schemas, internal IDs, and sensitive records remain completely secure and private.
- Select Mode: Choose either "BSON to JSON" or "JSON to BSON" depending on your task.
- Provide Input:
- Paste BSON data as a Hexadecimal or Base64 string.
- Upload a raw binary .bson file from your device.
- For JSON to BSON conversion, type or paste your JSON/EJSON object directly into the input editor.
- Convert: The tool automatically validates and converts your input in real-time. If it contains syntax errors, helpful error messages will be displayed.
- Download & Copy: Click "Copy to Clipboard" to save the text result, or use the "Download" option to save the output as a .json or raw binary .bson file.
YAML <=> JSON Converter
Instantly convert YAML to JSON or JSON to YAML with our fast, bidirectional, client-side converter. Safely handles complex nested structures and includes syntax validation and error reporting.
Image Format Converter
Convert your images between popular formats like PNG, JPG, and WebP. This online tool is perfect when you need to change an image file type for web optimization, compatibility, or other requirements. Upload your file, select the target format, and download.
Image to PDF Converter
Convert your JPG, PNG, and other image files into a single, easy-to-share PDF document. This is ideal for compiling receipts, reports, or photo albums. Upload multiple images, arrange them in your desired order, and convert them into a professional PDF file.
Text to PDF Converter
Quickly convert plain text files or pasted text into a universally readable PDF document. Customize font family and size to create a clean, formatted PDF from your notes, articles, or any text content. A simple way to create PDFs without complex software.