Convert XML to BSON
Convert an XML document into Binary JSON (BSON) — the format used by MongoDB — encoded as a base64 string.
Input
Output
About Convert XML to BSON
Convert XML to BSON serializes an XML document into the Binary JSON (BSON) format used by MongoDB and many NoSQL systems. The document is encoded with real BSON element types (string, int32, int64, double, bool, array, embedded document) and delivered as a base64 string.
Features
How to Use
Examples
The catalog converts to a BSON document with an embedded array of product documents.
Benefits
Frequently Asked Questions
Is my XML sent to a server?
No. Everything runs locally in your browser. Your data is never uploaded, stored or logged.
Can I download the result?
Yes — use the Download button below the output area, or Print / Save PDF for a printable copy.
More XML Tools
View AllEdit and View XML
Free browser-based XML editor with a live collapsible tree view. Edit ...
Convert SQL to XML
Generate an XML file from SQL INSERT statements. Parse table names, co...
URL-decode XML
Free URL decoder for XML that turns percent-encoded text back into a d...
Generate XML Art
Convert an image into a valid ASCII-art-like XML document — every row ...
Find XML Nesting Depth
Find how many levels deep your XML goes. Get max depth, deepest path, ...