Exporting Data
Export MongoDB collection data to JSON or CSV files for analysis, backup, or migration.
Starting an Exportโ
-
Navigate to Collection:
- Open Data Explorer
- Select collection to export
- Click "Export" button
-
Or Use Export Menu:
- Go to Data Explorer
- Click "Export Data"
- Select collection
Export Optionsโ
Export Formatโ
Choose export format:
JSON:
- Preserves data structure
- Includes nested objects
- Maintains data types
- Best for: Developers, APIs, backups
CSV:
- Spreadsheet-compatible
- Flat structure
- Easy to analyze
- Best for: Analysis, Excel, reporting
Export Scopeโ
What to export:
All Documents:
- Export entire collection
- No filters applied
- Complete dataset
Filtered Documents:
- Export only filtered results
- Apply filters first
- Export subset
Selected Documents:
- Export only selected documents
- Select documents first
- Export specific items
Export Configurationโ
Field Selectionโ
Choose which fields to export:
-
Select Fields:
- Check fields to include
- Uncheck to exclude
- Select all/none
-
Field Order:
- Reorder fields
- Drag to rearrange
- Affects export order
Data Formattingโ
Configure how data is formatted:
Dates:
- ISO format (default)
- Custom format
- Timestamp
Numbers:
- Preserve decimals
- Round to places
- Format as currency
Nested Objects:
- Flatten (CSV)
- Preserve structure (JSON)
- Custom separator
JSON Exportโ
JSON Optionsโ
Pretty Print:
- Formatted JSON
- Human-readable
- Larger file size
Compact:
- Minified JSON
- Smaller file size
- Machine-readable
Include Metadata:
- Add
_id, timestamps - Export metadata
- Full document info
JSON Structureโ
Exported JSON format:
[
{
"_id": "507f1f77bcf86cd799439011",
"name": "John Doe",
"email": "john@example.com",
"createdAt": "2024-01-15T10:00:00Z"
},
{
"_id": "507f1f77bcf86cd799439012",
"name": "Jane Smith",
"email": "jane@example.com",
"createdAt": "2024-01-15T11:00:00Z"
}
]
CSV Exportโ
CSV Optionsโ
Headers:
- Include column headers
- First row field names
- Makes file readable
Delimiter:
- Comma (default)
- Semicolon
- Tab
- Custom
Encoding:
- UTF-8 (default)
- UTF-8 BOM
- Other encodings
CSV Structureโ
Exported CSV format:
_id,name,email,createdAt
507f1f77bcf86cd799439011,John Doe,john@example.com,2024-01-15T10:00:00Z
507f1f77bcf86cd799439012,Jane Smith,jane@example.com,2024-01-15T11:00:00Z
Handling Nested Dataโ
For CSV, nested objects are:
- Flattened: Converted to flat structure
- Separated: Using dot notation (e.g.,
address.city) - Or Excluded: Nested data not included
Export Processโ
Starting Exportโ
-
Configure Options:
- Select format
- Choose fields
- Set formatting
-
Click "Export":
- Export starts
- Progress shown
- File generates
-
Download File:
- File ready when complete
- Click to download
- Save to computer
Large Exportsโ
For large collections:
- Progress Indicator: Shows export progress
- Estimated Time: Time remaining
- Background Export: Continues in background
- Email Notification: Notify when complete (optional)
Exporting Form Dataโ
From Form Analyticsโ
Export form submissions:
- Open Form: Go to form
- Click "Responses": View submissions
- Click "Export": Export all responses
- Choose Format: JSON or CSV
Filtered Exportsโ
Export filtered submissions:
- Apply Filters: Filter submissions
- Click "Export": Export filtered results
- Only Filtered: Only filtered data exported
Scheduled Exportsโ
Setting Up Scheduled Exportsโ
Automate regular exports:
- Create Schedule: Set export schedule
- Configure Export: Set options
- Set Destination: Email or storage
- Activate: Enable schedule
Export Schedule Optionsโ
- Daily: Export every day
- Weekly: Export weekly
- Monthly: Export monthly
- Custom: Custom cron schedule
Best Practicesโ
- Filter First: Export only what you need
- Choose Format: Use appropriate format
- Test Export: Test with small dataset first
- Verify Data: Check exported data
- Secure Files: Protect exported files
- Regular Backups: Export regularly for backups
Use Casesโ
Data Analysisโ
Export for analysis tools:
- Excel/Google Sheets
- Python/R scripts
- Business intelligence tools
- Data visualization
Data Migrationโ
Export for migration:
- Move to new database
- Migrate to different system
- Backup before migration
- Transfer between environments
Reportingโ
Export for reports:
- Generate reports
- Share with stakeholders
- Archive historical data
- Compliance reporting
Backupโ
Export for backup:
- Regular backups
- Point-in-time recovery
- Disaster recovery
- Data preservation
Next Stepsโ
- Browsing Data - View your data
- Importing Data - Import data