Want to batch import data from CSV files to MongoDB collections?
Using Withdata software FileToMongo, a MongoDB CSV importer for Windows, MacOS, and Linux, you can bulk import data from CSV files to MongoDB collections easily and fast.
- Can run in GUI mode, Step by Step, just a few mouse clicks.
- Can run in Command line, for Scheduled Tasks and Streams.
- Support all MongoDB deployment types: standalone, replica set, sharded cluster, and MongoDB Atlas.
Download FileToMongo
Windows 64 bit
Windows 32 bit
Linux .deb (For Debian, Ubuntu) 64 bit
Linux .rpm (For Red Hat, Fedora, SUSE) 64 bit
MacOS 64 bit
Bulk import data from CSV files to MongoDB collections
Login to MongoDB -> Choose CSV files -> Set MongoDB collections. -> Import CSV files into MongoDB collections
Start FileToMongo, connect to MongoDB.
Click “N File To N Collection” at task dialog.
then show the wizard.
Select the “CSV” file type.
1. Open a folder contains CSV files.
2. Set CSV options.
3. List collesions, set “Import Type”.
4. Map files to collections.
5. Summary.
6. Import CSV data to MongoDB collections.
After importing, you can view imported data.
Bulk import CSV to MongoDB in command line
Save “CSV to MongoDB” session, then you can:
- Bulk import CSV to MongoDB in Windows command line.
- Bulk import CSV to MongoDB in Linux command line.
- Bulk import CSV to MongoDB in macOS command line.
Set scheduled tasks for bulk importing CSV to MongoDB
You can schedule and automate this “CSV to MongoDB” conversion task by:
1) Save session and create .bat (Windows) or .sh (Linux/macOS) file.