> This page location: /docs.md > /docs/tools-and-connectors.md > /docs/database-tools.md

> For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

# bsondump

## Synopsis

`bsondump` converts [BSON](https://www.mongodb.com/docs/manual/reference/glossary.md#std-term-BSON) files into human-readable formats, including [JSON](https://www.mongodb.com/docs/manual/reference/glossary.md#std-term-JSON). For example, `bsondump` is useful for reading the output files generated by `mongodump`.

**Important:**

`bsondump` is a diagnostic tool for inspecting BSON files, not a tool for data ingestion or other application use.

`bsondump` uses [Extended JSON v2.0 (Canonical mode)](https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/) to format its data.

Run `bsondump` from the system command line, not the [`mongo`](https://www.mongodb.com/docs/manual/reference/mongo.md#mongodb-binary-bin.mongo) shell.

## Options

Returns information on the options and use of `bsondump`.

Increases the amount of internal reporting returned on standard output or in log files. Increase the verbosity with the `-v` form by including the option multiple times, (e.g. `-vvvvv`.)

Runs `bsondump` in a quiet mode that attempts to limit the amount of output.

This option suppresses:

- output from [database commands](https://www.mongodb.com/docs/manual/reference/glossary.md#std-term-database-command)

- replication activity

- connection accepted events

- connection closed events

Returns the `bsondump` release number.

**Deprecated since version 9.0**

Validates each [BSON](https://www.mongodb.com/docs/manual/reference/glossary.md#std-term-BSON) object before outputting it in [JSON](https://www.mongodb.com/docs/manual/reference/glossary.md#std-term-JSON) format. By default, `bsondump` enables `--objcheck <bsondump --objcheck>`. For objects with a high degree of sub-document nesting, `--objcheck <bsondump --objcheck>` can have a small impact on performance.

Starting in MongoDB 9.0, this option has no effect on server behavior. `bsondump` always validates BSON objects.

Changes the operation of `bsondump` from outputting JSON (the default) to a debugging format.

Outputs documents in a pretty-printed format JSON.

Specifies the path to a BSON file to dump to JSON. `--bsonFile` is an alternative to the positional `\<bsonFilename\>` option.

By default, `bsondump` reads from standard input.

The final argument to `bsondump` is a document containing BSON. This data is typically generated by `bsondump` or by MongoDB in a [rollback](https://www.mongodb.com/docs/manual/reference/glossary.md#std-term-rollback) operation.

Specifies the path of the file to which `bsondump` should write its output JSON data.

By default, `bsondump` writes to standard output.

## Learn More

- [bsondump Compatibility and Installation](https://www.mongodb.com/docs/database-tools/bsondump/bsondump-compatibility-and-installation.md#std-label-bsondump-compatibility-and-installation)

- [bsondump Examples](https://www.mongodb.com/docs/database-tools/bsondump/bsondump-examples.md#std-label-bsondump-examples)
