Data export

Export MongoDB® data to JSON, NDJSON or CSV, with types kept exact.

Send a filtered result to a teammate, prepare a spreadsheet, or keep a type-preserving Extended JSON export. Choose the scope, choose the format, and follow the job as it writes to disk.

Download for MacFree on the Mac App Store

Data export is part of the free app. macOS 15 or later.

  • JSON & NDJSON
  • CSV
  • Streaming export
Illustration: the same three sample orders in each export format.

Take the data you need. In a format that fits.

Export a query or collection to JSON, NDJSON, or CSV, with progress and cancel.

Data export, in detail.

The current query, or everything

Export exactly what you are looking at: the documents that match the current filter, or the whole collection. The export sheet shows the query it will use, so you know what you are about to get.

Extended JSON that keeps every type

JSON exports can be a single array or NDJSON, one document per line. Canonical Extended JSON is the default: an Int64 stays an Int64, a Decimal128 keeps every digit and a date keeps its milliseconds, so the file can be loaded back without loss.

Choose relaxed Extended JSON instead when the file is for reading or for a tool that expects ordinary JSON numbers.

CSV that opens cleanly in a spreadsheet

For CSV, choose which fields become columns. Nested fields are flattened with dot notation, such as shipping.country, and arrays are written as JSON.

Protection against spreadsheet formulas is on by default: a text cell that starts like a formula is written so that a spreadsheet shows it as text instead of running it.

Large exports, under control

Exports are written to disk as the documents arrive, not collected in memory first, so the size of the collection is not a limit. You see the progress as it goes, and Cancel stops it.

Or just copy

For a handful of documents you do not need a file. Select rows in any results table and copy them as Extended JSON, shell syntax, JSON or tab-separated text, ready to paste into a script, a ticket or a spreadsheet.

How it goes, step by step.

Three steps from opening Tallhorn to having what you came for.

  1. Narrow the result

    Filter the collection first if you only need a particular set of documents.

  2. Pick the format and scope

    Choose JSON, NDJSON, or CSV and decide whether to export the query or the collection.

  3. Save with progress

    The export streams to disk. Watch its progress or cancel when you no longer need it.

At a glance.

Scope
The current query or the whole collection
Formats
JSON array, NDJSON, CSV
JSON flavours
Canonical (exact types) or relaxed Extended JSON
CSV options
Choose fields, flatten nested fields, formula protection
While it runs
Progress and Cancel
Price
Free

Questions about data export, answered.

Which format should I use to preserve BSON types?

Choose canonical Extended JSON, available in JSON array or NDJSON form. Ordinary CSV is not a type-preserving database backup.

Is import included in this feature?

This page describes export. Import is not part of Tallhorn’s current release scope.

How do I export a MongoDB collection to CSV?

Open the collection, choose Export, pick CSV and select the fields you want as columns. Filter the collection first if you only need part of it.

What is the difference between JSON and NDJSON?

A JSON export is one array holding every document. NDJSON puts one document on each line, which is easier to stream, split and load into other tools.

Can I export the result of a query?

Yes. Choose to export the current query instead of the whole collection, and only the documents it matches are written.

Can I cancel an export?

Yes. Cancel stops it at once. The export shows its progress while it runs.