Want to import data from Excel file to MongoDB collection?
Using Withdata software FileToMongo, a MongoDB Excel importer for Windows, MacOS, and Linux, you can import data from Excel file to MongoDB collection 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.
Import Excel data To MongoDB
Login to MongoDB -> Choose Excel file -> Set MongoDB collection options -> Import Excel to MongoDB
Start FileToMongo, connect to MongoDB.
Click “1 File To 1 Collection” at task dialog.
Select the “Excel” file type.
1. Open a Excel file.
The source Excel file like this:
2. Set MongoDB collection options.
3. Preview data will be in MongoDB collection.
4. Import Excel data to MongoDB collection.
After importing, you can view imported data in MongoDB collection.
Import Excel to MongoDB in command line
Save “Excel to MongoDB” session, then you can:
- Convert Excel to MongoDB in Windows command line.
- Convert Excel to MongoDB in Linux command line.
- Convert Excel to MongoDB in macOS command line.
Set scheduled tasks for importing Excel to MongoDB
You can schedule and automate this “Excel to MongoDB” conversion task by:
1) Save session and create .bat (Windows) or .sh (Linux/macOS) file.