Import JSON to MongoDB

Use Withdata FileToMongo as JSON to MongoDB Converter (Importer / Loader)

Works GREAT in 2025.

Support Windows, Linux, and macOS.

Can run in GUI mode, Step by Step, just a few mouse clicks.

  1. 1 to 1: Import JSON to MongoDB collection
  2. n to 1: Import multiple JSON files to a single MongoDB collection
  3. n to n: Batch import JSON files to MongoDB collections

Can run in CLI (Command Line Interface), for Scheduled Tasks and Streams, for Automation.





Import JSON to MongoDB in GUI



Start Withdata FileToMongo, connect to MongoDB.

connect to mongodb



Import JSON to MongoDB collection

Click "1 File To 1 Collection" at task dialog.

Import file data To MongoDB collection - task window

Select the "JSON" file type.

Import JSON file data To MongoDB collection - select file type

1. Open a JSON file.

Import Data From JSON File To MongoDB collection - open JSON file

The source JSON file like this:

import JSON file to MongoDB collection - source JSON file

2. Set MongoDB collection options.

Load Data From JSON File To MongoDB collection - set collection options

3. Preview data will be in MongoDB collection.

Transfer Data From JSON File To MongoDB collection - preview

4. Import JSON data to MongoDB collection.

Copy Data From JSON File To MongoDB collection - import data

After importing, you can view imported data in MongoDB collection.

view MongoDB data



Import multiple JSON files to a single MongoDB collection

Click "N File To 1 Collection" at task dialog.

Import multiple JSON files data To a single MongoDB collection - task window

Select the "JSON" file type.

Import multiple JSON files data To 1 MongoDB collection - select file type

1. Open a folder contains JSON files.

Import multiple JSON files to 1 MongoDB collection - set JSON folder

2. Set JSON options.

Import multiple JSON Files To 1 MongoDB collection - config JSON file

3. Set MongoDB collection options.

Load multiple JSON Files To 1 MongoDB collection - select table

4. Preveiw data will be in MongoDB.

Transfer multiple JSON Files To 1 MongoDB collection - preview

5. Import multiple JSON files to a single MongoDB collection.

Copy multiple JSON Files To 1 MongoDB collection - import data

After importing, you can view imported data in MongoDB.

Import multiple JSON Files To Single MongoDB Collection - view data



Batch import JSON files to MongoDB collections

Click "N File To N Collection" at task dialog.

Batch Import JSON files data To MongoDB collections - task window

then show the wizard.

Select the "JSON" file type.

Batch Import JSON files data To MongoDB collections - select file type

1. Open a folder contains JSON files.

Batch Import Data From JSON Files To MongoDB collections - set JSON folder

2. Set JSON options.

Batch Import Data From JSON Files To MongoDB collections - config JSON file

3. List collesions, set "Import Type".

Batch Load Data From JSON File To MongoDB collections - select table

4. Map files to collections.

Batch Load Data From JSON File To MongoDB collections - select table

5. Summary.

Batch Transfer Data From JSON Files To MongoDB collections - preview

6. Import JSON data to MongoDB collections.

Batch Copy Data From JSON Files To MongoDB collections - import data

After importing, you can view imported data.

view MongoDB data

Set scheduled tasks for importing JSON to MongoDB

After importing JSON to MongoDB in Command Line, then you can schedule and automate "JSON to MongoDB" conversion task by:

  1. Save session and create .bat (Windows) or .sh (Linux/macOS) file for "JSON to MongoDB" conversion.
  2. Set scheduled task: On Linux/macOS, use Crontab. On Windows, use scheduled task.

FAQ

How long does it take to import JSON to MongoDB?

Is it safe to import JSON to MongoDB using FileToMongo?

Can I import JSON to MongoDB on Linux, Mac OS?

Can I import JSON to MongoDB in command line?

Can I batch import JSON files to MongoDB collections?