Convert BSON data (Base64 or Hex encoded) to JSON format
Try the BSON to JSON converter with sample data
Convert BSON data (Base64 or Hex encoded) to JSON format
Try the BSON to JSON converter with sample data
BSON (Binary JSON) is a binary-encoded data format created by MongoDB to store and exchange documents efficiently. Unlike plain JSON, BSON supports native data types like ObjectId, Date, Binary, and Decimal128, enabling MongoDB to index, sort, and query data with precision while maintaining fast read/write performance. While BSON is optimized for database operations, using a BSON to JSON converter makes the data human-readable and compatible with standard tools.
| Feature | JSON | BSON |
|---|---|---|
| Encoding | Text-based (UTF-8) | Binary-encoded |
| Data Types | String, Number, Boolean, Null, Array, Object | All JSON types + Date, Binary, ObjectId, Decimal128, Int32/Int64 |
| File Size | Larger (text requires more bytes) | Smaller (binary compression) |
| Human Readable | Yes | No (requires decoding) |
| Use Cases | APIs, web data exchange, config files | Database storage (MongoDB), data replication |
| Parsing Speed | Slower (text parsing) | Faster (binary + traversable structure) |
💡 When to Use This Tool: Whenever you export MongoDB data via mongoexport or mongodump, or capture binary payloads from MongoDB drivers, converting to JSON makes the data readable for debugging, API integration, or data migration.
More efficient than JSON for storage and transmission with binary encoding
Supports Date, Binary, ObjectId, and other types not available in JSON
Default storage format for MongoDB documents and data exchange
Convert Base64 or Hex BSON into clean JSON in three quick steps, optimized for MongoDB workflows.
Paste your MongoDB BSON payload or upload a file. Choose Base64 or Hex to match how your BSON was exported.
gQEAAANhY2NvdW50AGgAAAACaWQACgAAAEFDQ1QtOTAyMQACbmFtZQANAAAATm9ydGh3aW5kIENvAAJ0aWVyAAQAAABQcm8ABHRhZ3MAJgAAAAIwAAYAAABtb25nbwACMQANAAAAYnNvbi10by1qc29uAAAAA2NvbnRhY3QAXAAAAAJlbWFpbAARAAAAb3BzQG5vcnRod2luZC5jbwAEcGhvbmVzADMAAAACMAAQAAAAKzEtMjEyLTU1NS0wMTg4AAIxABAAAAArMS02NDYtNTU1LTAxOTkAAAADdXNhZ2UASwAAAAJtb250aAAIAAAAMjAyNS0wMQAQcmVxdWVzdHMA9EcAAANxdW90YQAeAAAAEGxpbWl0AFDDAAACdW5pdAAEAAAAcmVxAAAAA21ldGEAQwAAAAJzb3VyY2UADQAAAGJzb24tdG8tanNvbgACaW1wb3J0ZWRBdAAVAAAAMjAyNS0wMS0xM1QwODozMDowMFoAAAhpc0FjdGl2ZQABAA==Get readable JSON instantly. Line numbers, syntax highlighting, and status metrics make MongoDB data easy to inspect.
{
"account": {
"id": "ACCT-9021",
"name": "Northwind Co",
"tier": "Pro",
"tags": [
"mongo",
"bson-to-json"
]
},
"contact": {
"email": "[email protected]",
"phones": [
"+1-212-555-0188",
"+1-646-555-0199"
]
},
"usage": {
"month": "2025-01",
"requests": 18420,
"quota": {
"limit": 50000,
"unit": "req"
}
},
"meta": {
"source": "bson-to-json",
"importedAt": "2025-01-13T08:30:00Z"
},
"isActive": true
}Export clean JSON for APIs, debugging, or data migrations. Copy to clipboard or download a ready-to-use file.
Get answers to common questions about converting BSON to JSON
Format, validate and process JSON
Export to other popular formats
Convert to JSON from other types
Generate code from JSON data
Format and beautify other code formats