Convert BSON to YAML

Turn BSON files into YAML. Every document, with its keys in order; several documents become a list.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop BSON files on the dialor turn it to pick what to do

BSON documents as readable YAML.Every document keeps its keys in order. Special values become plain text.

  1. What you get

    One YAML file with every document from the BSON file. Each document keeps its keys in the order they had. When the BSON file holds several documents, they become a list.

  2. How values are written

    ObjectIds become hex text. Dates become ISO 8601 text. Binary data becomes base64, and UUIDs are written in their usual text form.

    Decimal128 values become decimal text. Timestamps and DBRefs become small objects.

  3. When it fails

    If the file could not be parsed, the conversion stops with input_corrupted.

    To go the other way, use YAML to BSON.

BSON and YAML.What each format is.

The formats

From · BSON

BSON

MongoDB's binary document encoding, JSON with dates and binary fields.

Extensions
.bson
MIME type
application/bson
Kind
Text and data
To · YAML

YAML

YAML configuration and data files.

Extensions
.yaml .yml
MIME type
application/yaml
Kind
Text and data

In your code.The same BSON to YAML conversion through the API, for your app or your agent.

terminal
$ cv convert report.bson report.yaml
$ cv convert report.bson report.yaml

Questions.What people ask about BSON to YAML.

01OF 04

Yes. Every document keeps its keys in order.

They become a list in the YAML file.

ObjectIds become hex text. Dates become ISO 8601 text.

The file could not be parsed. The conversion stops with input_corrupted in that case.

More conversions.Other ways in and out of BSON and YAML.